ARM: dts: omap5-evm: Add keypad data
authorSourav Poddar <sourav.poddar@ti.com>
Wed, 25 Jul 2012 05:33:27 +0000 (11:03 +0530)
committerBenoit Cousson <b-cousson@ti.com>
Fri, 7 Sep 2012 17:18:30 +0000 (19:18 +0200)
Add keypad data node in omap5 device tree file.
Also fill the device tree binding parameters
with the required value in "omap5-evm" dts file.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
[b-cousson@ti.com: Fix merge issue with MMC patches,
put node at the proper place, align entries and comments]
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
arch/arm/boot/dts/omap5-evm.dts
arch/arm/boot/dts/omap5.dtsi

index 1790f41ca23e2da56322eceec109676af11d7989..457d1ec7ed93d2b9374d6e462e1e359951c19ec7 100644 (file)
@@ -24,6 +24,7 @@
                regulator-min-microvolt = <3000000>;
                regulator-max-microvolt = <3000000>;
        };
+
 };
 
 &mmc1 {
                reg = <0x48>;
        };
 };
+
+&keypad {
+       keypad,num-rows = <8>;
+       keypad,num-columns = <8>;
+       linux,keymap = <0x02020073      /* VOLUP */
+                       0x02030072      /* VOLDOWM */
+                       0x020400e7      /* SEND */
+                       0x02050066      /* HOME */
+                       0x0206006b      /* END */
+                       0x020700d9>;    /* SEARCH */
+       linux,input-no-autorepeat;
+};
index 424ad161aa447e0b6be63e40737e61929a96e56b..4c11ae1975ccacbe6ce417594284973a025a70be 100644 (file)
                        ti,hwmods = "mmc5";
                        ti,needs-special-reset;
                };
+
+               keypad: keypad@4ae1c000 {
+                       compatible = "ti,omap4-keypad";
+                       ti,hwmods = "kbd";
+               };
        };
 };