Skip to content

Commit 0f0cad0

Browse files
manuarguehenrikbrixandersen
authored andcommitted
drivers: pinctrl: nxp: drop soc name from siul2 driver
The SIUL2 pin control driver is a native implementation usable across all NXP SoCs with SIUL2 IP. Remove the "S32" prefix to allow clean reuse by other families. Signed-off-by: Manuel Argüelles <[email protected]>
1 parent 31f36fd commit 0f0cad0

File tree

15 files changed

+143
-145
lines changed

15 files changed

+143
-145
lines changed

drivers/pinctrl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ zephyr_library_sources_ifdef(CONFIG_PINCTRL_INFINEON_CAT1 pinctrl_ifx_cat1.c)
3636
zephyr_library_sources_ifdef(CONFIG_PINCTRL_XLNX_ZYNQ pinctrl_xlnx_zynq.c)
3737
zephyr_library_sources_ifdef(CONFIG_PINCTRL_XLNX_ZYNQMP pinctrl_xlnx_zynqmp.c)
3838
zephyr_library_sources_ifdef(CONFIG_PINCTRL_XMC4XXX pinctrl_xmc4xxx.c)
39-
zephyr_library_sources_ifdef(CONFIG_PINCTRL_NXP_S32 pinctrl_nxp_s32.c)
39+
zephyr_library_sources_ifdef(CONFIG_PINCTRL_NXP_SIUL2 pinctrl_nxp_siul2.c)
4040
zephyr_library_sources_ifdef(CONFIG_PINCTRL_GECKO pinctrl_gecko.c)
4141
zephyr_library_sources_ifdef(CONFIG_PINCTRL_SILABS_SIWX91X pinctrl_silabs_siwx91x.c)
4242
zephyr_library_sources_ifdef(CONFIG_PINCTRL_SILABS_DBUS pinctrl_silabs_dbus.c)

drivers/pinctrl/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ source "drivers/pinctrl/Kconfig.rv32m1"
6868
source "drivers/pinctrl/Kconfig.ifx_cat1"
6969
source "drivers/pinctrl/Kconfig.xlnx"
7070
source "drivers/pinctrl/Kconfig.xmc4xxx"
71-
source "drivers/pinctrl/Kconfig.nxp_s32"
71+
source "drivers/pinctrl/Kconfig.nxp_siul2"
7272
source "drivers/pinctrl/Kconfig.gecko"
7373
source "drivers/pinctrl/Kconfig.silabs_dbus"
7474
source "drivers/pinctrl/Kconfig.siwx91x"

drivers/pinctrl/Kconfig.nxp_s32

Lines changed: 0 additions & 9 deletions
This file was deleted.

drivers/pinctrl/Kconfig.nxp_siul2

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright 2022-2023, 2025 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config PINCTRL_NXP_SIUL2
5+
bool "Pin controller driver for NXP SIUL2"
6+
default y
7+
depends on DT_HAS_NXP_S32ZE_SIUL2_PINCTRL_ENABLED || DT_HAS_NXP_S32K3_SIUL2_PINCTRL_ENABLED
8+
help
9+
Enable pin controller driver for NXP SIUL2.
File renamed without changes.

dts/arm/nxp/nxp_s32k344_m7.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
/* Dummy pinctrl node, filled with pin mux options at board level */
3737
pinctrl: pinctrl {
38-
compatible = "nxp,s32k3-pinctrl";
38+
compatible = "nxp,s32k3-siul2-pinctrl";
3939
status = "okay";
4040
};
4141

dts/arm/nxp/nxp_s32z27x_r52.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
/* Dummy pinctrl node, filled with pin mux options at board level */
7777
pinctrl: pinctrl {
78-
compatible = "nxp,s32ze-pinctrl";
78+
compatible = "nxp,s32ze-siul2-pinctrl";
7979
status = "okay";
8080
};
8181

dts/bindings/pinctrl/nxp,s32k3-pinctrl.yaml renamed to dts/bindings/pinctrl/nxp,s32k3-siul2-pinctrl.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Copyright 2023 NXP
1+
# Copyright 2023, 2025 NXP
22
# SPDX-License-Identifier: Apache-2.0
33

44
description: |
5-
NXP S32 Pin Controller for S32K3 SoCs
5+
NXP SIUL2 Pin Controller for S32K3 SoCs
66
7-
The NXP S32 pin controller is a singleton node responsible for controlling
7+
The NXP SIUL2 pin controller is a singleton node responsible for controlling
88
the pin function selection and pin properties. This node, labeled 'pinctrl' in
99
the SoC's devicetree, will define pin configurations in pin groups. Each group
1010
within the pin configuration defines the pin configuration for a peripheral,
@@ -65,14 +65,14 @@ description: |
6565
- Pad Keeping (disabled)
6666
- Input Filter (disabled).
6767
68-
compatible: "nxp,s32k3-pinctrl"
68+
compatible: "nxp,s32k3-siul2-pinctrl"
6969

7070
include: base.yaml
7171

7272
child-binding:
73-
description: NXP S32 pin controller pin group.
73+
description: NXP SIUL2 pin controller pin group.
7474
child-binding:
75-
description: NXP S32 pin controller pin configuration node.
75+
description: NXP SIUL2 pin controller pin configuration node.
7676

7777
include:
7878
- name: pincfg-node.yaml
@@ -89,8 +89,8 @@ child-binding:
8989
type: array
9090
description: |
9191
An array of pins sharing the same group properties. The pins must be
92-
defined using the S32_PINMUX macros that encodes all the pin muxing
93-
information in a 32-bit value.
92+
defined using the macros from the SoC package header. These macros
93+
encode all the pin muxing information in a 32-bit value.
9494
9595
slew-rate:
9696
type: string

dts/bindings/pinctrl/nxp,s32ze-pinctrl.yaml renamed to dts/bindings/pinctrl/nxp,s32ze-siul2-pinctrl.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Copyright 2022, 2024 NXP
1+
# Copyright 2022, 2024-2025 NXP
22
# SPDX-License-Identifier: Apache-2.0
33

44
description: |
5-
NXP S32 Pin Controller for S32Z/E SoCs
5+
NXP SIUL2 Pin Controller for S32Z/E SoCs
66
7-
The NXP S32 pin controller is a singleton node responsible for controlling
7+
The NXP SIUL2 pin controller is a singleton node responsible for controlling
88
the pin function selection and pin properties. This node, labeled 'pinctrl' in
99
the SoC's devicetree, will define pin configurations in pin groups. Each group
1010
within the pin configuration defines the pin configuration for a peripheral,
@@ -65,14 +65,14 @@ description: |
6565
- Safe Mode is always kept as reset value (disabled).
6666
- Receiver Select is always kept as reset value (enables the differential vref based receiver).
6767
68-
compatible: "nxp,s32ze-pinctrl"
68+
compatible: "nxp,s32ze-siul2-pinctrl"
6969

7070
include: base.yaml
7171

7272
child-binding:
73-
description: NXP S32 pin controller pin group.
73+
description: NXP SIUL2 pin controller pin group.
7474
child-binding:
75-
description: NXP S32 pin controller pin configuration node.
75+
description: NXP SIUL2 pin controller pin configuration node.
7676

7777
include:
7878
- name: pincfg-node.yaml

soc/nxp/s32/common/siul2_pinctrl.h renamed to include/zephyr/drivers/pinctrl/pinctrl_nxp_siul2_common.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright 2022-2024 NXP
2+
* Copyright 2022-2025 NXP
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#ifndef ZEPHYR_SOC_NXP_S32_COMMON_SIUL2_PINCTRL_H_
8-
#define ZEPHYR_SOC_NXP_S32_COMMON_SIUL2_PINCTRL_H_
7+
#ifndef ZEPHYR_INCLUDE_DRIVERS_PINCTRL_PINCTRL_NXP_SIUL2_COMMON_H_
8+
#define ZEPHYR_INCLUDE_DRIVERS_PINCTRL_PINCTRL_NXP_SIUL2_COMMON_H_
99

1010
#include <zephyr/devicetree.h>
1111
#include <zephyr/types.h>
@@ -33,7 +33,7 @@ typedef struct {
3333
* @param idx Property entry index.
3434
*/
3535
#define Z_PINCTRL_STATE_PIN_INIT(group, prop, idx) \
36-
{NXP_S32_PINMUX_INIT(group, DT_PROP_BY_IDX(group, prop, idx))},
36+
{NXP_SIUL2_PINMUX_INIT(group, DT_PROP_BY_IDX(group, prop, idx))},
3737

3838
/**
3939
* @brief Utility macro to initialize state pins contained in a given property.
@@ -49,4 +49,4 @@ typedef struct {
4949

5050
/** @endcond */
5151

52-
#endif /* ZEPHYR_SOC_NXP_S32_COMMON_SIUL2_PINCTRL_H_ */
52+
#endif /* ZEPHYR_INCLUDE_DRIVERS_PINCTRL_PINCTRL_NXP_SIUL2_COMMON_H_ */

0 commit comments

Comments
 (0)