diff options
| author | Heiko Stübner <heiko@sntech.de> | 2013-02-23 15:08:55 -0500 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-02-24 22:10:18 -0500 |
| commit | 7241443f67bb352183bcfd7e3b807b87f2777b5d (patch) | |
| tree | 24643c68bf0b3dfac6825fd5df0f0bad91546f98 /Documentation/devicetree/bindings/input | |
| parent | 38e83f7f9169400047aa3033d643891da1b00441 (diff) | |
Input: auo_pixcir_ts - add devicetree support
Add the necessary code to create the needed platformdata from devicetree
informations.
The interrupt mode of the chip is not set via devicetree, as it is not
a property of the hardware but instead only a preferred type of operation.
This should probably be made settable via configfs in the future.
The option set as default is the mode the datasheet mentions as default.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input')
| -rw-r--r-- | Documentation/devicetree/bindings/input/touchscreen/auo_pixcir_ts.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/touchscreen/auo_pixcir_ts.txt b/Documentation/devicetree/bindings/input/touchscreen/auo_pixcir_ts.txt new file mode 100644 index 000000000000..f40f21c642b9 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/auo_pixcir_ts.txt | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | * AUO in-cell touchscreen controller using Pixcir sensors | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: must be "auo,auo_pixcir_ts" | ||
| 5 | - reg: I2C address of the chip | ||
| 6 | - interrupts: interrupt to which the chip is connected | ||
| 7 | - gpios: gpios the chip is connected to | ||
| 8 | first one is the interrupt gpio and second one the reset gpio | ||
| 9 | - x-size: horizontal resolution of touchscreen | ||
| 10 | - y-size: vertical resolution of touchscreen | ||
| 11 | |||
| 12 | Example: | ||
| 13 | |||
| 14 | i2c@00000000 { | ||
| 15 | /* ... */ | ||
| 16 | |||
| 17 | auo_pixcir_ts@5c { | ||
| 18 | compatible = "auo,auo_pixcir_ts"; | ||
| 19 | reg = <0x5c>; | ||
| 20 | interrupts = <2 0>; | ||
| 21 | |||
| 22 | gpios = <&gpf 2 0 2>, /* INT */ | ||
| 23 | <&gpf 5 1 0>; /* RST */ | ||
| 24 | |||
| 25 | x-size = <800>; | ||
| 26 | y-size = <600>; | ||
| 27 | }; | ||
| 28 | |||
| 29 | /* ... */ | ||
| 30 | }; | ||
