WIP FPC-III support
[linux/fpc-iii.git] / Documentation / devicetree / bindings / input / touchscreen / goodix.yaml
blobda5b0d87e16d08aefec0c59826ff2253b6852c2e
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/input/touchscreen/goodix.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Goodix GT9xx series touchscreen controller Bindings
9 maintainers:
10   - Dmitry Torokhov <dmitry.torokhov@gmail.com>
12 allOf:
13   - $ref: touchscreen.yaml#
15 properties:
16   compatible:
17     enum:
18       - goodix,gt1151
19       - goodix,gt5663
20       - goodix,gt5688
21       - goodix,gt911
22       - goodix,gt9110
23       - goodix,gt912
24       - goodix,gt9147
25       - goodix,gt917s
26       - goodix,gt927
27       - goodix,gt9271
28       - goodix,gt928
29       - goodix,gt967
31   reg:
32     enum: [ 0x5d, 0x14 ]
34   interrupts:
35     maxItems: 1
37   irq-gpios:
38     description: GPIO pin used for IRQ. The driver uses the interrupt gpio pin
39       as output to reset the device.
40     maxItems: 1
42   reset-gpios:
43     maxItems: 1
45   AVDD28-supply:
46     description: Analog power supply regulator on AVDD28 pin
48   VDDIO-supply:
49     description: GPIO power supply regulator on VDDIO pin
51   touchscreen-inverted-x: true
52   touchscreen-inverted-y: true
53   touchscreen-size-x: true
54   touchscreen-size-y: true
55   touchscreen-swapped-x-y: true
57 additionalProperties: false
59 required:
60   - compatible
61   - reg
62   - interrupts
64 examples:
65   - |
66     i2c {
67       #address-cells = <1>;
68       #size-cells = <0>;
69       gt928@5d {
70         compatible = "goodix,gt928";
71         reg = <0x5d>;
72         interrupt-parent = <&gpio>;
73         interrupts = <0 0>;
74         irq-gpios = <&gpio1 0 0>;
75         reset-gpios = <&gpio1 1 0>;
76       };
77     };
79 ...