From: <Gireesh.Hiremath@in.bosch.com>
To: <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-omap@vger.kernel.org>, <robh+dt@kernel.org>,
<tony@atomide.com>, <bcousson@baylibre.com>
Cc: <sjoerd.simons@collabora.co.uk>,
<VinayKumar.Shettar@in.bosch.com>,
<Govindaraji.Sivanantham@in.bosch.com>,
<anaclaudia.dias@de.bosch.com>, <Gireesh.Hiremath@in.bosch.com>
Subject: [PATCH 03/15] ARM: dts: am335x: Guardian: Add keypad
Date: Fri, 25 Mar 2022 10:06:01 +0000 [thread overview]
Message-ID: <20220325100613.1494-4-Gireesh.Hiremath@in.bosch.com> (raw)
In-Reply-To: <20220325100613.1494-1-Gireesh.Hiremath@in.bosch.com>
From: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
* Add support to guardian mt gpio keypad
Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
---
arch/arm/boot/dts/am335x-guardian.dts | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm/boot/dts/am335x-guardian.dts b/arch/arm/boot/dts/am335x-guardian.dts
index 645de77bdb56..6f59c5f36c0d 100644
--- a/arch/arm/boot/dts/am335x-guardian.dts
+++ b/arch/arm/boot/dts/am335x-guardian.dts
@@ -36,6 +36,13 @@
#address-cells = <1>;
#size-cells = <0>;
+ select-button {
+ label = "guardian-select-button";
+ linux,code = <KEY_5>;
+ gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
+ wakeup-source;
+ };
+
power-button {
label = "guardian-power-button";
linux,code = <KEY_POWER>;
@@ -115,6 +122,22 @@
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
+
+ mt_keypad: mt_keypad@0 {
+ compatible = "gpio-mt-keypad";
+ debounce-delay-ms = <10>;
+ col-scan-delay-us = <2>;
+ keypad,num-lines = <5>;
+ linux,no-autorepeat;
+ gpio-activelow;
+ line-gpios = <
+ &gpio1 24 GPIO_ACTIVE_LOW /*gpio_56*/
+ &gpio1 23 GPIO_ACTIVE_LOW /*gpio_55*/
+ &gpio1 22 GPIO_ACTIVE_LOW /*gpio_54*/
+ &gpio1 20 GPIO_ACTIVE_LOW /*gpio_52*/
+ &gpio1 16 GPIO_ACTIVE_LOW /*gpio_48*/
+ >;
+ };
};
&elm {
@@ -369,6 +392,7 @@
guardian_button_pins: pinmux_guardian_button_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x940, PIN_INPUT | MUX_MODE7) /* (M16) gmii1_rxd0.gpio2[21] */
+ AM33XX_IOPAD(0x884, PIN_INPUT | MUX_MODE7) /* (V9) gpmc_csn2.gpio1[31] */
>;
};
--
2.20.1
next prev parent reply other threads:[~2022-03-25 10:15 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-25 10:05 [PATCH 00/15] am335x, guardian: update board specific dts changes Gireesh.Hiremath
2022-03-25 10:05 ` [PATCH 01/15] ARM: dts: am335x: Guardian: Update NAND partition table Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 02/15] ARM: dts: am335x: Guardian: Rename power button label Gireesh.Hiremath
2022-03-25 10:06 ` Gireesh.Hiremath [this message]
2022-03-25 10:06 ` [PATCH 04/15] ARM: dts: am335x: Guardian: Disable poweroff support from RTC Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 05/15] ARM: dts: am335x: Guardian: Remove mmc status led Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 06/15] ARM: dts: am335x: Guardian: Update life led Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 07/15] ARM: dts: am335x: Guardian: Update beeper label Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 08/15] ARM: dts: am335x: Guardian: Update regulator node name Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 09/15] ARM: dts: am335x: Guardian: Add lcd port Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 10/15] ARM: dts: am335x: Guardian: Update backlight parameter Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 11/15] ARM: dts: am335x: Guardian: Enable UART port two Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 12/15] ARM: dts: am335x: Guardian: Disable DMA property of USB1 Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 13/15] ARM: dts: am335x: Guardian: Update interface pinmux Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 14/15] ARM: dts: am335x: Guardian: Add gpio line manes Gireesh.Hiremath
2022-03-25 10:06 ` [PATCH 15/15] ARM: dts: am335x: Guardian: Update comments Gireesh.Hiremath
2022-04-21 11:08 ` [PATCH 00/15] am335x, guardian: update board specific dts changes 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=20220325100613.1494-4-Gireesh.Hiremath@in.bosch.com \
--to=gireesh.hiremath@in.bosch.com \
--cc=Govindaraji.Sivanantham@in.bosch.com \
--cc=VinayKumar.Shettar@in.bosch.com \
--cc=anaclaudia.dias@de.bosch.com \
--cc=bcousson@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=sjoerd.simons@collabora.co.uk \
--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
all inboxes | Powered by JetHome®