Skip to contentSkip to conversation

pinctrl: Tighten some pinctrl driver dependencies

PATCH In review Tom Rini 1 participant 2 messages Aug 4, 2025 – Aug 14, 2025

Subsystems (2)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 pinctrl: Tighten some pinctrl driver dependencies

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

---
 drivers/pinctrl/Kconfig       | 7 ++++---
 drivers/pinctrl/tegra/Kconfig | 4 ++--
 2 files changed, 6 insertions(+), 5 deletions(-)
drivers/pinctrl/Kconfig +4 -3
index 5e2808abc8a9..48119694031d 100644
@@ -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.
drivers/pinctrl/tegra/Kconfig +2 -2
index 669d8e258e43..d2630289d750 100644
@@ -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
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 4 lines · Tom Rini

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

Applied to u-boot/next, thanks!

[1/1] pinctrl: Tighten some pinctrl driver dependencies

      commit: e7a95ee2b575d7f0f44da3b3aeb951508eac1511
Signature · 1 line
Tom