diff options
| author | Nick Dyer <nick.dyer@itdev.co.uk> | 2014-08-17 12:08:42 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-08-19 15:00:31 -0400 |
| commit | f5940231a5a27fa015aaff42db8dac05362d53bc (patch) | |
| tree | 20b6588de6dc57be615e9173f143f7cffb95ad31 /Documentation/devicetree/bindings/input | |
| parent | 91167e1914673972511617b6f4165bb12c3e0dcf (diff) | |
Input: atmel_mxt_ts - improve description of gpio-keymap property
The below patch improves the documentation for the gpio-property. Stephen
Warren has a good example here:
https://github.com/swarren/linux-tegra/commit/09789801
trackpad@4b {
compatible = "atmel,maxtouch";
reg = <0x4b>;
interrupt-parent = <&gpio>;
interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_LEVEL_LOW>;
linux,gpio-keymap = <0 0 0 BTN_LEFT>;
};
This maps BTN_LEFT to the 4th bit of the T19 message.
Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input')
| -rw-r--r-- | Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt b/Documentation/devicetree/bindings/input/atmel,maxtouch.txt index baef432e8369..0ac23f2ed104 100644 --- a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt +++ b/Documentation/devicetree/bindings/input/atmel,maxtouch.txt | |||
| @@ -15,6 +15,17 @@ Optional properties for main touchpad device: | |||
| 15 | keycode generated by each GPIO. Linux keycodes are defined in | 15 | keycode generated by each GPIO. Linux keycodes are defined in |
| 16 | <dt-bindings/input/input.h>. | 16 | <dt-bindings/input/input.h>. |
| 17 | 17 | ||
| 18 | - linux,gpio-keymap: When enabled, the SPT_GPIOPWN_T19 object sends messages | ||
| 19 | on GPIO bit changes. An array of up to 8 entries can be provided | ||
| 20 | indicating the Linux keycode mapped to each bit of the status byte, | ||
| 21 | starting at the LSB. Linux keycodes are defined in | ||
| 22 | <dt-bindings/input/input.h>. | ||
| 23 | |||
| 24 | Note: the numbering of the GPIOs and the bit they start at varies between | ||
| 25 | maXTouch devices. You must either refer to the documentation, or | ||
| 26 | experiment to determine which bit corresponds to which input. Use | ||
| 27 | KEY_RESERVED for unused padding values. | ||
| 28 | |||
| 18 | Example: | 29 | Example: |
| 19 | 30 | ||
| 20 | touch@4b { | 31 | touch@4b { |
