summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
diff options
context:
space:
mode:
authorDmitry Lifshitz <lifshitz@compulab.co.il>2014-11-18 11:13:24 +0200
committerTony Lindgren <tony@atomide.com>2014-11-21 16:14:06 -0800
commit828b949f4bf42d261448660caf012a589d061e13 (patch)
tree505a9990533f7af900be1bc2ee70c12c44e02c7c /arch/arm/boot/dts/omap3-cm-t3x30.dtsi
parente35351bb711c031bc802f8e865dbca39060d1d11 (diff)
downloadtalos-obmc-linux-828b949f4bf42d261448660caf012a589d061e13.tar.gz
talos-obmc-linux-828b949f4bf42d261448660caf012a589d061e13.zip
ARM: dts: cm-t3x30: add keypad support
Add twl4030 matrtix keypad support. Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/boot/dts/omap3-cm-t3x30.dtsi')
-rw-r--r--arch/arm/boot/dts/omap3-cm-t3x30.dtsi17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
index 25ba08331d88..3cbaf98c1372 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
@@ -64,6 +64,7 @@
#include "twl4030.dtsi"
#include "twl4030_omap3.dtsi"
+#include <dt-bindings/input/input.h>
&mmc1 {
vmmc-supply = <&vmmc1>;
@@ -75,6 +76,22 @@
ti,pullups = <0x000001>;
};
+&twl_keypad {
+ linux,keymap = <
+ MATRIX_KEY(0x00, 0x01, KEY_A)
+ MATRIX_KEY(0x00, 0x02, KEY_B)
+ MATRIX_KEY(0x00, 0x03, KEY_LEFT)
+
+ MATRIX_KEY(0x01, 0x01, KEY_UP)
+ MATRIX_KEY(0x01, 0x02, KEY_ENTER)
+ MATRIX_KEY(0x01, 0x03, KEY_DOWN)
+
+ MATRIX_KEY(0x02, 0x01, KEY_RIGHT)
+ MATRIX_KEY(0x02, 0x02, KEY_C)
+ MATRIX_KEY(0x02, 0x03, KEY_D)
+ >;
+};
+
&hsusb1_phy {
reset-gpios = <&twl_gpio 6 GPIO_ACTIVE_LOW>;
};
OpenPOWER on IntegriCloud