blob: 4e810e159e9acb0383281394b9efcce1a6095107 [file] [log] [blame]
David Janderfd05d082011-07-09 12:41:46 -07001Device-Tree bindings for input/gpio_keys.c keyboard driver
2
3Required properties:
4 - compatible = "gpio-keys";
5
6Optional properties:
Amy Malochec6d558c2012-10-02 17:00:35 -07007 - input-name: input name of the device
David Janderfd05d082011-07-09 12:41:46 -07008 - autorepeat: Boolean, Enable auto repeat feature of Linux input
9 subsystem.
10
11Each button (key) is represented as a sub-node of "gpio-keys":
12Subnode properties:
13
Tobias Klauser0a7a8ff2011-08-02 15:40:22 -070014 - gpios: OF device-tree gpio specification.
David Janderfd05d082011-07-09 12:41:46 -070015 - 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 {
28 compatible = "gpio-keys";
29 #address-cells = <1>;
30 #size-cells = <0>;
31 autorepeat;
Amy Malochec6d558c2012-10-02 17:00:35 -070032 input-name = "gpio-keys";
David Janderfd05d082011-07-09 12:41:46 -070033 button@21 {
34 label = "GPIO Key UP";
35 linux,code = <103>;
36 gpios = <&gpio1 0 1>;
37 };
38 ...