dt-bindings: input: add common keyboard document bindings
authorChen Zhong <chen.zhong@mediatek.com>
Wed, 4 Jul 2018 15:19:05 +0000 (15:19 +0000)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 4 Jul 2018 16:08:53 +0000 (16:08 +0000)
This patch adds the device tree binding documentation for common
keyboard.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Chen Zhong <chen.zhong@mediatek.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/keys.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/input/keys.txt b/Documentation/devicetree/bindings/input/keys.txt
new file mode 100644 (file)
index 0000000..f5a5ddd
--- /dev/null
@@ -0,0 +1,8 @@
+General Keys Properties:
+
+Optional properties for Keys:
+- power-off-time-sec: Duration in seconds which the key should be kept
+       pressed for device to power off automatically. Device with key pressed
+       shutdown feature can specify this property.
+- linux,keycodes: Specifies the numeric keycode values to be used for
+       reporting key presses.