From: Dmitry Lifshitz <lifshitz@compulab.co.il>
To: "Benoît Cousson" <bcousson@baylibre.com>,
"Tony Lindgren" <tony@atomide.com>,
linux-omap@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Cc: Dmitry Lifshitz <lifshitz@compulab.co.il>
Subject: [PATCH 9/9] ARM: dts: cm-t3x30: add keypad support
Date: Tue, 18 Nov 2014 11:13:24 +0200 [thread overview]
Message-ID: <1416302004-22199-10-git-send-email-lifshitz@compulab.co.il> (raw)
In-Reply-To: <1416302004-22199-1-git-send-email-lifshitz@compulab.co.il>
Add twl4030 matrtix keypad support.
Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il>
---
arch/arm/boot/dts/omap3-cm-t3x30.dtsi | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
index bcd896f..3a91204 100644
--- a/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
+++ b/arch/arm/boot/dts/omap3-cm-t3x30.dtsi
@@ -78,6 +78,7 @@
#include "twl4030.dtsi"
#include "twl4030_omap3.dtsi"
+#include <dt-bindings/input/input.h>
&mmc1 {
vmmc-supply = <&vmmc1>;
@@ -89,6 +90,22 @@
ti,pullups = <0x000001>;
};
+&twl_keypad {
+ linux,keymap = <
+ MATRIX_KEY(0x00, 0x01, KEY_A)
+ MATRIX_KEY(0x00, 0x02, KEY_B)
+ MATRIX_KEY(0x00, 0x03, KEY_LEFT)
+
+ MATRIX_KEY(0x01, 0x01, KEY_UP)
+ MATRIX_KEY(0x01, 0x02, KEY_ENTER)
+ MATRIX_KEY(0x01, 0x03, KEY_DOWN)
+
+ MATRIX_KEY(0x02, 0x01, KEY_RIGHT)
+ MATRIX_KEY(0x02, 0x02, KEY_C)
+ MATRIX_KEY(0x02, 0x03, KEY_D)
+ >;
+};
+
&hsusb1_phy {
reset-gpios = <&twl_gpio 6 GPIO_ACTIVE_LOW>;
};
--
1.7.5.4
next prev parent reply other threads:[~2014-11-18 9:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-18 9:13 [PATCH 0/9] ARM: dts: sbc-t3x: add more features support Dmitry Lifshitz
2014-11-18 9:13 ` [PATCH 1/9] ARM: dts: cm-t3x: cleanup comments indentation Dmitry Lifshitz
2014-11-18 9:13 ` [PATCH 2/9] ARM: dts: cm-t3x: add ADS7846 touchscreen support Dmitry Lifshitz
2014-11-18 9:13 ` [PATCH 3/9] ARM: OMAP2+: remove cm-t3x touchscreen pdata quirk Dmitry Lifshitz
2014-11-18 9:13 ` [PATCH 4/9] ARM: dts: cm-t3x: add EEPROM support Dmitry Lifshitz
[not found] ` <1416302004-22199-1-git-send-email-lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>
2014-11-18 9:13 ` [PATCH 5/9] ARM: dts: sb-t35: " Dmitry Lifshitz
2014-11-18 9:13 ` [PATCH 6/9] ARM: dts: cm-t3x: add TV out support Dmitry Lifshitz
2014-11-18 9:13 ` [PATCH 7/9] ARM: dts: sbc-t3x: add TV out display alias Dmitry Lifshitz
2014-11-18 9:13 ` [PATCH 8/9] ARM: dts: sbc-t3x30: add audio support Dmitry Lifshitz
2014-11-18 9:13 ` Dmitry Lifshitz [this message]
2014-11-22 0:02 ` [PATCH 0/9] ARM: dts: sbc-t3x: add more features support Tony Lindgren
2014-11-22 0:16 ` Tony Lindgren
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=1416302004-22199-10-git-send-email-lifshitz@compulab.co.il \
--to=lifshitz@compulab.co.il \
--cc=bcousson@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.com \
/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;
as well as URLs for NNTP newsgroup(s).