diff options
| author | Sebastian Reichel <sre@kernel.org> | 2014-05-29 02:57:29 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-05-29 03:06:00 -0400 |
| commit | a38cfebb56898633687ab337fd53710e63a0aedd (patch) | |
| tree | 1b44393603fc1ae1469e1698238044bd5973dda4 /Documentation/devicetree/bindings/input/touchscreen | |
| parent | b98abe52fa8e2a3797d3cc2db3d0e109f4549c03 (diff) | |
Input: tsc2005 - add DT support
This adds DT support to the tsc2005 touchscreen driver. It also adds
regulator support to the driver if booted via DT.
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input/touchscreen')
| -rw-r--r-- | Documentation/devicetree/bindings/input/touchscreen/tsc2005.txt | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/touchscreen/tsc2005.txt b/Documentation/devicetree/bindings/input/touchscreen/tsc2005.txt new file mode 100644 index 000000000000..4b641c7bf1c2 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/tsc2005.txt | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | * Texas Instruments tsc2005 touchscreen controller | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible : "ti,tsc2005" | ||
| 5 | - reg : SPI device address | ||
| 6 | - spi-max-frequency : Maximal SPI speed | ||
| 7 | - interrupts : IRQ specifier | ||
| 8 | - reset-gpios : GPIO specifier | ||
| 9 | - vio-supply : Regulator specifier | ||
| 10 | |||
| 11 | Optional properties: | ||
| 12 | - ti,x-plate-ohms : integer, resistance of the touchscreen's X plates | ||
| 13 | in ohm (defaults to 280) | ||
| 14 | - ti,esd-recovery-timeout-ms : integer, if the touchscreen does not respond after | ||
| 15 | the configured time (in milli seconds), the driver | ||
| 16 | will reset it. This is disabled by default. | ||
| 17 | - properties defined in touchscreen.txt | ||
| 18 | |||
| 19 | Example: | ||
| 20 | |||
| 21 | &mcspi1 { | ||
| 22 | tsc2005@0 { | ||
| 23 | compatible = "ti,tsc2005"; | ||
| 24 | spi-max-frequency = <6000000>; | ||
| 25 | reg = <0>; | ||
| 26 | |||
| 27 | vio-supply = <&vio>; | ||
| 28 | |||
| 29 | reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* 104 */ | ||
| 30 | interrupts-extended = <&gpio4 4 IRQ_TYPE_EDGE_RISING>; /* 100 */ | ||
| 31 | |||
| 32 | touchscreen-fuzz-x = <4>; | ||
| 33 | touchscreen-fuzz-y = <7>; | ||
| 34 | touchscreen-fuzz-pressure = <2>; | ||
| 35 | touchscreen-max-x = <4096>; | ||
| 36 | touchscreen-max-y = <4096>; | ||
| 37 | touchscreen-max-pressure = <2048>; | ||
| 38 | |||
| 39 | ti,x-plate-ohms = <280>; | ||
| 40 | ti,esd-recovery-timeout-ms = <8000>; | ||
| 41 | }; | ||
| 42 | } | ||
