xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/touchscreen/silead_gsl1680.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* GSL 1680 touchscreen controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible		  : Must be one of the following, depending on the model:
5*4882a593Smuzhiyun			    "silead,gsl1680"
6*4882a593Smuzhiyun			    "silead,gsl1688"
7*4882a593Smuzhiyun			    "silead,gsl3670"
8*4882a593Smuzhiyun			    "silead,gsl3675"
9*4882a593Smuzhiyun			    "silead,gsl3692"
10*4882a593Smuzhiyun- reg			  : I2C slave address of the chip (0x40)
11*4882a593Smuzhiyun- interrupts		  : interrupt specification for the gsl1680 interrupt
12*4882a593Smuzhiyun- power-gpios		  : Specification for the pin connected to the gsl1680's
13*4882a593Smuzhiyun			    shutdown input. This needs to be driven high to take the
14*4882a593Smuzhiyun			    gsl1680 out of its low power state
15*4882a593Smuzhiyun- touchscreen-size-x	  : See touchscreen.txt
16*4882a593Smuzhiyun- touchscreen-size-y	  : See touchscreen.txt
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunOptional properties:
19*4882a593Smuzhiyun- firmware-name		  : File basename (string) for board specific firmware
20*4882a593Smuzhiyun- touchscreen-inverted-x  : See touchscreen.txt
21*4882a593Smuzhiyun- touchscreen-inverted-y  : See touchscreen.txt
22*4882a593Smuzhiyun- touchscreen-swapped-x-y : See touchscreen.txt
23*4882a593Smuzhiyun- silead,max-fingers	  : maximum number of fingers the touchscreen can detect
24*4882a593Smuzhiyun- silead,home-button	  : Boolean, set to true on devices which have a
25*4882a593Smuzhiyun			    capacitive home-button build into the touchscreen
26*4882a593Smuzhiyun- vddio-supply		  : regulator phandle for controller VDDIO
27*4882a593Smuzhiyun- avdd-supply		  : regulator phandle for controller AVDD
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunExample:
30*4882a593Smuzhiyun
31*4882a593Smuzhiyuni2c@00000000 {
32*4882a593Smuzhiyun	gsl1680: touchscreen@40 {
33*4882a593Smuzhiyun		compatible = "silead,gsl1680";
34*4882a593Smuzhiyun		reg = <0x40>;
35*4882a593Smuzhiyun		interrupt-parent = <&pio>;
36*4882a593Smuzhiyun		interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>;
37*4882a593Smuzhiyun		power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>;
38*4882a593Smuzhiyun		touchscreen-size-x = <480>;
39*4882a593Smuzhiyun		touchscreen-size-y = <800>;
40*4882a593Smuzhiyun		touchscreen-inverted-x;
41*4882a593Smuzhiyun		touchscreen-swapped-x-y;
42*4882a593Smuzhiyun		silead,max-fingers = <5>;
43*4882a593Smuzhiyun	};
44*4882a593Smuzhiyun};
45