diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-27 12:24:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-27 12:24:56 -0400 |
commit | 70a3eff5768350c0313a9ae70a15da113171d0ab (patch) | |
tree | 9c2558f92e567bcb35c79f59bc7ebc9cf6fdc9d3 /Documentation/devicetree/bindings/gpio | |
parent | 9ed3689bdceb0064ee6faf0e76f6467122794970 (diff) | |
parent | aa7eb8e78d8ecd6cd0475d86ea8385ff9cb47ece (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (53 commits)
Input: synaptics - fix reporting of min coordinates
Input: tegra-kbc - enable key autorepeat
Input: kxtj9 - fix locking typo in kxtj9_set_poll()
Input: kxtj9 - fix bug in probe()
Input: intel-mid-touch - remove pointless checking for variable 'found'
Input: hp_sdc - staticize hp_sdc_kicker()
Input: pmic8xxx-keypad - fix a leak of the IRQ during init failure
Input: cy8ctmg110_ts - set reset_pin and irq_pin from platform data
Input: cy8ctmg110_ts - constify i2c_device_id table
Input: cy8ctmg110_ts - fix checking return value of i2c_master_send
Input: lifebook - make dmi callback functions return 1
Input: atkbd - make dmi callback functions return 1
Input: gpio_keys - switch to using SIMPLE_DEV_PM_OPS
Input: gpio_keys - add support for device-tree platform data
Input: aiptek - remove double define
Input: synaptics - set minimum coordinates as reported by firmware
Input: synaptics - process button bits in AGM packets
Input: synaptics - rename set_slot to be more descriptive
Input: synaptics - fuzz position for touchpad with reduced filtering
Input: synaptics - set resolution for MT_POSITION_X/Y axes
...
Diffstat (limited to 'Documentation/devicetree/bindings/gpio')
-rw-r--r-- | Documentation/devicetree/bindings/gpio/gpio_keys.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/gpio/gpio_keys.txt b/Documentation/devicetree/bindings/gpio/gpio_keys.txt new file mode 100644 index 000000000000..7190c99d7611 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio_keys.txt | |||
@@ -0,0 +1,36 @@ | |||
1 | Device-Tree bindings for input/gpio_keys.c keyboard driver | ||
2 | |||
3 | Required properties: | ||
4 | - compatible = "gpio-keys"; | ||
5 | |||
6 | Optional properties: | ||
7 | - autorepeat: Boolean, Enable auto repeat feature of Linux input | ||
8 | subsystem. | ||
9 | |||
10 | Each button (key) is represented as a sub-node of "gpio-keys": | ||
11 | Subnode properties: | ||
12 | |||
13 | - gpios: OF devcie-tree gpio specificatin. | ||
14 | - label: Descriptive name of the key. | ||
15 | - linux,code: Keycode to emit. | ||
16 | |||
17 | Optional subnode-properties: | ||
18 | - linux,input-type: Specify event type this button/key generates. | ||
19 | If not specified defaults to <1> == EV_KEY. | ||
20 | - debounce-interval: Debouncing interval time in milliseconds. | ||
21 | If not specified defaults to 5. | ||
22 | - gpio-key,wakeup: Boolean, button can wake-up the system. | ||
23 | |||
24 | Example nodes: | ||
25 | |||
26 | gpio_keys { | ||
27 | compatible = "gpio-keys"; | ||
28 | #address-cells = <1>; | ||
29 | #size-cells = <0>; | ||
30 | autorepeat; | ||
31 | button@21 { | ||
32 | label = "GPIO Key UP"; | ||
33 | linux,code = <103>; | ||
34 | gpios = <&gpio1 0 1>; | ||
35 | }; | ||
36 | ... | ||