Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: input: touchscreen: resistive-adc-touch: create bindings

Added bindings for generic resistive touchscreen ADC.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Eugen Hristev and committed by
Jonathan Cameron
1b5bd7d2 15e20eab

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