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