Skip to content

Commit cc040e4

Browse files
akemnadedtor
authored andcommitted
dt-bindings: touchscreen: neonode,zforce: Use standard properties
Enable touchscreen orientation to be specified by using standard properties. Signed-off-by: Andreas Kemnade <andreas@kemnade.info> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20231223221213.774868-3-andreas@kemnade.info Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent ad7ced1 commit cc040e4

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Documentation/devicetree/bindings/input/touchscreen/neonode,zforce.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ title: Neonode infrared touchscreen controller
99
maintainers:
1010
- Heiko Stuebner <heiko@sntech.de>
1111

12+
allOf:
13+
- $ref: touchscreen.yaml#
14+
1215
properties:
1316
compatible:
1417
const: neonode,zforce
@@ -26,9 +29,11 @@ properties:
2629
maxItems: 1
2730

2831
x-size:
32+
deprecated: true
2933
$ref: /schemas/types.yaml#/definitions/uint32
3034

3135
y-size:
36+
deprecated: true
3237
$ref: /schemas/types.yaml#/definitions/uint32
3338

3439
vdd-supply: true
@@ -38,8 +43,6 @@ required:
3843
- reg
3944
- interrupts
4045
- reset-gpios
41-
- x-size
42-
- y-size
4346

4447
unevaluatedProperties: false
4548

@@ -60,8 +63,10 @@ examples:
6063
reset-gpios = <&gpio5 9 0>; /* RST */
6164
irq-gpios = <&gpio5 6 0>; /* IRQ, optional */
6265
63-
x-size = <800>;
64-
y-size = <600>;
66+
touchscreen-min-x = <0>;
67+
touchscreen-size-x = <800>;
68+
touchscreen-min-y = <0>;
69+
touchscreen-size-y = <600>;
6570
};
6671
};
6772
...

0 commit comments

Comments
 (0)