mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4] pinctrl: nxp: s32g2: Enable by default on ARCH_S32
@ 2026-11-12  8:36 Khristine Andreea Barbulescu
  2026-11-25 18:43 ` Linus Walleij
  0 siblings, 1 reply; 3+ messages in thread
From: Khristine Andreea Barbulescu @ 2026-11-12  8:36 UTC (permalink / raw)
  To: Linus Walleij, Dong Aisheng, Fabio Estevam, Frank Li, Jacky Bai
  Cc: Pengutronix Kernel Team, NXP S32 Linux Team, Chester Lin,
	Matthias Brugger, Ghennadi Procopciuc, linux-gpio,
	linux-arm-kernel, linux-kernel

The SIUL2 pin controller provides the pin muxing used by peripherals on
the supported S32G boards: the S32G2-based S32G274A-EVB and
S32G274A-RDB2, and the S32G3-based S32G399A-RDB3. Without the driver
some peripherals never finish probing and a defconfig kernel cannot
boot to rootfs on these boards.

As the driver is required by every supported S32G board, make
PINCTRL_S32G2 default to ARCH_S32 so it is enabled out of the box,
while keeping the prompt so it can still be disabled on ARCH_S32
platforms that do not need it.

Signed-off-by: Khristine Andreea Barbulescu <khristineandreea.barbulescu@oss.nxp.com>
---
v4 -> v3:
- addressed Sashiko's review comments:
- keep the prompt visible so it can be disabled on ARCH_S32
- depend on (ARCH_S32 || COMPILE_TEST) && OF so COMPILE_TEST works

v3 -> v2:
- add the Signed-off-by tag

v2 -> v1:
- list the S32G boards that need the pinctrl driver
in the commit message
- drop the v1 arm64 defconfig change
- default to ARCH_S32 in Kconfig instead

 drivers/pinctrl/nxp/Kconfig | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/drivers/pinctrl/nxp/Kconfig b/drivers/pinctrl/nxp/Kconfig
index abca7ef97003..24f94900a8dd 100644
--- a/drivers/pinctrl/nxp/Kconfig
+++ b/drivers/pinctrl/nxp/Kconfig
@@ -1,15 +1,23 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config PINCTRL_S32CC
 	bool
-	depends on ARCH_S32 && OF
+	depends on ARCH_S32 || COMPILE_TEST
+	depends on OF
 	select GENERIC_PINCTRL_GROUPS
 	select GENERIC_PINMUX_FUNCTIONS
 	select GENERIC_PINCONF
 	select REGMAP_MMIO
 
 config PINCTRL_S32G2
-	depends on ARCH_S32 && OF
 	bool "NXP S32G2 pinctrl driver"
+	depends on ARCH_S32 || COMPILE_TEST
+	depends on OF
+	default ARCH_S32
 	select PINCTRL_S32CC
 	help
-	  Say Y here to enable the pinctrl driver for NXP S32G2 family SoCs
+	  Enable the SIUL2 pin controller driver for NXP S32G2 family SoCs.
+
+	  This controller provides the pin muxing and configuration needed by
+	  peripherals on the S32G274A-EVB, S32G274A-RDB2 and S32G399A-RDB3
+	  boards, which cannot reach rootfs without it. It is therefore
+	  enabled by default on ARCH_S32.
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-26  9:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-12  8:36 [PATCH v4] pinctrl: nxp: s32g2: Enable by default on ARCH_S32 Khristine Andreea Barbulescu
2026-11-25 18:43 ` Linus Walleij
2026-11-26  9:18   ` Khristine Andreea Barbulescu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®