1 Device-Tree bindings for input/gpio_keys.c keyboard driver
4 - compatible = "gpio-keys";
7 - autorepeat: Boolean, Enable auto repeat feature of Linux input
10 Each button (key) is represented as a sub-node of "gpio-keys":
13 - label: Descriptive name of the key.
14 - linux,code: Keycode to emit.
16 Required mutual exclusive subnode-properties:
17 - gpios: OF device-tree gpio specification.
18 - interrupts: the interrupt line for that input
20 Optional subnode-properties:
21 - linux,input-type: Specify event type this button/key generates.
22 If not specified defaults to <1> == EV_KEY.
23 - debounce-interval: Debouncing interval time in milliseconds.
24 If not specified defaults to 5.
25 - gpio-key,wakeup: Boolean, button can wake-up the system.
30 compatible = "gpio-keys";
35 label = "GPIO Key UP";
40 label = "GPIO Key DOWN";
42 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;