xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/touchscreen/tsc2005.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Texas Instruments tsc2004 and tsc2005 touchscreen controllers
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun - compatible		      : "ti,tsc2004" or "ti,tsc2005"
5*4882a593Smuzhiyun - reg			      : Device address
6*4882a593Smuzhiyun - interrupts		      : IRQ specifier
7*4882a593Smuzhiyun - spi-max-frequency	      : Maximum SPI clocking speed of the device
8*4882a593Smuzhiyun			        (for tsc2005)
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunOptional properties:
11*4882a593Smuzhiyun - vio-supply		      : Regulator specifier
12*4882a593Smuzhiyun - reset-gpios		      : GPIO specifier for the controller reset line
13*4882a593Smuzhiyun - ti,x-plate-ohms	      : integer, resistance of the touchscreen's X plates
14*4882a593Smuzhiyun				in ohm (defaults to 280)
15*4882a593Smuzhiyun - ti,esd-recovery-timeout-ms : integer, if the touchscreen does not respond after
16*4882a593Smuzhiyun				the configured time (in milli seconds), the driver
17*4882a593Smuzhiyun				will reset it. This is disabled by default.
18*4882a593Smuzhiyun - properties defined in touchscreen.txt
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunExample:
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun&i2c3 {
23*4882a593Smuzhiyun	tsc2004@48 {
24*4882a593Smuzhiyun		compatible = "ti,tsc2004";
25*4882a593Smuzhiyun		reg = <0x48>;
26*4882a593Smuzhiyun		vio-supply = <&vio>;
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun		reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>;
29*4882a593Smuzhiyun		interrupts-extended = <&gpio1 27 IRQ_TYPE_EDGE_RISING>;
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun		touchscreen-fuzz-x = <4>;
32*4882a593Smuzhiyun		touchscreen-fuzz-y = <7>;
33*4882a593Smuzhiyun		touchscreen-fuzz-pressure = <2>;
34*4882a593Smuzhiyun		touchscreen-size-x = <4096>;
35*4882a593Smuzhiyun		touchscreen-size-y = <4096>;
36*4882a593Smuzhiyun		touchscreen-max-pressure = <2048>;
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun		ti,x-plate-ohms = <280>;
39*4882a593Smuzhiyun		ti,esd-recovery-timeout-ms = <8000>;
40*4882a593Smuzhiyun	};
41*4882a593Smuzhiyun}
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun&mcspi1 {
44*4882a593Smuzhiyun	tsc2005@0 {
45*4882a593Smuzhiyun		compatible = "ti,tsc2005";
46*4882a593Smuzhiyun		spi-max-frequency = <6000000>;
47*4882a593Smuzhiyun		reg = <0>;
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun		vio-supply = <&vio>;
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun		reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* 104 */
52*4882a593Smuzhiyun		interrupts-extended = <&gpio4 4 IRQ_TYPE_EDGE_RISING>; /* 100 */
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun		touchscreen-fuzz-x = <4>;
55*4882a593Smuzhiyun		touchscreen-fuzz-y = <7>;
56*4882a593Smuzhiyun		touchscreen-fuzz-pressure = <2>;
57*4882a593Smuzhiyun		touchscreen-size-x = <4096>;
58*4882a593Smuzhiyun		touchscreen-size-y = <4096>;
59*4882a593Smuzhiyun		touchscreen-max-pressure = <2048>;
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun		ti,x-plate-ohms = <280>;
62*4882a593Smuzhiyun		ti,esd-recovery-timeout-ms = <8000>;
63*4882a593Smuzhiyun	};
64*4882a593Smuzhiyun}
65