linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: single: Add compatible for ti,am625-padconf
@ 2023-08-05  4:55 Dhruva Gole
  2023-08-05 17:15 ` Nishanth Menon
  0 siblings, 1 reply; 5+ messages in thread
From: Dhruva Gole @ 2023-08-05  4:55 UTC (permalink / raw)
  To: Tony Lindgren, Linus Walleij
  Cc: linux-kernel, linux-arm-kernel, linux-omap, linux-gpio,
	Dhruva Gole, Nishanth Menon, Vignesh Raghavendra

From: Tony Lindgren <tony@atomide.com>

Add compatible for ti,am625-padconf to enable the use of wake-up events.

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

Base:
*****
tag: next-20230731 + below "depends on" patches

Depends on:
***********
[0] Update pinctrl-single to use yaml
[1] dt-binding: pinctrl-single: add am625 compatible

Links:
******
[0] https://lore.kernel.org/linux-omap/20230731061908.GG5194@atomide.com/T/
[1] https://lore.kernel.org/all/20230804050737.635186-1-d-gole@ti.com/

Cc: Nishanth Menon <nm@ti.com>
Cc: Vignesh Raghavendra <vigneshr@ti.com>

Link to this patch:
******************
https://lore.kernel.org/all/20230805045554.786092-1-d-gole@ti.com

 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..3a2a9910f2ec 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_am625 = {
+	.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,am625-padconf", .data = &pinctrl_single_am625 },
 	{ .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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-07 10:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-05  4:55 [PATCH] pinctrl: single: Add compatible for ti,am625-padconf Dhruva Gole
2023-08-05 17:15 ` Nishanth Menon
2023-08-07  7:07   ` Tony Lindgren
2023-08-07  8:09     ` Dhruva Gole
2023-08-07 10:59       ` Tony Lindgren

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).