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 - gpios: OF device-tree gpio specification.
14 - interrupts: the interrupt line for that input.
15 - label: Descriptive name of the key.
16 - linux,code: Keycode to emit.
18 Note that either "interrupts" or "gpios" properties can be omitted, but not
19 both at the same time. Specifying both properties is allowed.
21 Optional subnode-properties:
22 - linux,input-type: Specify event type this button/key generates.
23 If not specified defaults to <1> == EV_KEY.
24 - debounce-interval: Debouncing interval time in milliseconds.
25 If not specified defaults to 5.
26 - gpio-key,wakeup: Boolean, button can wake-up the system.
27 - linux,can-disable: Boolean, indicates that button is connected
28 to dedicated (not shared) interrupt which can be disabled to
29 suppress events from the button.
34 compatible = "gpio-keys";
39 label = "GPIO Key UP";
44 label = "GPIO Key DOWN";
46 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;