Scott Liu | 66aee90 | 2014-11-19 17:26:44 -0800 | [diff] [blame] | 1 | Elantech I2C Touchscreen |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible: must be "elan,ekth3500". |
| 5 | - reg: I2C address of the chip. |
| 6 | - interrupt-parent: a phandle for the interrupt controller (see interrupt |
| 7 | binding[0]). |
| 8 | - interrupts: interrupt to which the chip is connected (see interrupt |
| 9 | binding[0]). |
| 10 | |
| 11 | Optional properties: |
| 12 | - wakeup-source: touchscreen can be used as a wakeup source. |
| 13 | - pinctrl-names: should be "default" (see pinctrl binding [1]). |
| 14 | - pinctrl-0: a phandle pointing to the pin settings for the device (see |
| 15 | pinctrl binding [1]). |
Dmitry Torokhov | afe1035 | 2015-04-16 18:14:55 -0700 | [diff] [blame] | 16 | - reset-gpios: reset gpio the chip is connected to. |
| 17 | - vcc33-supply: a phandle for the regulator supplying 3.3V power. |
| 18 | - vccio-supply: a phandle for the regulator supplying IO power. |
Scott Liu | 66aee90 | 2014-11-19 17:26:44 -0800 | [diff] [blame] | 19 | |
| 20 | [0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt |
| 21 | [1]: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt |
| 22 | |
| 23 | Example: |
| 24 | &i2c1 { |
| 25 | /* ... */ |
| 26 | |
| 27 | touchscreen@10 { |
| 28 | compatible = "elan,ekth3500"; |
| 29 | reg = <0x10>; |
| 30 | interrupt-parent = <&gpio4>; |
| 31 | interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>; |
| 32 | wakeup-source; |
| 33 | }; |
| 34 | |
| 35 | /* ... */ |
| 36 | }; |