]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM i.MX51 babbage: Add keypad support
authorLiu Ying <Ying.Liu@freescale.com>
Thu, 3 Jan 2013 12:37:34 +0000 (20:37 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Sun, 10 Feb 2013 15:25:43 +0000 (23:25 +0800)
The keypad is on the accessory board of i.MX51 babbage
main board and is driven by Keypad Port(KPP) in SoC.
The keymap is the same to i.MX25 3stack platform as
the accessory board schematic tells that it is designed
in this way.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx51-babbage.dts

index fb33aff5b4b9c464ec17c48e436f3b7c037d4792..aab6e43219af50dbd10e6bcdd2000963d43528a1 100644 (file)
        phy-mode = "mii";
        status = "okay";
 };
+
+&kpp {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_kpp_1>;
+       linux,keymap = <0x00000067      /* KEY_UP */
+                       0x0001006c      /* KEY_DOWN */
+                       0x00020072      /* KEY_VOLUMEDOWN */
+                       0x00030066      /* KEY_HOME */
+                       0x0100006a      /* KEY_RIGHT */
+                       0x01010069      /* KEY_LEFT */
+                       0x0102001c      /* KEY_ENTER */
+                       0x01030073      /* KEY_VOLUMEUP */
+                       0x02000040      /* KEY_F6 */
+                       0x02010042      /* KEY_F8 */
+                       0x02020043      /* KEY_F9 */
+                       0x02030044      /* KEY_F10 */
+                       0x0300003b      /* KEY_F1 */
+                       0x0301003c      /* KEY_F2 */
+                       0x0302003d      /* KEY_F3 */
+                       0x03030074>;    /* KEY_POWER */
+       status = "okay";
+};