-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 260778 b: refs/heads/master c: fd05d08 h: refs/heads/master v: v3
- Loading branch information
David Jander
authored and
Dmitry Torokhov
committed
Jul 10, 2011
1 parent
4509d84
commit 12750da
Showing
3 changed files
with
169 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: eadba0c9c41bfa840b0f1e9ee369a869c2a322b3 | ||
refs/heads/master: fd05d08920b54d189aa247c5c5701a08e539ed0b |
36 changes: 36 additions & 0 deletions
36
trunk/Documentation/devicetree/bindings/gpio/gpio_keys.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Device-Tree bindings for input/gpio_keys.c keyboard driver | ||
|
||
Required properties: | ||
- compatible = "gpio-keys"; | ||
|
||
Optional properties: | ||
- autorepeat: Boolean, Enable auto repeat feature of Linux input | ||
subsystem. | ||
|
||
Each button (key) is represented as a sub-node of "gpio-keys": | ||
Subnode properties: | ||
|
||
- gpios: OF devcie-tree gpio specificatin. | ||
- label: Descriptive name of the key. | ||
- linux,code: Keycode to emit. | ||
|
||
Optional subnode-properties: | ||
- linux,input-type: Specify event type this button/key generates. | ||
If not specified defaults to <1> == EV_KEY. | ||
- debounce-interval: Debouncing interval time in milliseconds. | ||
If not specified defaults to 5. | ||
- gpio-key,wakeup: Boolean, button can wake-up the system. | ||
|
||
Example nodes: | ||
|
||
gpio_keys { | ||
compatible = "gpio-keys"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
autorepeat; | ||
button@21 { | ||
label = "GPIO Key UP"; | ||
linux,code = <103>; | ||
gpios = <&gpio1 0 1>; | ||
}; | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters