linux/kconfig.h: replace IF_ENABLED() with PTR_IF() in <linux/kernel.h>
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / input / touchscreen / mms114.txt
1 * MELFAS MMS114/MMS152/MMS345L touchscreen controller
2
3 Required properties:
4 - compatible: should be one of:
5         - "melfas,mms114"
6         - "melfas,mms152"
7         - "melfas,mms345l"
8 - reg: I2C address of the chip
9 - interrupts: interrupt to which the chip is connected
10 - touchscreen-size-x: See [1]
11 - touchscreen-size-y: See [1]
12
13 Optional properties:
14 - touchscreen-fuzz-x: See [1]
15 - touchscreen-fuzz-y: See [1]
16 - touchscreen-fuzz-pressure: See [1]
17 - touchscreen-inverted-x: See [1]
18 - touchscreen-inverted-y: See [1]
19 - touchscreen-swapped-x-y: See [1]
20
21 [1]: Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt
22
23 Example:
24
25         i2c@00000000 {
26                 /* ... */
27
28                 touchscreen@48 {
29                         compatible = "melfas,mms114";
30                         reg = <0x48>;
31                         interrupts = <39 0>;
32                         touchscreen-size-x = <720>;
33                         touchscreen-size-y = <1280>;
34                         touchscreen-fuzz-x = <10>;
35                         touchscreen-fuzz-y = <10>;
36                         touchscreen-fuzz-pressure = <10>;
37                         touchscreen-inverted-x;
38                         touchscreen-inverted-y;
39                 };
40
41                 /* ... */
42         };