Commit | Line | Data |
---|---|---|
771d8f1b AM |
1 | Device tree bindings for Goodix GT9xx series touchscreen controller |
2 | ||
3 | Required properties: | |
4 | ||
5 | - compatible : Should be "goodix,gt911" | |
6 | or "goodix,gt9110" | |
7 | or "goodix,gt912" | |
8 | or "goodix,gt927" | |
9 | or "goodix,gt9271" | |
10 | or "goodix,gt928" | |
11 | or "goodix,gt967" | |
12 | - reg : I2C address of the chip. Should be 0x5d or 0x14 | |
13 | - interrupt-parent : Interrupt controller to which the chip is connected | |
14 | - interrupts : Interrupt to which the chip is connected | |
15 | ||
ec6e1b40 IT |
16 | Optional properties: |
17 | ||
18 | - irq-gpios : GPIO pin used for IRQ. The driver uses the | |
19 | interrupt gpio pin as output to reset the device. | |
20 | - reset-gpios : GPIO pin used for reset | |
21 | ||
ad48cf5e KM |
22 | - touchscreen-inverted-x : X axis is inverted (boolean) |
23 | - touchscreen-inverted-y : Y axis is inverted (boolean) | |
24 | - touchscreen-swapped-x-y : X and Y axis are swapped (boolean) | |
25 | (swapping is done after inverting the axis) | |
26 | ||
771d8f1b AM |
27 | Example: |
28 | ||
29 | i2c@00000000 { | |
30 | /* ... */ | |
31 | ||
32 | gt928@5d { | |
33 | compatible = "goodix,gt928"; | |
34 | reg = <0x5d>; | |
35 | interrupt-parent = <&gpio>; | |
36 | interrupts = <0 0>; | |
ec6e1b40 IT |
37 | |
38 | irq-gpios = <&gpio1 0 0>; | |
39 | reset-gpios = <&gpio1 1 0>; | |
771d8f1b AM |
40 | }; |
41 | ||
42 | /* ... */ | |
43 | }; |