mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dhruva Gole <d-gole@ti.com>
To: Tony Lindgren <tony@atomide.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: <linux-gpio@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-omap@vger.kernel.org>, Dhruva Gole <d-gole@ti.com>
Subject: [PATCH 2/2] pinctrl: single: Add compatible for ti,am654-padconf
Date: Tue, 8 Aug 2023 15:52:08 +0530	[thread overview]
Message-ID: <20230808102207.130177-3-d-gole@ti.com> (raw)
In-Reply-To: <20230808102207.130177-1-d-gole@ti.com>



WARNING: multiple messages have this Message-ID
From: Dhruva Gole <d-gole@ti.com>
To: Tony Lindgren <tony@atomide.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: <linux-gpio@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-omap@vger.kernel.org>, Dhruva Gole <d-gole@ti.com>
Subject: [PATCH 2/2] pinctrl: single: Add compatible for ti,am654-padconf
Date: Tue, 8 Aug 2023 15:52:08 +0530	[thread overview]
Message-ID: <20230808102207.130177-3-d-gole@ti.com> (raw)
Message-ID: <20230808102208.20zPd5D0W1VMXr9i4kbUZmQCUqBZwMVODkdco4MjaLI@z> (raw)
In-Reply-To: <20230808102207.130177-1-d-gole@ti.com>

From: Tony Lindgren <tony@atomide.com>

Use the "ti,am654-padconf" compatible to enable the use of wake-up enable
and event bits on K3 SOCs that support the daisychain feature

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Dhruva Gole <d-gole@ti.com>
---

The previous version of this patch was posted stand alone here:
https://lore.kernel.org/all/20230805045554.786092-1-d-gole@ti.com/

changelog: the compatible name has been changed in this series.

 drivers/pinctrl/pinctrl-single.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c
index f056923ecc98..92e495d13b9b 100644
--- a/drivers/pinctrl/pinctrl-single.c
+++ b/drivers/pinctrl/pinctrl-single.c
@@ -1954,6 +1954,12 @@ static const struct pcs_soc_data pinctrl_single_am437x = {
 	.irq_status_mask = (1 << 30),   /* OMAP_WAKEUP_EVENT */
 };
 
+static const struct pcs_soc_data pinctrl_single_am654 = {
+	.flags = PCS_QUIRK_SHARED_IRQ | PCS_CONTEXT_LOSS_OFF,
+	.irq_enable_mask = (1 << 29),   /* WKUP_EN */
+	.irq_status_mask = (1 << 30),   /* WKUP_EVT */
+};
+
 static const struct pcs_soc_data pinctrl_single = {
 };
 
@@ -1962,6 +1968,7 @@ static const struct pcs_soc_data pinconf_single = {
 };
 
 static const struct of_device_id pcs_of_match[] = {
+	{ .compatible = "ti,am654-padconf", .data = &pinctrl_single_am654 },
 	{ .compatible = "ti,omap3-padconf", .data = &pinctrl_single_omap_wkup },
 	{ .compatible = "ti,omap4-padconf", .data = &pinctrl_single_omap_wkup },
 	{ .compatible = "ti,omap5-padconf", .data = &pinctrl_single_omap_wkup },
-- 
2.34.1


  parent reply	other threads:[~2023-08-08 16:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-08 10:22 [PATCH 0/2] pinctrl-single: introduce am654-padconf compatible Dhruva Gole
2023-08-08 10:22 ` [PATCH 1/2] dt-bindings: pinctrl: pinctrl-single: add ti,am654-padconf compatible Dhruva Gole
2023-08-08 10:26   ` Tony Lindgren
2023-08-10  8:34   ` Linus Walleij
2023-08-08 10:22 ` Dhruva Gole [this message]
2023-08-08 10:22   ` [PATCH 2/2] pinctrl: single: Add compatible for ti,am654-padconf Dhruva Gole
2023-08-10  8:40   ` Linus Walleij
2023-08-09 11:49 ` [PATCH 0/2] pinctrl-single: introduce am654-padconf compatible Nishanth Menon

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=20230808102207.130177-3-d-gole@ti.com \
    --to=d-gole@ti.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®