resistive-adc-touch.txt 1.1 KB

123456789101112131415161718192021222324252627282930
  1. Generic resistive touchscreen ADC
  2. Required properties:
  3. - compatible: must be "resistive-adc-touch"
  4. The device must be connected to an ADC device that provides channels for
  5. position measurement and optional pressure.
  6. Refer to ../iio/iio-bindings.txt for details
  7. - iio-channels: must have at least two channels connected to an ADC device.
  8. These should correspond to the channels exposed by the ADC device and should
  9. have the right index as the ADC device registers them. These channels
  10. represent the relative position on the "x" and "y" axes.
  11. - iio-channel-names: must have all the channels' names. Mandatory channels
  12. are "x" and "y".
  13. Optional properties:
  14. - iio-channels: The third channel named "pressure" is optional and can be
  15. used if the ADC device also measures pressure besides position.
  16. If this channel is missing, pressure will be ignored and the touchscreen
  17. will only report position.
  18. - iio-channel-names: optional channel named "pressure".
  19. Example:
  20. resistive_touch: resistive_touch {
  21. compatible = "resistive-adc-touch";
  22. touchscreen-min-pressure = <50000>;
  23. io-channels = <&adc 24>, <&adc 25>, <&adc 26>;
  24. io-channel-names = "x", "y", "pressure";
  25. };