mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
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>
This commit is contained in:
parent
ff7af0fe13
commit
241a952f90
1 changed files with 16 additions and 0 deletions
|
@ -27,6 +27,8 @@ properties:
|
||||||
- description: x
|
- description: x
|
||||||
- description: y
|
- description: y
|
||||||
- description: pressure (optional)
|
- description: pressure (optional)
|
||||||
|
- description: z1 (optional)
|
||||||
|
- description: z2 (optional)
|
||||||
|
|
||||||
io-channel-names:
|
io-channel-names:
|
||||||
oneOf:
|
oneOf:
|
||||||
|
@ -37,6 +39,11 @@ properties:
|
||||||
- enum: [x, y, pressure]
|
- enum: [x, y, pressure]
|
||||||
- enum: [x, y, pressure]
|
- enum: [x, y, pressure]
|
||||||
- enum: [x, y, pressure]
|
- enum: [x, y, pressure]
|
||||||
|
- items:
|
||||||
|
- enum: [x, y, z1, z2]
|
||||||
|
- enum: [x, y, z1, z2]
|
||||||
|
- enum: [x, y, z1, z2]
|
||||||
|
- enum: [x, y, z1, z2]
|
||||||
|
|
||||||
touchscreen-size-x: true
|
touchscreen-size-x: true
|
||||||
touchscreen-size-y: true
|
touchscreen-size-y: true
|
||||||
|
@ -46,6 +53,7 @@ properties:
|
||||||
touchscreen-inverted-y: true
|
touchscreen-inverted-y: true
|
||||||
touchscreen-swapped-x-y: true
|
touchscreen-swapped-x-y: true
|
||||||
touchscreen-min-pressure: true
|
touchscreen-min-pressure: true
|
||||||
|
touchscreen-x-plate-ohms: true
|
||||||
|
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
|
||||||
|
@ -68,3 +76,11 @@ examples:
|
||||||
io-channels = <&adc 24>, <&adc 25>, <&adc 26>;
|
io-channels = <&adc 24>, <&adc 25>, <&adc 26>;
|
||||||
io-channel-names = "y", "pressure", "x";
|
io-channel-names = "y", "pressure", "x";
|
||||||
};
|
};
|
||||||
|
- |
|
||||||
|
touchscreen {
|
||||||
|
compatible = "resistive-adc-touch";
|
||||||
|
touchscreen-min-pressure = <50000>;
|
||||||
|
io-channels = <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>;
|
||||||
|
io-channel-names = "x", "z1", "z2", "y";
|
||||||
|
touchscreen-x-plate-ohms = <800>;
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in a new issue