diff mbox series

[v4,3/5] dt-bindings: touchscreen: add touchscreen-x/y-plate-ohms property

Message ID 20210519094221.27792-4-o.rempel@pengutronix.de
State Superseded
Headers show
Series add z1 and z2 channels support for resistive-adc-touch driver | expand

Commit Message

Oleksij Rempel May 19, 2021, 9:42 a.m. UTC
Te calculate the pressure on a restrictive touchscreen we need need to
know resistance at least of X plate. Some calculations need to use both
X and Y values.
So, add generic properties which can be used by all drivers

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 .../devicetree/bindings/input/touchscreen/touchscreen.yaml  | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Rob Herring (Arm) May 21, 2021, 1:35 a.m. UTC | #1
On Wed, 19 May 2021 11:42:19 +0200, Oleksij Rempel wrote:
> Te calculate the pressure on a restrictive touchscreen we need need to

> know resistance at least of X plate. Some calculations need to use both

> X and Y values.

> So, add generic properties which can be used by all drivers

> 

> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>

> ---

>  .../devicetree/bindings/input/touchscreen/touchscreen.yaml  | 6 ++++++

>  1 file changed, 6 insertions(+)

> 


Reviewed-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml b/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml
index 057e1063759c..2d7b039ce47f 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml
+++ b/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml
@@ -77,6 +77,12 @@  properties:
   touchscreen-y-mm:
     description: vertical length in mm of the touchscreen
 
+  touchscreen-x-plate-ohms:
+    description: Resistance of the X-plate in Ohms
+
+  touchscreen-y-plate-ohms:
+    description: Resistance of the Y-plate in Ohms
+
 dependencies:
   touchscreen-size-x: [ touchscreen-size-y ]
   touchscreen-size-y: [ touchscreen-size-x ]