summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt
diff options
context:
space:
mode:
authorJonathan Bakker <xc-racer2@live.ca>2019-01-07 11:11:55 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-01-07 11:49:41 -0800
commit07df1c55270c142b5027dd31787c42d2b01e2e92 (patch)
tree2ab805479aa69cf28dedec2f289300138969dcbc /Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt
parentd5a158cec4f33fbab031fc97fc17bfe5371925be (diff)
Input: tm2-touchkey - allow specifying custom keycodes
Not all devices use the same keycodes in the same order, so add possibility to define keycodes for buttons present on actual hardware. If keycodes property is not present, we assume that device has at least MENU and BACK keys. Signed-off-by: Jonathan Bakker <xc-racer2@live.ca> Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt')
-rw-r--r--Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt b/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt
index 3df82c4017ff..22466d8a750d 100644
--- a/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt
+++ b/Documentation/devicetree/bindings/input/cypress,tm2-touchkey.txt
@@ -12,6 +12,9 @@ Required properties:
- vcc-supply : internal regulator output. 1.8V
- vdd-supply : power supply for IC 3.3V
+Optional properties:
+- linux,keycodes: array of keycodes (max 4), default KEY_PHONE and KEY_BACK
+
[0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
Example:
@@ -25,5 +28,6 @@ Example:
interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
vcc-supply=<&ldo32_reg>;
vdd-supply=<&ldo33_reg>;
+ linux,keycodes = <KEY_PHONE KEY_BACK>;
};
};