summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/am437x-gp-evm.dts
diff options
context:
space:
mode:
authorSourav Poddar <sourav.poddar@ti.com>2013-12-19 16:33:41 +0400
committerBenoit Cousson <bcousson@baylibre.com>2014-03-03 00:26:20 +0400
commit51724dbb5cbbebafee4d6f938f92928c091ae7c0 (patch)
treee316cc1e2a8f288571565e29dc724f0b3ea0ceb6 /arch/arm/boot/dts/am437x-gp-evm.dts
parentd3d46ccae3b99932fcb9eaa82664668a3c35128e (diff)
downloadlinux-51724dbb5cbbebafee4d6f938f92928c091ae7c0.tar.xz
ARM: dts: am43x-gp-evm: Add matrix gpio keys.
Add gpio keys node for am43x gp evm. Signed-off-by: Sourav Poddar <sourav.poddar@ti.com> Signed-off-by: Benoit Cousson <bcousson@baylibre.com>
Diffstat (limited to 'arch/arm/boot/dts/am437x-gp-evm.dts')
-rw-r--r--arch/arm/boot/dts/am437x-gp-evm.dts21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts
index 0dc248d125b1..4eb72b803d6d 100644
--- a/arch/arm/boot/dts/am437x-gp-evm.dts
+++ b/arch/arm/boot/dts/am437x-gp-evm.dts
@@ -13,6 +13,7 @@
#include "am4372.dtsi"
#include <dt-bindings/pinctrl/am43xx.h>
#include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/gpio/gpio.h>
/ {
model = "TI AM437x GP EVM";
@@ -24,6 +25,26 @@
brightness-levels = <0 51 53 56 62 75 101 152 255>;
default-brightness-level = <8>;
};
+
+ matrix_keypad: matrix_keypad@0 {
+ compatible = "gpio-matrix-keypad";
+ debounce-delay-ms = <5>;
+ col-scan-delay-us = <2>;
+
+ row-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH /* Bank3, pin21 */
+ &gpio4 3 GPIO_ACTIVE_HIGH /* Bank4, pin3 */
+ &gpio4 2 GPIO_ACTIVE_HIGH>; /* Bank4, pin2 */
+
+ col-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH /* Bank3, pin19 */
+ &gpio3 20 GPIO_ACTIVE_HIGH>; /* Bank3, pin20 */
+
+ linux,keymap = <0x00000201 /* P1 */
+ 0x00010202 /* P2 */
+ 0x01000067 /* UP */
+ 0x0101006a /* RIGHT */
+ 0x02000069 /* LEFT */
+ 0x0201006c>; /* DOWN */
+ };
};
&am43xx_pinmux {