diff options
author | Tomasz Figa <t.figa@samsung.com> | 2012-10-11 01:03:50 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-10-11 01:29:36 -0700 |
commit | ad5396ee32afbdabb6188ffba67778080ea795b8 (patch) | |
tree | 3b804f68084673f4e85373a9724805e37379621e /Documentation/devicetree/bindings/input/touchscreen/mms114.txt | |
parent | dae6ba4ab797ed411fbde60ef5b5f6fbf13f0090 (diff) | |
download | blackbird-op-linux-ad5396ee32afbdabb6188ffba67778080ea795b8.tar.gz blackbird-op-linux-ad5396ee32afbdabb6188ffba67778080ea795b8.zip |
Input: mms114 - add device tree bindings
Add device tree bindings for mms114 touchscreen.
[Dmitry Torokhov: added #ifdef CONFIG_OF guards]
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input/touchscreen/mms114.txt')
-rw-r--r-- | Documentation/devicetree/bindings/input/touchscreen/mms114.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/touchscreen/mms114.txt b/Documentation/devicetree/bindings/input/touchscreen/mms114.txt new file mode 100644 index 000000000000..89d4c56c5671 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/mms114.txt @@ -0,0 +1,34 @@ +* MELFAS MMS114 touchscreen controller + +Required properties: +- compatible: must be "melfas,mms114" +- reg: I2C address of the chip +- interrupts: interrupt to which the chip is connected +- x-size: horizontal resolution of touchscreen +- y-size: vertical resolution of touchscreen + +Optional properties: +- contact-threshold: +- moving-threshold: +- x-invert: invert X axis +- y-invert: invert Y axis + +Example: + + i2c@00000000 { + /* ... */ + + touchscreen@48 { + compatible = "melfas,mms114"; + reg = <0x48>; + interrupts = <39 0>; + x-size = <720>; + y-size = <1280>; + contact-threshold = <10>; + moving-threshold = <10>; + x-invert; + y-invert; + }; + + /* ... */ + }; |