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