summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/omap3-devkit8000.dts
diff options
context:
space:
mode:
authorAnthoine Bourgeois <anthoine.bourgeois@gmail.com>2015-08-04 22:53:28 +0200
committerTony Lindgren <tony@atomide.com>2015-08-06 09:33:43 +0200
commit26fa89239201d6c5f767ebe7c2353d469ebf6222 (patch)
treef366a36c8dcbd121073d1d6d2531192852305d1d /arch/arm/boot/dts/omap3-devkit8000.dts
parentARM: dts: omap3-devkit8000: Add PMU stat support (diff)
downloadlinux-26fa89239201d6c5f767ebe7c2353d469ebf6222.tar.xz
linux-26fa89239201d6c5f767ebe7c2353d469ebf6222.zip
ARM: dts: omap3-devkit8000: Add keymap support
The keymap is convert in devicetree from the legacy board file. Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com> [tony@atomide.com: added missing sign as noted by Anthoine] Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/boot/dts/omap3-devkit8000.dts')
-rw-r--r--arch/arm/boot/dts/omap3-devkit8000.dts21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/omap3-devkit8000.dts b/arch/arm/boot/dts/omap3-devkit8000.dts
index c4a07fbfcc45..df8208f0ae4a 100644
--- a/arch/arm/boot/dts/omap3-devkit8000.dts
+++ b/arch/arm/boot/dts/omap3-devkit8000.dts
@@ -123,6 +123,27 @@
ti,pulldowns = <0x03a1c6>;
};
+&twl_keypad {
+ linux,keymap = <MATRIX_KEY(0, 0, KEY_1)
+ MATRIX_KEY(1, 0, KEY_2)
+ MATRIX_KEY(2, 0, KEY_3)
+ MATRIX_KEY(0, 1, KEY_4)
+ MATRIX_KEY(1, 1, KEY_5)
+ MATRIX_KEY(2, 1, KEY_6)
+ MATRIX_KEY(3, 1, KEY_F5)
+ MATRIX_KEY(0, 2, KEY_7)
+ MATRIX_KEY(1, 2, KEY_8)
+ MATRIX_KEY(2, 2, KEY_9)
+ MATRIX_KEY(3, 2, KEY_F6)
+ MATRIX_KEY(0, 3, KEY_F7)
+ MATRIX_KEY(1, 3, KEY_0)
+ MATRIX_KEY(2, 3, KEY_F8)
+ MATRIX_KEY(4, 5, KEY_RESERVED)
+ MATRIX_KEY(4, 4, KEY_VOLUMEUP)
+ MATRIX_KEY(5, 5, KEY_VOLUMEDOWN)
+ >;
+};
+
&wdt2 {
status = "disabled";
};