[PATCH] pinctrl: Tighten some pinctrl driver dependencies

Tom Rini trini at konsulko.com
Mon Aug 4 23:52:53 CEST 2025


A few pinctrl drivers cannot build without access to some platform
specific header files. Express those requirements in Kconfig as well.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 drivers/pinctrl/Kconfig       | 7 ++++---
 drivers/pinctrl/tegra/Kconfig | 4 ++--
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index 5e2808abc8a9..48119694031d 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -197,7 +197,7 @@ config PINCTRL_AR933X
 
 config PINCTRL_AT91
 	bool "AT91 pinctrl driver"
-	depends on DM
+	depends on DM && ARCH_AT91
 	help
 	  This option is to enable the AT91 pinctrl driver for AT91 PIO
 	  controller.
@@ -213,13 +213,14 @@ config PINCTRL_AT91
 
 config PINCTRL_AT91PIO4
 	bool "AT91 PIO4 pinctrl driver"
-	depends on DM
+	depends on DM && ARCH_AT91
 	help
 	  This option is to enable the AT91 pinctrl driver for AT91 PIO4
 	  controller which is available on SAMA5D2 SoC.
 
 config PINCTRL_INTEL
 	bool "Standard Intel pin-control and pin-mux driver"
+	depends on X86
 	help
 	  Recent Intel chips such as Apollo Lake (APL) use a common pin control
 	  and GPIO scheme. The settings for this come from an SoC-specific
@@ -248,7 +249,7 @@ config PINCTRL_QCA953X
 
 config PINCTRL_QE
 	bool "QE based pinctrl driver, like on mpc83xx"
-	depends on DM
+	depends on DM && MPC83xx
 	help
 	  This option is to enable the QE pinctrl driver for QE based io
 	  controller.
diff --git a/drivers/pinctrl/tegra/Kconfig b/drivers/pinctrl/tegra/Kconfig
index 669d8e258e43..d2630289d750 100644
--- a/drivers/pinctrl/tegra/Kconfig
+++ b/drivers/pinctrl/tegra/Kconfig
@@ -2,7 +2,7 @@
 
 config PINCTRL_TEGRA
 	bool "Nvidia Tegra pinctrl driver"
-	depends on DM
+	depends on DM && ARCH_TEGRA
 	help
 	  Support pin multiplexing control on Nvidia Tegra SoCs.
 	  The driver is an overlay to existing driver and allows
@@ -11,7 +11,7 @@ config PINCTRL_TEGRA
 
 config SPL_PINCTRL_TEGRA
 	bool "Nvidia Tegra SPL pinctrl driver"
-	depends on SPL_PINCTRL
+	depends on SPL_PINCTRL && ARCH_TEGRA
 	help
 	  Enables support of pre-DM version of pin multiplexing
 	  control driver used on SPL stage for board setup and
-- 
2.43.0



More information about the U-Boot mailing list