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

dt-bindings: touchscreen: resistive-adc-touch: add support for z1 and z2 channels

For pressure calculation based on plates resistance we need some additional
properties:
- z1 and z2 channels with additional measurements between plates
- actual resistance of the touchscreen. Currently we use only
X-resistance.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210525054634.9134-4-o.rempel@pengutronix.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Oleksij Rempel and committed by
Dmitry Torokhov
241a952f ff7af0fe

+16
+16
Documentation/devicetree/bindings/input/touchscreen/resistive-adc-touch.yaml
··· 27 27 - description: x 28 28 - description: y 29 29 - description: pressure (optional) 30 + - description: z1 (optional) 31 + - description: z2 (optional) 30 32 31 33 io-channel-names: 32 34 oneOf: ··· 39 37 - enum: [x, y, pressure] 40 38 - enum: [x, y, pressure] 41 39 - enum: [x, y, pressure] 40 + - items: 41 + - enum: [x, y, z1, z2] 42 + - enum: [x, y, z1, z2] 43 + - enum: [x, y, z1, z2] 44 + - enum: [x, y, z1, z2] 42 45 43 46 touchscreen-size-x: true 44 47 touchscreen-size-y: true ··· 53 46 touchscreen-inverted-y: true 54 47 touchscreen-swapped-x-y: true 55 48 touchscreen-min-pressure: true 49 + touchscreen-x-plate-ohms: true 56 50 57 51 additionalProperties: false 58 52 ··· 75 67 touchscreen-min-pressure = <50000>; 76 68 io-channels = <&adc 24>, <&adc 25>, <&adc 26>; 77 69 io-channel-names = "y", "pressure", "x"; 70 + }; 71 + - | 72 + touchscreen { 73 + compatible = "resistive-adc-touch"; 74 + touchscreen-min-pressure = <50000>; 75 + io-channels = <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>; 76 + io-channel-names = "x", "z1", "z2", "y"; 77 + touchscreen-x-plate-ohms = <800>; 78 78 };