xref: /freebsd/sys/contrib/device-tree/Bindings/input/touchscreen/goodix.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/input/touchscreen/goodix.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: Goodix GT9xx series touchscreen controller
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Dmitry Torokhov <dmitry.torokhov@gmail.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel VadotallOf:
13c66ec88fSEmmanuel Vadot  - $ref: touchscreen.yaml#
14c66ec88fSEmmanuel Vadot
15c66ec88fSEmmanuel Vadotproperties:
16c66ec88fSEmmanuel Vadot  compatible:
17c66ec88fSEmmanuel Vadot    enum:
18c66ec88fSEmmanuel Vadot      - goodix,gt1151
19b97ee269SEmmanuel Vadot      - goodix,gt1158
20c66ec88fSEmmanuel Vadot      - goodix,gt5663
21c66ec88fSEmmanuel Vadot      - goodix,gt5688
22c66ec88fSEmmanuel Vadot      - goodix,gt911
23c66ec88fSEmmanuel Vadot      - goodix,gt9110
24c66ec88fSEmmanuel Vadot      - goodix,gt912
25c66ec88fSEmmanuel Vadot      - goodix,gt9147
26c66ec88fSEmmanuel Vadot      - goodix,gt917s
27c66ec88fSEmmanuel Vadot      - goodix,gt927
28c66ec88fSEmmanuel Vadot      - goodix,gt9271
29c66ec88fSEmmanuel Vadot      - goodix,gt928
305def4c47SEmmanuel Vadot      - goodix,gt9286
31c66ec88fSEmmanuel Vadot      - goodix,gt967
32c66ec88fSEmmanuel Vadot
33c66ec88fSEmmanuel Vadot  reg:
34c66ec88fSEmmanuel Vadot    enum: [ 0x5d, 0x14 ]
35c66ec88fSEmmanuel Vadot
36c66ec88fSEmmanuel Vadot  interrupts:
37c66ec88fSEmmanuel Vadot    maxItems: 1
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel Vadot  irq-gpios:
40c66ec88fSEmmanuel Vadot    description: GPIO pin used for IRQ. The driver uses the interrupt gpio pin
41c66ec88fSEmmanuel Vadot      as output to reset the device.
42c66ec88fSEmmanuel Vadot    maxItems: 1
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel Vadot  reset-gpios:
45c66ec88fSEmmanuel Vadot    maxItems: 1
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot  AVDD28-supply:
48c66ec88fSEmmanuel Vadot    description: Analog power supply regulator on AVDD28 pin
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadot  VDDIO-supply:
51c66ec88fSEmmanuel Vadot    description: GPIO power supply regulator on VDDIO pin
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel Vadot  touchscreen-inverted-x: true
54c66ec88fSEmmanuel Vadot  touchscreen-inverted-y: true
55c66ec88fSEmmanuel Vadot  touchscreen-size-x: true
56c66ec88fSEmmanuel Vadot  touchscreen-size-y: true
57c66ec88fSEmmanuel Vadot  touchscreen-swapped-x-y: true
58c66ec88fSEmmanuel Vadot
59c66ec88fSEmmanuel VadotadditionalProperties: false
60c66ec88fSEmmanuel Vadot
61c66ec88fSEmmanuel Vadotrequired:
62c66ec88fSEmmanuel Vadot  - compatible
63c66ec88fSEmmanuel Vadot  - reg
64c66ec88fSEmmanuel Vadot  - interrupts
65c66ec88fSEmmanuel Vadot
66c66ec88fSEmmanuel Vadotexamples:
67c66ec88fSEmmanuel Vadot  - |
68c66ec88fSEmmanuel Vadot    i2c {
69c66ec88fSEmmanuel Vadot      #address-cells = <1>;
70c66ec88fSEmmanuel Vadot      #size-cells = <0>;
71c66ec88fSEmmanuel Vadot      gt928@5d {
72c66ec88fSEmmanuel Vadot        compatible = "goodix,gt928";
73c66ec88fSEmmanuel Vadot        reg = <0x5d>;
74c66ec88fSEmmanuel Vadot        interrupt-parent = <&gpio>;
75c66ec88fSEmmanuel Vadot        interrupts = <0 0>;
76c66ec88fSEmmanuel Vadot        irq-gpios = <&gpio1 0 0>;
77c66ec88fSEmmanuel Vadot        reset-gpios = <&gpio1 1 0>;
78c66ec88fSEmmanuel Vadot      };
79c66ec88fSEmmanuel Vadot    };
80c66ec88fSEmmanuel Vadot
81c66ec88fSEmmanuel Vadot...
82