]> git.ipfire.org Git - thirdparty/u-boot.git/blob - Bindings/input/touchscreen/neonode,zforce.yaml
Squashed 'dts/upstream/' changes from aaba2d45dc2a..b35b9bd1d4ee
[thirdparty/u-boot.git] / Bindings / input / touchscreen / neonode,zforce.yaml
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/input/touchscreen/neonode,zforce.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Neonode infrared touchscreen controller
8
9 maintainers:
10 - Heiko Stuebner <heiko@sntech.de>
11
12 allOf:
13 - $ref: touchscreen.yaml#
14
15 properties:
16 compatible:
17 const: neonode,zforce
18
19 reg:
20 maxItems: 1
21
22 interrupts:
23 maxItems: 1
24
25 reset-gpios:
26 maxItems: 1
27
28 irq-gpios:
29 maxItems: 1
30
31 x-size:
32 deprecated: true
33 $ref: /schemas/types.yaml#/definitions/uint32
34
35 y-size:
36 deprecated: true
37 $ref: /schemas/types.yaml#/definitions/uint32
38
39 vdd-supply: true
40
41 required:
42 - compatible
43 - reg
44 - interrupts
45 - reset-gpios
46
47 unevaluatedProperties: false
48
49 examples:
50 - |
51 #include <dt-bindings/interrupt-controller/irq.h>
52
53 i2c {
54 #address-cells = <1>;
55 #size-cells = <0>;
56
57 touchscreen@50 {
58 compatible = "neonode,zforce";
59 reg = <0x50>;
60 interrupts = <2 0>;
61 vdd-supply = <&reg_zforce_vdd>;
62
63 reset-gpios = <&gpio5 9 0>; /* RST */
64 irq-gpios = <&gpio5 6 0>; /* IRQ, optional */
65
66 touchscreen-min-x = <0>;
67 touchscreen-size-x = <800>;
68 touchscreen-min-y = <0>;
69 touchscreen-size-y = <600>;
70 };
71 };
72 ...