]> git.karo-electronics.de Git - linux-beck.git/commit
Input: atmel_mxt_ts - improve description of gpio-keymap property
authorNick Dyer <nick.dyer@itdev.co.uk>
Sun, 17 Aug 2014 16:08:42 +0000 (09:08 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 19 Aug 2014 19:00:31 +0000 (12:00 -0700)
commitf5940231a5a27fa015aaff42db8dac05362d53bc
tree20b6588de6dc57be615e9173f143f7cffb95ad31
parent91167e1914673972511617b6f4165bb12c3e0dcf
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>
Documentation/devicetree/bindings/input/atmel,maxtouch.txt