aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/input/gpio-keys-polled.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/devicetree/bindings/input/gpio-keys-polled.txt')
-rw-r--r--Documentation/devicetree/bindings/input/gpio-keys-polled.txt38
1 files changed, 38 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/gpio-keys-polled.txt b/Documentation/devicetree/bindings/input/gpio-keys-polled.txt
new file mode 100644
index 000000000000..313abefa37cc
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/gpio-keys-polled.txt
@@ -0,0 +1,38 @@
1Device-Tree bindings for input/gpio_keys_polled.c keyboard driver
2
3Required properties:
4 - compatible = "gpio-keys-polled";
5 - poll-interval: Poll interval time in milliseconds
6
7Optional properties:
8 - autorepeat: Boolean, Enable auto repeat feature of Linux input
9 subsystem.
10
11Each button (key) is represented as a sub-node of "gpio-keys-polled":
12Subnode properties:
13
14 - gpios: OF device-tree gpio specification.
15 - label: Descriptive name of the key.
16 - linux,code: Keycode to emit.
17
18Optional subnode-properties:
19 - linux,input-type: Specify event type this button/key generates.
20 If not specified defaults to <1> == EV_KEY.
21 - debounce-interval: Debouncing interval time in milliseconds.
22 If not specified defaults to 5.
23 - gpio-key,wakeup: Boolean, button can wake-up the system.
24
25Example nodes:
26
27 gpio_keys_polled {
28 compatible = "gpio-keys-polled";
29 #address-cells = <1>;
30 #size-cells = <0>;
31 poll-interval = <100>;
32 autorepeat;
33 button@21 {
34 label = "GPIO Key UP";
35 linux,code = <103>;
36 gpios = <&gpio1 0 1>;
37 };
38 ...