Commit cc040e42 authored by Andreas Kemnade's avatar Andreas Kemnade Committed by Dmitry Torokhov

dt-bindings: touchscreen: neonode,zforce: Use standard properties

Enable touchscreen orientation to be specified by using standard
properties.
Signed-off-by: default avatarAndreas Kemnade <andreas@kemnade.info>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20231223221213.774868-3-andreas@kemnade.infoSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent ad7ced12
...@@ -9,6 +9,9 @@ title: Neonode infrared touchscreen controller ...@@ -9,6 +9,9 @@ title: Neonode infrared touchscreen controller
maintainers: maintainers:
- Heiko Stuebner <heiko@sntech.de> - Heiko Stuebner <heiko@sntech.de>
allOf:
- $ref: touchscreen.yaml#
properties: properties:
compatible: compatible:
const: neonode,zforce const: neonode,zforce
...@@ -26,9 +29,11 @@ properties: ...@@ -26,9 +29,11 @@ properties:
maxItems: 1 maxItems: 1
x-size: x-size:
deprecated: true
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
y-size: y-size:
deprecated: true
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
vdd-supply: true vdd-supply: true
...@@ -38,8 +43,6 @@ required: ...@@ -38,8 +43,6 @@ required:
- reg - reg
- interrupts - interrupts
- reset-gpios - reset-gpios
- x-size
- y-size
unevaluatedProperties: false unevaluatedProperties: false
...@@ -60,8 +63,10 @@ examples: ...@@ -60,8 +63,10 @@ examples:
reset-gpios = <&gpio5 9 0>; /* RST */ reset-gpios = <&gpio5 9 0>; /* RST */
irq-gpios = <&gpio5 6 0>; /* IRQ, optional */ irq-gpios = <&gpio5 6 0>; /* IRQ, optional */
x-size = <800>; touchscreen-min-x = <0>;
y-size = <600>; touchscreen-size-x = <800>;
touchscreen-min-y = <0>;
touchscreen-size-y = <600>;
}; };
}; };
... ...
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment