summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/am335x-evm.dts
diff options
context:
space:
mode:
authorAnilKumar Ch <anilkumar@ti.com>2012-11-06 17:48:30 +0400
committerBenoit Cousson <b-cousson@ti.com>2012-11-06 18:45:48 +0400
commit2ca1d317aa78492f206d3e325965a990aa33a226 (patch)
treeff2c66048e5805934a96edcf2d60628bf3298f50 /arch/arm/boot/dts/am335x-evm.dts
parent5d9b66f278cb1f137dc6126ed461e747870d9058 (diff)
downloadlinux-2ca1d317aa78492f206d3e325965a990aa33a226.tar.xz
ARM: dts: AM33XX: Add matrix keypad device tree data to am335x-evm
Add matrix keypad device tree data to am335x-evm by adding all the necessary parameters like keymap, row & column gpios and etc. Signed-off-by: AnilKumar Ch <anilkumar@ti.com> Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Diffstat (limited to 'arch/arm/boot/dts/am335x-evm.dts')
-rw-r--r--arch/arm/boot/dts/am335x-evm.dts20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
index 9199456cfac4..8076e66f9367 100644
--- a/arch/arm/boot/dts/am335x-evm.dts
+++ b/arch/arm/boot/dts/am335x-evm.dts
@@ -110,6 +110,26 @@
regulator-name = "lis3_reg";
regulator-boot-on;
};
+
+ matrix_keypad: matrix_keypad@0 {
+ compatible = "gpio-matrix-keypad";
+ debounce-delay-ms = <5>;
+ col-scan-delay-us = <2>;
+
+ row-gpios = <&gpio2 25 0 /* Bank1, pin25 */
+ &gpio2 26 0 /* Bank1, pin26 */
+ &gpio2 27 0>; /* Bank1, pin27 */
+
+ col-gpios = <&gpio2 21 0 /* Bank1, pin21 */
+ &gpio2 22 0>; /* Bank1, pin22 */
+
+ linux,keymap = <0x0000008b /* MENU */
+ 0x0100009e /* BACK */
+ 0x02000069 /* LEFT */
+ 0x0001006a /* RIGHT */
+ 0x0101001c /* ENTER */
+ 0x0201006c>; /* DOWN */
+ };
};
/include/ "tps65910.dtsi"