[PATCH 3/4] arm/dts: omap5-evm: Add keypad data

From
Koen Kooi <hidden>
Date
2012-08-03 12:50:19
Also in
linux-devicetree, linux-omap, lkml
Reply to
Sourav Poddar, 2012-08-03
Op 3 aug. 2012, om 14:38 heeft Sourav Poddar [off-list ref] het volgende geschreven:
quoted hunk ↗ jump to hunk
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.

Tested on omap5430 evm with 3.5 custom kernel.

Cc: Benoit Cousson <redacted>
Cc: Felipe Balbi <redacted>
Cc: Santosh Shilimkar <redacted>
Acked-by: Felipe Balbi <redacted>
Signed-off-by: Sourav Poddar <redacted>
---
arch/arm/boot/dts/omap5-evm.dts |   12 ++++++++++++
arch/arm/boot/dts/omap5.dtsi    |    5 +++++
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap5-evm.dts b/arch/arm/boot/dts/omap5-evm.dts
index 45a8aeb..09fe941 100644
--- a/arch/arm/boot/dts/omap5-evm.dts
+++ b/arch/arm/boot/dts/omap5-evm.dts
@@ -17,6 +17,18 @@
		device_type = "memory";
		reg = <0x80000000 0x40000000>; /* 1 GB */
	};
+
+	keypad {
+		keypad,num-rows = <8>;
+		keypad,num-columns = <8>;
+		linux,keymap = < 0x02020073
+			0x02030072
+			0x020400e7
+			0x02050066
+			0x0206006b
+			0x020700d9 >;
+		linux,input-no-autorepeat;
+	};
This not a criticism on your patch, but a generic question about DT: Is there no way to have nice constants for keys like we have in the kernel, like KEY_POWER, KEY_UP, etc? If no, does DT allow comments so I can look at a dts and see which keycodes are mapped instead of having to dig up the sources?

regards,

Koen
Thread (11 messages) 11 messages, 4 authors, last reply 2012-08-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help