Skip to content

Commit 08dcbe3

Browse files
JackyBailinusw
authored andcommitted
pinctrl: freescale: Add support for imx943 pinctrl
The i.MX943 System Manager (SM) firmware supports the System Control Management Interface (SCMI) pinctrl protocol, similar to the i.MX95 SM. The base offset for the i.MX943 IOMUXC Daisy input register differs from that of the i.MX95. Update the pinctrl-imx-scmi driver to add support for i.MX943. Signed-off-by: Jacky Bai <ping.bai@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/20250516100423.1685732-1-ping.bai@nxp.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 2e9ba1d commit 08dcbe3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

drivers/pinctrl/freescale/pinctrl-imx-scmi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ struct scmi_pinctrl_imx {
5151
#define IMX_SCMI_PIN_SIZE 24
5252

5353
#define IMX95_DAISY_OFF 0x408
54+
#define IMX94_DAISY_OFF 0x608
5455

5556
static int pinctrl_scmi_imx_dt_node_to_map(struct pinctrl_dev *pctldev,
5657
struct device_node *np,
@@ -70,6 +71,8 @@ static int pinctrl_scmi_imx_dt_node_to_map(struct pinctrl_dev *pctldev,
7071
if (!daisy_off) {
7172
if (of_machine_is_compatible("fsl,imx95")) {
7273
daisy_off = IMX95_DAISY_OFF;
74+
} else if (of_machine_is_compatible("fsl,imx94")) {
75+
daisy_off = IMX94_DAISY_OFF;
7376
} else {
7477
dev_err(pctldev->dev, "platform not support scmi pinctrl\n");
7578
return -EINVAL;
@@ -289,6 +292,7 @@ scmi_pinctrl_imx_get_pins(struct scmi_pinctrl_imx *pmx, struct pinctrl_desc *des
289292

290293
static const char * const scmi_pinctrl_imx_allowlist[] = {
291294
"fsl,imx95",
295+
"fsl,imx94",
292296
NULL
293297
};
294298

drivers/pinctrl/pinctrl-scmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ static int pinctrl_scmi_get_pins(struct scmi_pinctrl *pmx,
507507

508508
static const char * const scmi_pinctrl_blocklist[] = {
509509
"fsl,imx95",
510+
"fsl,imx94",
510511
NULL
511512
};
512513

0 commit comments

Comments
 (0)