diff options
| author | Jaechul Lee <jcsing.lee@samsung.com> | 2017-01-18 17:35:42 -0500 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-18 17:50:23 -0500 |
| commit | 72d1f2346ded5b1743d7938f4522550b4da9c82d (patch) | |
| tree | 8dd8b8ed91df9dda4783166472f192d9416351ec /Documentation/devicetree/bindings/input | |
| parent | aa6f9222218273cc54ec8d3c91ad8207eef21f99 (diff) | |
Input: tm2-touchkey - add touchkey driver support for TM2
This patch adds support for the TM2 touch key and led functionality.
The driver interfaces with userspace through an input device and reports
KEY_PHONE and KEY_BACK event types. LED brightness can be controlled by
"/sys/class/leds/tm2-touchkey/brightness".
Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Andi Shyti <andi.shyti@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input')
| -rw-r--r-- | Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt b/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt new file mode 100644 index 000000000000..635f62c756ee --- /dev/null +++ b/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | Samsung tm2-touchkey | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: must be "cypress,tm2-touchkey" | ||
| 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 | - vcc-supply : internal regulator output. 1.8V | ||
| 11 | - vdd-supply : power supply for IC 3.3V | ||
| 12 | |||
| 13 | [0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt | ||
| 14 | |||
| 15 | Example: | ||
| 16 | &i2c0 { | ||
| 17 | /* ... */ | ||
| 18 | |||
| 19 | touchkey@20 { | ||
| 20 | compatible = "cypress,tm2-touchkey"; | ||
| 21 | reg = <0x20>; | ||
| 22 | interrupt-parent = <&gpa3>; | ||
| 23 | interrupts = <2 IRQ_TYPE_EDGE_FALLING>; | ||
| 24 | vcc-supply=<&ldo32_reg>; | ||
| 25 | vdd-supply=<&ldo33_reg>; | ||
| 26 | }; | ||
| 27 | }; | ||
