diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2016-02-28 07:39:43 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-03-01 15:57:06 -0500 |
commit | 5193523ba644d60283986495d410659922660b5b (patch) | |
tree | 3fe7c0e52a65363197876e4f7f95ae3781784504 | |
parent | 04862d8063ee2b8a4f3325be72edfbb1761c9617 (diff) |
ARM: dts: omap3-sniper: TWL4030 keypad support
This adds support for the volume and gesture keys, using TWL4030 keypad.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/boot/dts/omap3-sniper.dts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/omap3-sniper.dts b/arch/arm/boot/dts/omap3-sniper.dts index 6e31daffae80..78a1184cb312 100644 --- a/arch/arm/boot/dts/omap3-sniper.dts +++ b/arch/arm/boot/dts/omap3-sniper.dts | |||
@@ -8,6 +8,7 @@ | |||
8 | /dts-v1/; | 8 | /dts-v1/; |
9 | 9 | ||
10 | #include "omap36xx.dtsi" | 10 | #include "omap36xx.dtsi" |
11 | #include <dt-bindings/input/input.h> | ||
11 | 12 | ||
12 | / { | 13 | / { |
13 | model = "LG Optimus Black"; | 14 | model = "LG Optimus Black"; |
@@ -226,6 +227,14 @@ | |||
226 | #include "twl4030.dtsi" | 227 | #include "twl4030.dtsi" |
227 | #include "twl4030_omap3.dtsi" | 228 | #include "twl4030_omap3.dtsi" |
228 | 229 | ||
230 | &twl_keypad { | ||
231 | linux,keymap = < | ||
232 | MATRIX_KEY(0x00, 0x00, KEY_VOLUMEUP) | ||
233 | MATRIX_KEY(0x01, 0x00, KEY_VOLUMEDOWN) | ||
234 | MATRIX_KEY(0x02, 0x00, KEY_SELECT) | ||
235 | >; | ||
236 | }; | ||
237 | |||
229 | /* | 238 | /* |
230 | * The TWL4030 VAUX2 and VDAC regulators power sensors that are slaves on I2C3. | 239 | * The TWL4030 VAUX2 and VDAC regulators power sensors that are slaves on I2C3. |
231 | * When not powered, these sensors cause the I2C3 clock to stay low at all times, | 240 | * When not powered, these sensors cause the I2C3 clock to stay low at all times, |