About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / input / touchscreen / goodix.txt


Based on kernel version 4.16.1. Page generated on 2018-04-09 11:52 EST.

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


About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog