[PATCH v4] pinctrl: nxp: s32g2: Enable by default on ARCH_S32

From: Khristine Andreea Barbulescu

Date: Thu Nov 12 2026 - 03:55:40 EST


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@xxxxxxxxxxx>
---
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