From: Sourav Poddar <sourav.poddar@ti.com>
To: bcousson@baylibre.com
Cc: balbi@ti.com, devicetree@vger.kernel.org, tony@atomide.com,
linux-omap@vger.kernel.org, mark.rutland@arm.com, afzal@ti.com,
lokeshvutla@ti.com, Sourav Poddar <sourav.poddar@ti.com>
Subject: [PATCHv2 9/9] arm: dts: am43x-gp-evm: Add matrix gpio keys.
Date: Thu, 19 Dec 2013 18:03:41 +0530 [thread overview]
Message-ID: <1387456421-21379-10-git-send-email-sourav.poddar@ti.com> (raw)
In-Reply-To: <1387456421-21379-1-git-send-email-sourav.poddar@ti.com>
Add gpio keys node for am43x gp evm.
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
---
arch/arm/boot/dts/am437x-gp-evm.dts | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts
index 0dc248d..4eb72b8 100644
--- a/arch/arm/boot/dts/am437x-gp-evm.dts
+++ b/arch/arm/boot/dts/am437x-gp-evm.dts
@@ -13,6 +13,7 @@
#include "am4372.dtsi"
#include <dt-bindings/pinctrl/am43xx.h>
#include <dt-bindings/pwm/pwm.h>
+#include <dt-bindings/gpio/gpio.h>
/ {
model = "TI AM437x GP EVM";
@@ -24,6 +25,26 @@
brightness-levels = <0 51 53 56 62 75 101 152 255>;
default-brightness-level = <8>;
};
+
+ matrix_keypad: matrix_keypad@0 {
+ compatible = "gpio-matrix-keypad";
+ debounce-delay-ms = <5>;
+ col-scan-delay-us = <2>;
+
+ row-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH /* Bank3, pin21 */
+ &gpio4 3 GPIO_ACTIVE_HIGH /* Bank4, pin3 */
+ &gpio4 2 GPIO_ACTIVE_HIGH>; /* Bank4, pin2 */
+
+ col-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH /* Bank3, pin19 */
+ &gpio3 20 GPIO_ACTIVE_HIGH>; /* Bank3, pin20 */
+
+ linux,keymap = <0x00000201 /* P1 */
+ 0x00010202 /* P2 */
+ 0x01000067 /* UP */
+ 0x0101006a /* RIGHT */
+ 0x02000069 /* LEFT */
+ 0x0201006c>; /* DOWN */
+ };
};
&am43xx_pinmux {
--
1.7.9.5
next prev parent reply other threads:[~2013-12-19 12:33 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-19 12:33 [PATCHv2 0/9] Add device nodes for am43x epos and gp evm Sourav Poddar
2013-12-19 12:33 ` [PATCHv2 2/9] ARM: dts: am43x-epos-evm: Add pwm backlight support Sourav Poddar
2013-12-19 12:33 ` [PATCHv2 3/9] pinctrl: am43xx: dt-bindings: add MUX_MODE8 Sourav Poddar
2013-12-19 12:33 ` [PATCHv2 4/9] arm: dts: am43x-epos-evm: Add I2C2 data Sourav Poddar
2013-12-19 12:33 ` [PATCHv2 5/9] arm: dts: am43x-epos-evm: Add SPI data Sourav Poddar
[not found] ` <1387456421-21379-1-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
2013-12-19 12:33 ` [PATCHv2 1/9] arm: dts: am4372: Add pwm-cells property for ecap device Sourav Poddar
2013-12-19 12:33 ` [PATCHv2 6/9] arm: dts: am437x-gp-evm: Add gp dts Sourav Poddar
2013-12-19 12:33 ` [PATCHv2 7/9] arm: dts: am437x-gp-evm: Add pwm backlight support Sourav Poddar
2013-12-19 12:33 ` [PATCHv2 8/9] arm: dts: am437x-gp-evm: Enable gpio Sourav Poddar
2013-12-19 12:33 ` Sourav Poddar [this message]
2014-01-13 16:43 ` [PATCHv2 9/9] arm: dts: am43x-gp-evm: Add matrix gpio keys sourav
2014-01-14 13:14 ` Felipe Balbi
2014-01-14 14:21 ` Benoit Cousson
2014-01-14 17:54 ` Felipe Balbi
2014-02-21 14:28 ` Sourav Poddar
2014-03-02 17:30 ` Benoit Cousson
2014-03-03 5:57 ` Sourav Poddar
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=1387456421-21379-10-git-send-email-sourav.poddar@ti.com \
--to=sourav.poddar@ti.com \
--cc=afzal@ti.com \
--cc=balbi@ti.com \
--cc=bcousson@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=lokeshvutla@ti.com \
--cc=mark.rutland@arm.com \
--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).