xref: /linux/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml (revision a6021aa24f6417416d93318bbfa022ab229c33c8)
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#
6
7title: Goodix GT9xx series touchscreen controller
8
9maintainers:
10  - Dmitry Torokhov <dmitry.torokhov@gmail.com>
11
12allOf:
13  - $ref: touchscreen.yaml#
14
15properties:
16  compatible:
17    enum:
18      - goodix,gt1151
19      - goodix,gt1158
20      - goodix,gt5663
21      - goodix,gt5688
22      - goodix,gt911
23      - goodix,gt9110
24      - goodix,gt912
25      - goodix,gt9147
26      - goodix,gt917s
27      - goodix,gt927
28      - goodix,gt9271
29      - goodix,gt928
30      - goodix,gt9286
31      - goodix,gt967
32
33  reg:
34    enum: [ 0x5d, 0x14 ]
35
36  interrupts:
37    maxItems: 1
38
39  irq-gpios:
40    description: GPIO pin used for IRQ input. Additionally, this line is
41      sampled by the device on reset deassertion to select the I2C client
42      address, thus it can be driven by the host during the reset sequence.
43    maxItems: 1
44
45  reset-gpios:
46    maxItems: 1
47
48  AVDD28-supply:
49    description: Analog power supply regulator on AVDD28 pin
50
51  VDDIO-supply:
52    description: GPIO power supply regulator on VDDIO pin
53
54  touchscreen-inverted-x: true
55  touchscreen-inverted-y: true
56  touchscreen-size-x: true
57  touchscreen-size-y: true
58  touchscreen-swapped-x-y: true
59
60additionalProperties: false
61
62required:
63  - compatible
64  - reg
65  - interrupts
66
67examples:
68  - |
69    i2c {
70      #address-cells = <1>;
71      #size-cells = <0>;
72      touchscreen@5d {
73        compatible = "goodix,gt928";
74        reg = <0x5d>;
75        interrupt-parent = <&gpio>;
76        interrupts = <0 0>;
77        irq-gpios = <&gpio1 0 0>;
78        reset-gpios = <&gpio1 1 0>;
79      };
80    };
81
82...
83