[PATCH v2] pinctrl: imx: PINCTRL_IMX_SCMI should depend on ARCH_MXC

Geert Uytterhoeven posted 1 patch 1 month ago
drivers/pinctrl/freescale/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH v2] pinctrl: imx: PINCTRL_IMX_SCMI should depend on ARCH_MXC
Posted by Geert Uytterhoeven 1 month ago
i.MX95 SCMI firmware is only present on NXP i.MX94 and i.MX95 SoCs.
Hence add a dependency on ARCH_MXC, to prevent asking the user about
this driver when configuring a kernel without NXP i.MX SoC family
support.

While at it, relax the dependencies on ARM_SCMI_PROTOCOL and OF when
compile-testing.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2:
  - Drop Fixes tag,
  - Relax dependencies on ARM_SCMI_PROTOCOL and OF when compile-testing.
---
 drivers/pinctrl/freescale/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig
index 8d24decd3f074ece..fd53cf5bb843dfaf 100644
--- a/drivers/pinctrl/freescale/Kconfig
+++ b/drivers/pinctrl/freescale/Kconfig
@@ -9,7 +9,7 @@ config PINCTRL_IMX
 
 config PINCTRL_IMX_SCMI
 	tristate "i.MX95 pinctrl driver using SCMI protocol interface"
-	depends on ARM_SCMI_PROTOCOL && OF
+	depends on (ARM_SCMI_PROTOCOL && OF && ARCH_MXC) || COMPILE_TEST
 	select PINMUX
 	select GENERIC_PINCONF
 	select GENERIC_PINCTRL_GROUPS
-- 
2.43.0
Re: [PATCH v2] pinctrl: imx: PINCTRL_IMX_SCMI should depend on ARCH_MXC
Posted by Linus Walleij 4 weeks ago
On Thu, Mar 5, 2026 at 10:05 AM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:

> i.MX95 SCMI firmware is only present on NXP i.MX94 and i.MX95 SoCs.
> Hence add a dependency on ARCH_MXC, to prevent asking the user about
> this driver when configuring a kernel without NXP i.MX SoC family
> support.
>
> While at it, relax the dependencies on ARM_SCMI_PROTOCOL and OF when
> compile-testing.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Patch applied!

Yours,
Linus Walleij