* [PATCH RFC] pinctrl: freescale: Add support for imx943 pinctrl
@ 2025-04-01 7:27 Jacky Bai
2025-04-15 7:53 ` Linus Walleij
2025-04-22 9:01 ` Peng Fan
0 siblings, 2 replies; 5+ messages in thread
From: Jacky Bai @ 2025-04-01 7:27 UTC (permalink / raw)
To: sudeep.holla, linus.walleij, shawnguo, s.hauer, cristian.marussi
Cc: aisheng.dong, festevam, kernel, linux-gpio, imx, linux-arm-kernel,
arm-scmi
Add support for i.MX943 pinctrl.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
---
drivers/pinctrl/freescale/pinctrl-imx-scmi.c | 4 ++++
drivers/pinctrl/pinctrl-scmi.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/drivers/pinctrl/freescale/pinctrl-imx-scmi.c b/drivers/pinctrl/freescale/pinctrl-imx-scmi.c
index 8f15c4c4dc44..4e8ab919b334 100644
--- a/drivers/pinctrl/freescale/pinctrl-imx-scmi.c
+++ b/drivers/pinctrl/freescale/pinctrl-imx-scmi.c
@@ -51,6 +51,7 @@ struct scmi_pinctrl_imx {
#define IMX_SCMI_PIN_SIZE 24
#define IMX95_DAISY_OFF 0x408
+#define IMX94_DAISY_OFF 0x608
static int pinctrl_scmi_imx_dt_node_to_map(struct pinctrl_dev *pctldev,
struct device_node *np,
@@ -70,6 +71,8 @@ static int pinctrl_scmi_imx_dt_node_to_map(struct pinctrl_dev *pctldev,
if (!daisy_off) {
if (of_machine_is_compatible("fsl,imx95")) {
daisy_off = IMX95_DAISY_OFF;
+ } else if (of_machine_is_compatible("fsl,imx94")) {
+ daisy_off = IMX94_DAISY_OFF;
} else {
dev_err(pctldev->dev, "platform not support scmi pinctrl\n");
return -EINVAL;
@@ -289,6 +292,7 @@ scmi_pinctrl_imx_get_pins(struct scmi_pinctrl_imx *pmx, struct pinctrl_desc *des
static const char * const scmi_pinctrl_imx_allowlist[] = {
"fsl,imx95",
+ "fsl,imx94",
NULL
};
diff --git a/drivers/pinctrl/pinctrl-scmi.c b/drivers/pinctrl/pinctrl-scmi.c
index df4bbcd7d1d5..383681041e4c 100644
--- a/drivers/pinctrl/pinctrl-scmi.c
+++ b/drivers/pinctrl/pinctrl-scmi.c
@@ -507,6 +507,7 @@ static int pinctrl_scmi_get_pins(struct scmi_pinctrl *pmx,
static const char * const scmi_pinctrl_blocklist[] = {
"fsl,imx95",
+ "fsl,imx94",
NULL
};
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH RFC] pinctrl: freescale: Add support for imx943 pinctrl
2025-04-01 7:27 [PATCH RFC] pinctrl: freescale: Add support for imx943 pinctrl Jacky Bai
@ 2025-04-15 7:53 ` Linus Walleij
2025-04-18 7:46 ` Jacky Bai
2025-04-22 9:01 ` Peng Fan
1 sibling, 1 reply; 5+ messages in thread
From: Linus Walleij @ 2025-04-15 7:53 UTC (permalink / raw)
To: Jacky Bai
Cc: sudeep.holla, shawnguo, s.hauer, cristian.marussi, aisheng.dong,
festevam, kernel, linux-gpio, imx, linux-arm-kernel, arm-scmi
Hi Jacky,
On Tue, Apr 1, 2025 at 9:25 AM Jacky Bai <ping.bai@nxp.com> wrote:
> Add support for i.MX943 pinctrl.
>
> Signed-off-by: Jacky Bai <ping.bai@nxp.com>
(...)
> static const char * const scmi_pinctrl_imx_allowlist[] = {
> "fsl,imx95",
> + "fsl,imx94",
This binding is missing upstream, can you send a patch to
add this compatible to the right yaml file as well?
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH RFC] pinctrl: freescale: Add support for imx943 pinctrl
2025-04-15 7:53 ` Linus Walleij
@ 2025-04-18 7:46 ` Jacky Bai
0 siblings, 0 replies; 5+ messages in thread
From: Jacky Bai @ 2025-04-18 7:46 UTC (permalink / raw)
To: Linus Walleij
Cc: sudeep.holla@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de,
cristian.marussi@arm.com, Aisheng Dong, festevam@gmail.com,
kernel@pengutronix.de, linux-gpio@vger.kernel.org,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
arm-scmi@vger.kernel.org
Hi Linus,
> Subject: Re: [PATCH RFC] pinctrl: freescale: Add support for imx943 pinctrl
>
> Hi Jacky,
>
> On Tue, Apr 1, 2025 at 9:25 AM Jacky Bai <ping.bai@nxp.com> wrote:
>
> > Add support for i.MX943 pinctrl.
> >
> > Signed-off-by: Jacky Bai <ping.bai@nxp.com>
> (...)
> > static const char * const scmi_pinctrl_imx_allowlist[] = {
> > "fsl,imx95",
> > + "fsl,imx94",
>
> This binding is missing upstream, can you send a patch to add this compatible to
> the right yaml file as well?
>
The compatible yaml changes is under review in another patchset and
added in https://patchwork.kernel.org/project/imx/patch/20250410062826.3344545-2-ping.bai@nxp.com/
BR
> Yours,
> Linus Walleij
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH RFC] pinctrl: freescale: Add support for imx943 pinctrl
2025-04-01 7:27 [PATCH RFC] pinctrl: freescale: Add support for imx943 pinctrl Jacky Bai
2025-04-15 7:53 ` Linus Walleij
@ 2025-04-22 9:01 ` Peng Fan
2025-04-23 9:53 ` Jacky Bai
1 sibling, 1 reply; 5+ messages in thread
From: Peng Fan @ 2025-04-22 9:01 UTC (permalink / raw)
To: Jacky Bai
Cc: sudeep.holla, linus.walleij, shawnguo, s.hauer, cristian.marussi,
aisheng.dong, festevam, kernel, linux-gpio, imx, linux-arm-kernel,
arm-scmi
On Tue, Apr 01, 2025 at 03:27:25PM +0800, Jacky Bai wrote:
>Add support for i.MX943 pinctrl.
Let's expand the commit log a bit:
"
i.MX943 System Manager(SM) firmware supports System Control Management
Interface(SCMI) pinctrl protocol as i.MX95 SM. But i.MX943 IOMUXC
Daisy input register base is at a different address compared with i.MX95. So,
update pinctrl-imx-scmi to allow i.MX943 and add daisy off register, and
update pinctrl-scmi to block i.MX943
"
Then, Reviewed-by: Peng Fan <peng.fan@nxp.com>
In future, we may no need to expand the array list in both drivers,
as of now, we are still exploring how. So the patch is ok for now.
Thanks,
Peng.
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH RFC] pinctrl: freescale: Add support for imx943 pinctrl
2025-04-22 9:01 ` Peng Fan
@ 2025-04-23 9:53 ` Jacky Bai
0 siblings, 0 replies; 5+ messages in thread
From: Jacky Bai @ 2025-04-23 9:53 UTC (permalink / raw)
To: Peng Fan (OSS)
Cc: sudeep.holla@arm.com, linus.walleij@linaro.org,
shawnguo@kernel.org, s.hauer@pengutronix.de,
cristian.marussi@arm.com, Aisheng Dong, festevam@gmail.com,
kernel@pengutronix.de, linux-gpio@vger.kernel.org,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
arm-scmi@vger.kernel.org
> Subject: Re: [PATCH RFC] pinctrl: freescale: Add support for imx943 pinctrl
>
> On Tue, Apr 01, 2025 at 03:27:25PM +0800, Jacky Bai wrote:
> >Add support for i.MX943 pinctrl.
>
> Let's expand the commit log a bit:
>
> "
> i.MX943 System Manager(SM) firmware supports System Control
> Management
> Interface(SCMI) pinctrl protocol as i.MX95 SM. But i.MX943 IOMUXC Daisy
> input register base is at a different address compared with i.MX95. So, update
> pinctrl-imx-scmi to allow i.MX943 and add daisy off register, and update
> pinctrl-scmi to block i.MX943 "
>
Sure, will refine the commit log in next version.
BR
> Then, Reviewed-by: Peng Fan <peng.fan@nxp.com>
>
> In future, we may no need to expand the array list in both drivers, as of now,
> we are still exploring how. So the patch is ok for now.
>
> Thanks,
> Peng.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-04-23 11:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-01 7:27 [PATCH RFC] pinctrl: freescale: Add support for imx943 pinctrl Jacky Bai
2025-04-15 7:53 ` Linus Walleij
2025-04-18 7:46 ` Jacky Bai
2025-04-22 9:01 ` Peng Fan
2025-04-23 9:53 ` Jacky Bai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox