summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings
diff options
context:
space:
mode:
authorJonathan Bakker2019-01-07 20:11:55 +0100
committerDmitry Torokhov2019-01-07 20:49:41 +0100
commit07df1c55270c142b5027dd31787c42d2b01e2e92 (patch)
tree2ab805479aa69cf28dedec2f289300138969dcbc /Documentation/devicetree/bindings
parentInput: tm2-touchkey - correct initial brightness (diff)
downloadkernel-qcow2-linux-07df1c55270c142b5027dd31787c42d2b01e2e92.tar.gz
kernel-qcow2-linux-07df1c55270c142b5027dd31787c42d2b01e2e92.tar.xz
kernel-qcow2-linux-07df1c55270c142b5027dd31787c42d2b01e2e92.zip
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')
-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>;
};
};