From: Sebastian Reichel <sre@debian.org>
To: Benoit Cousson <bcousson@baylibre.com>
Cc: linux-omap@vger.kernel.org, Sebastian Reichel <sre@debian.org>
Subject: [PATCH 2/6] DTS: ARM: OMAP3-N900: Add TWL4030 Keypad Matrix
Date: Sat, 11 Jan 2014 22:16:59 +0100 [thread overview]
Message-ID: <1389475023-11616-3-git-send-email-sre@debian.org> (raw)
In-Reply-To: <1389475023-11616-1-git-send-email-sre@debian.org>
Add Keyboard Matrix information to N900's DTS file.
This patch maps the keys exactly as the original
board code.
Signed-off-by: Sebastian Reichel <sre@debian.org>
---
arch/arm/boot/dts/omap3-n900.dts | 55 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index 6fc85f9..40473cb 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -254,6 +254,61 @@
};
};
+&twl_keypad {
+ linux,keymap = < 0x00000010 /* KEY_Q */
+ 0x00010018 /* KEY_O */
+ 0x00020019 /* KEY_P */
+ 0x00030033 /* KEY_COMMA */
+ 0x0004000e /* KEY_BACKSPACE */
+ 0x0006001e /* KEY_A */
+ 0x0007001f /* KEY_S */
+
+ 0x01000011 /* KEY_W */
+ 0x01010020 /* KEY_D */
+ 0x01020021 /* KEY_F */
+ 0x01030022 /* KEY_G */
+ 0x01040023 /* KEY_H */
+ 0x01050024 /* KEY_J */
+ 0x01060025 /* KEY_K */
+ 0x01070026 /* KEY_L */
+
+ 0x02000012 /* KEY_E */
+ 0x02010034 /* KEY_DOT */
+ 0x02020067 /* KEY_UP */
+ 0x0203001c /* KEY_ENTER */
+ 0x0205002c /* KEY_Z */
+ 0x0206002d /* KEY_X */
+ 0x0207002e /* KEY_C */
+ 0x02080043 /* KEY_F9 */
+
+ 0x03000013 /* KEY_R */
+ 0x0301002f /* KEY_V */
+ 0x03020030 /* KEY_B */
+ 0x03030031 /* KEY_N */
+ 0x03040032 /* KEY_M */
+ 0x03050039 /* KEY_SPACE */
+ 0x03060039 /* KEY_SPACE */
+ 0x03070069 /* KEY_LEFT */
+
+ 0x04000014 /* KEY_T */
+ 0x0401006c /* KEY_DOWN */
+ 0x0402006a /* KEY_RIGHT */
+ 0x0404001d /* KEY_LEFTCTRL */
+ 0x04050064 /* KEY_RIGHTALT */
+ 0x0406002a /* KEY_LEFTSHIFT */
+ 0x04080044 /* KEY_F10 */
+
+ 0x05000015 /* KEY_Y */
+ 0x05080057 /* KEY_F11 */
+
+ 0x06000016 /* KEY_U */
+
+ 0x07000017 /* KEY_I */
+ 0x07010041 /* KEY_F7 */
+ 0x07020042 /* KEY_F8 */
+ >;
+};
+
&twl_gpio {
ti,pullups = <0x0>;
ti,pulldowns = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */
--
1.8.5.2
next prev parent reply other threads:[~2014-01-11 21:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-11 21:16 [PATCH 0/6] N900 DTS additions for 3.14 Sebastian Reichel
2014-01-11 21:16 ` [PATCH 1/6] DTS: ARM: TWL4030: Add keypad node Sebastian Reichel
2014-01-11 21:16 ` Sebastian Reichel [this message]
2014-01-11 21:17 ` [PATCH 3/6] DTS: ARM: OMAP3-N900: Add support for tsl2563 Sebastian Reichel
2014-01-11 21:17 ` [PATCH 4/6] DTS: ARM: OMAP3-N900: Add tpa6130a2 support Sebastian Reichel
2014-01-11 21:17 ` [PATCH 5/6] DTS: ARM: OMAP3-N900: Add isp1704 support Sebastian Reichel
2014-01-11 21:17 ` [PATCH 6/6] DTS: ARM: OMAP3-N900: Add bq24150a support Sebastian Reichel
2014-01-20 15:59 ` [PATCH 0/6] N900 DTS additions for 3.14 Sebastian Reichel
2014-01-21 11:59 ` Benoit Cousson
2014-01-21 13:26 ` Sebastian Reichel
2014-01-29 15:03 ` Sebastian Reichel
2014-01-29 15:04 ` Nishanth Menon
2014-01-29 15:47 ` Sebastian Reichel
2014-02-21 14:26 ` Benoit Cousson
2014-02-21 14:42 ` Sebastian Reichel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1389475023-11616-3-git-send-email-sre@debian.org \
--to=sre@debian.org \
--cc=bcousson@baylibre.com \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox