]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
pinctrl: nxp: Add i.MX952 support
authorYe Li <ye.li@nxp.com>
Mon, 2 Mar 2026 05:20:04 +0000 (13:20 +0800)
committerFabio Estevam <festevam@gmail.com>
Mon, 16 Mar 2026 21:44:00 +0000 (18:44 -0300)
Multiple pads can drive the same module input pin, and a daisy chain
register is used to select the active input path. This patch defines
DAISY_OFFSET_IMX952 (0x460) and allows binding on i.MX952.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/pinctrl/nxp/pinctrl-imx-scmi.c

index 781835c68527145183b9fbd25fb99cc83d602a89..3cc2b85e151e56f10750ab10bb65f21d44eda5ae 100644 (file)
@@ -17,6 +17,7 @@
 
 #define DAISY_OFFSET_IMX95      0x408
 #define DAISY_OFFSET_IMX94      0x608
+#define DAISY_OFFSET_IMX952     0x460
 
 /* SCMI pin control types */
 #define PINCTRL_TYPE_MUX        192
@@ -136,6 +137,8 @@ static int imx_scmi_pinctrl_probe(struct udevice *dev)
                priv->daisy_offset = DAISY_OFFSET_IMX95;
        else if (IS_ENABLED(CONFIG_IMX94))
                priv->daisy_offset = DAISY_OFFSET_IMX94;
+       else if (IS_ENABLED(CONFIG_IMX952))
+               priv->daisy_offset = DAISY_OFFSET_IMX952;
        else
                return -EINVAL;
 
@@ -144,7 +147,8 @@ static int imx_scmi_pinctrl_probe(struct udevice *dev)
 
 static int imx_scmi_pinctrl_bind(struct udevice *dev)
 {
-       if (IS_ENABLED(CONFIG_IMX95) || IS_ENABLED(CONFIG_IMX94))
+       if (IS_ENABLED(CONFIG_IMX95) || IS_ENABLED(CONFIG_IMX94) ||
+           IS_ENABLED(CONFIG_IMX952))
                return 0;
 
        return -ENODEV;