[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1334848537-823-2-git-send-email-sourav.poddar@ti.com>
Date: Thu, 19 Apr 2012 20:45:37 +0530
From: Sourav Poddar <sourav.poddar@...com>
To: <devicetree-discuss@...ts.ozlabs.org>
CC: <linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <linux-input@...r.kernel.org>
Subject: [PATCHv2 2/2] arm/dts: omap4-sdp: Add keypad data
Add keypad data node in omap4 device tree file.
Also fill the device tree binding parameters
with the required value in "omap4-sdp" dts file.
Tested on omap44330 sdp with 3.4-rc3 kernel.
Cc: Benoit Cousson <b-cousson@...com>
Cc: Rob Herring <rob.herring@...xeda.com>
Cc: Grant Likely <grant.likely@...retlab.ca>
Cc: Felipe Balbi <balbi@...com>
Signed-off-by: Sourav Poddar <sourav.poddar@...com>
---
Changes since v1:
- updated commit log
- order of the patch series change.
arch/arm/boot/dts/omap4-sdp.dts | 291 +++++++++++++++++++++++++++++++++++++++
arch/arm/boot/dts/omap4.dtsi | 5 +
2 files changed, 296 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap4-sdp.dts b/arch/arm/boot/dts/omap4-sdp.dts
index 63c6b2b..ac855b8 100644
--- a/arch/arm/boot/dts/omap4-sdp.dts
+++ b/arch/arm/boot/dts/omap4-sdp.dts
@@ -17,4 +17,295 @@
device_type = "memory";
reg = <0x80000000 0x40000000>; /* 1 GB */
};
+
+ keypad@...1c000 {
+ keypad,num-rows = <8>;
+ keypad,num-columns = <8>;
+
+ key_E {
+ keypad,row = <0>;
+ keypad,column = <0>;
+ linux,code = <18>;
+ };
+ key_R {
+ keypad,row = <0>;
+ keypad,column = <1>;
+ linux,code = <19>;
+ };
+ key_T {
+ keypad,row = <0>;
+ keypad,column = <2>;
+ linux,code = <20>;
+ };
+ key_HOME {
+ keypad,row = <0>;
+ keypad,column = <3>;
+ linux,code = <102>;
+ };
+ key_F5 {
+ keypad,row = <0>;
+ keypad,column = <4>;
+ linux,code = <63>;
+ };
+ key_I {
+ keypad,row = <0>;
+ keypad,column = <6>;
+ linux,code = <23>;
+ };
+ key_LEFTSHIFT {
+ keypad,row = <0>;
+ keypad,column = <7>;
+ linux,code = <42>;
+ };
+ key_D {
+ keypad,row = <1>;
+ keypad,column = <0>;
+ linux,code = <32>;
+ };
+ key_F {
+ keypad,row = <1>;
+ keypad,column = <1>;
+ linux,code = <33>;
+ };
+ key_G {
+ keypad,row = <1>;
+ keypad,column = <2>;
+ linux,code = <34>;
+ };
+ key_SEND {
+ keypad,row = <1>;
+ keypad,column = <3>;
+ linux,code = <84>;
+ };
+ key_F6 {
+ keypad,row = <1>;
+ keypad,column = <4>;
+ linux,code = <64>;
+ };
+ key_K {
+ keypad,row = <1>;
+ keypad,column = <6>;
+ linux,code = <37>;
+ };
+ key_ENTER {
+ keypad,row = <1>;
+ keypad,column = <7>;
+ linux,code = <28>;
+ };
+ key_X {
+ keypad,row = <2>;
+ keypad,column = <0>;
+ linux,code = <45>;
+ };
+ key_C {
+ keypad,row = <2>;
+ keypad,column = <1>;
+ linux,code = <46>;
+ };
+ key_V {
+ keypad,row = <2>;
+ keypad,column = <2>;
+ linux,code = <47>;
+ };
+ key_END {
+ keypad,row = <2>;
+ keypad,column = <3>;
+ linux,code = <107>;
+ };
+ key_F7 {
+ keypad,row = <2>;
+ keypad,column = <4>;
+ linux,code = <65>;
+ };
+ key_DOT {
+ keypad,row = <2>;
+ keypad,column = <6>;
+ linux,code = <52>;
+ };
+ key_CAPSLOCK {
+ keypad,row = <2>;
+ keypad,column = <7>;
+ linux,code = <58>;
+ };
+ key_Z {
+ keypad,row = <3>;
+ keypad,column = <0>;
+ linux,code = <44>;
+ };
+ key_KPLUS {
+ keypad,row = <3>;
+ keypad,column = <1>;
+ linux,code = <78>;
+ };
+ key_B {
+ keypad,row = <3>;
+ keypad,column = <2>;
+ linux,code = <48>;
+ };
+ key_F1 {
+ keypad,row = <3>;
+ keypad,column = <3>;
+ linux,code = <59>;
+ };
+ key_F8 {
+ keypad,row = <3>;
+ keypad,column = <4>;
+ linux,code = <66>;
+ };
+ key_O {
+ keypad,row = <3>;
+ keypad,column = <6>;
+ linux,code = <24>;
+ };
+ key_SPACE {
+ keypad,row = <3>;
+ keypad,column = <7>;
+ linux,code = <57>;
+ };
+ key_W {
+ keypad,row = <4>;
+ keypad,column = <0>;
+ linux,code = <17>;
+ };
+ key_Y {
+ keypad,row = <4>;
+ keypad,column = <1>;
+ linux,code = <21>;
+ };
+ key_U {
+ keypad,row = <4>;
+ keypad,column = <2>;
+ linux,code = <22>;
+ };
+ key_F2 {
+ keypad,row = <4>;
+ keypad,column = <3>;
+ linux,code = <60>;
+ };
+ key_VOLUMEUP {
+ keypad,row = <4>;
+ keypad,column = <4>;
+ linux,code = <115>;
+ };
+ key_L {
+ keypad,row = <4>;
+ keypad,column = <6>;
+ linux,code = <38>;
+ };
+ key_LEFT {
+ keypad,row = <4>;
+ keypad,column = <7>;
+ linux,code = <105>;
+ };
+ key_S {
+ keypad,row = <5>;
+ keypad,column = <0>;
+ linux,code = <31>;
+ };
+ key_H {
+ keypad,row = <5>;
+ keypad,column = <1>;
+ linux,code = <35>;
+ };
+ key_J {
+ keypad,row = <5>;
+ keypad,column = <2>;
+ linux,code = <36>;
+ };
+ key_F3 {
+ keypad,row = <5>;
+ keypad,column = <3>;
+ linux,code = <61>;
+ };
+ key_F9 {
+ keypad,row = <5>;
+ keypad,column = <4>;
+ linux,code = <67>;
+ };
+ key_VOLUMEDOWN {
+ keypad,row = <5>;
+ keypad,column = <5>;
+ linux,code = <114>;
+ };
+ key_M {
+ keypad,row = <5>;
+ keypad,column = <6>;
+ linux,code = <50>;
+ };
+ key_RIGHT {
+ keypad,row = <5>;
+ keypad,column = <7>;
+ linux,code = <106>;
+ };
+ key_Q {
+ keypad,row = <6>;
+ keypad,column = <0>;
+ linux,code = <16>;
+ };
+ key_A {
+ keypad,row = <6>;
+ keypad,column = <1>;
+ linux,code = <30>;
+ };
+ key_N {
+ keypad,row = <6>;
+ keypad,column = <2>;
+ linux,code = <49>;
+ };
+ key_BACK {
+ keypad,row = <6>;
+ keypad,column = <3>;
+ linux,code = <92>;
+ };
+ key_BACKSPACE {
+ keypad,row = <6>;
+ keypad,column = <4>;
+ linux,code = <14>;
+ };
+ key_P {
+ keypad,row = <6>;
+ keypad,column = <6>;
+ linux,code = <25>;
+ };
+ key_UP {
+ keypad,row = <6>;
+ keypad,column = <7>;
+ linux,code = <103>;
+ };
+ key_PROG1 {
+ keypad,row = <7>;
+ keypad,column = <0>;
+ linux,code = <148>;
+ };
+ key_PROG2 {
+ keypad,row = <7>;
+ keypad,column = <1>;
+ linux,code = <149>;
+ };
+ key_PROG3 {
+ keypad,row = <7>;
+ keypad,column = <2>;
+ linux,code = <202>;
+ };
+ key_PROG4 {
+ keypad,row = <7>;
+ keypad,column = <3>;
+ linux,code = <203>;
+ };
+ key_F4 {
+ keypad,row = <7>;
+ keypad,column = <4>;
+ linux,code = <62>;
+ };
+ key_Ok {
+ keypad,row = <7>;
+ keypad,column = <6>;
+ linux,code = <352>;
+ };
+ key_DOWN {
+ keypad,row = <7>;
+ keypad,column = <7>;
+ linux,code = <108>;
+ };
+ };
};
diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi
index 3d35559..e0f678a 100644
--- a/arch/arm/boot/dts/omap4.dtsi
+++ b/arch/arm/boot/dts/omap4.dtsi
@@ -156,4 +156,9 @@
ti,hwmods = "i2c4";
};
};
+
+ keypad@...1c000 {
+ compatible = "ti,omap4-keypad";
+ ti,hwmods = "kbd";
+ };
};
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists