aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Lifshitz <lifshitz@compulab.co.il>2014-11-18 04:13:24 -0500
committerTony Lindgren <tony@atomide.com>2014-11-21 19:27:22 -0500
commit29c4ce17bcad34a086348dfd5c42b8cf5fda110b (patch)
treea3e9f88718c9e2b3566991a5eb2a4954f767de53
parent88e66102b7c7e6f6a142f57e6183ef9193f3220e (diff)
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>
-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 @@
64 64
65#include "twl4030.dtsi" 65#include "twl4030.dtsi"
66#include "twl4030_omap3.dtsi" 66#include "twl4030_omap3.dtsi"
67#include <dt-bindings/input/input.h>
67 68
68&mmc1 { 69&mmc1 {
69 vmmc-supply = <&vmmc1>; 70 vmmc-supply = <&vmmc1>;
@@ -75,6 +76,22 @@
75 ti,pullups = <0x000001>; 76 ti,pullups = <0x000001>;
76}; 77};
77 78
79&twl_keypad {
80 linux,keymap = <
81 MATRIX_KEY(0x00, 0x01, KEY_A)
82 MATRIX_KEY(0x00, 0x02, KEY_B)
83 MATRIX_KEY(0x00, 0x03, KEY_LEFT)
84
85 MATRIX_KEY(0x01, 0x01, KEY_UP)
86 MATRIX_KEY(0x01, 0x02, KEY_ENTER)
87 MATRIX_KEY(0x01, 0x03, KEY_DOWN)
88
89 MATRIX_KEY(0x02, 0x01, KEY_RIGHT)
90 MATRIX_KEY(0x02, 0x02, KEY_C)
91 MATRIX_KEY(0x02, 0x03, KEY_D)
92 >;
93};
94
78&hsusb1_phy { 95&hsusb1_phy {
79 reset-gpios = <&twl_gpio 6 GPIO_ACTIVE_LOW>; 96 reset-gpios = <&twl_gpio 6 GPIO_ACTIVE_LOW>;
80}; 97};