18c2ecf20Sopenharmony_ciGeneric resistive touchscreen ADC
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci - compatible: must be "resistive-adc-touch"
68c2ecf20Sopenharmony_ciThe device must be connected to an ADC device that provides channels for
78c2ecf20Sopenharmony_ciposition measurement and optional pressure.
88c2ecf20Sopenharmony_ciRefer to ../iio/iio-bindings.txt for details
98c2ecf20Sopenharmony_ci - iio-channels: must have at least two channels connected to an ADC device.
108c2ecf20Sopenharmony_ciThese should correspond to the channels exposed by the ADC device and should
118c2ecf20Sopenharmony_cihave the right index as the ADC device registers them. These channels
128c2ecf20Sopenharmony_cirepresent the relative position on the "x" and "y" axes.
138c2ecf20Sopenharmony_ci - iio-channel-names: must have all the channels' names. Mandatory channels
148c2ecf20Sopenharmony_ciare "x" and "y".
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciOptional properties:
178c2ecf20Sopenharmony_ci - iio-channels: The third channel named "pressure" is optional and can be
188c2ecf20Sopenharmony_ciused if the ADC device also measures pressure besides position.
198c2ecf20Sopenharmony_ciIf this channel is missing, pressure will be ignored and the touchscreen
208c2ecf20Sopenharmony_ciwill only report position.
218c2ecf20Sopenharmony_ci - iio-channel-names: optional channel named "pressure".
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciExample:
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci	resistive_touch: resistive_touch {
268c2ecf20Sopenharmony_ci		compatible = "resistive-adc-touch";
278c2ecf20Sopenharmony_ci		touchscreen-min-pressure = <50000>;
288c2ecf20Sopenharmony_ci		io-channels = <&adc 24>, <&adc 25>, <&adc 26>;
298c2ecf20Sopenharmony_ci		io-channel-names = "x", "y", "pressure";
308c2ecf20Sopenharmony_ci	};
31