* [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21
@ 2025-11-18 16:19 Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 01/15] pinctrl: stm32: accept string value for property 'st,package' Antonio Borneo
` (14 more replies)
0 siblings, 15 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet
This v2 is a subset of the v1, split-out to simplify the review.
The old patches concerned in v1 where 10/14, 11/14 and 14/14.
This subset:
- obsoletes the numeric values of the property 'st,package' in STM32
pinctrl and replaces it with a string value. Keeps backward
compatibility for old DTs;
- updates the DT to use the new values for 'st,package';
- add new packages to STM32MP25;
- add pinctrl driver and bindings for STM32MP21, including the extra
dependencies of optee and exti nodes;
- on board STM32MP215f-DK, use the pinctrl driver to properly setup
the UART and add the heartbeat LED.
Changes v1 -> v2 subset:
- rebased on linux-pinctrl branch for-next;
- replace numeric values of property 'st,package' with strings;
- add users of pinctrl driver on board STM32MP215f-DK;
- Link to v1: https://lore.kernel.org/lkml/20241022155658.1647350-1-antonio.borneo@foss.st.com/
Amelie Delaunay (4):
pinctrl: stm32: add stm32mp215 pinctrl support
dt-bindings: pinctrl: stm32: support for stm32mp215 and additional
packages
arm64: dts: st: introduce stm32mp21 pinctrl files
arm64: dts: st: add pinctrl to usart2 on stm32mp215f-dk board
Antonio Borneo (7):
pinctrl: stm32: accept string value for property 'st,package'
dt-bindings: pinctrl: stm32: use strings for enum property
'st,package'
arm: dts: stm32: update property 'st,package' to new bindings
arm64: dts: st: update property 'st,package' to new bindings
dt-bindings: pinctrl: stm32: add new package to stm32mp257 pinctrl
support
arm64: dts: st: add interrupt to optee node on stm32mp21
arm64: dts: st: add pinctrl nodes on stm32mp21
Clément Le Goffic (3):
pinctrl: stm32: add new package to stm32mp257 pinctrl support
arm64: dts: st: add new package file for stm32mp25 pinctrl
arm64: dts: st: add exti1 and exti2 nodes on stm32mp21
Pascal Paillet (1):
arm64: dts: st: add heartbeat LED on stm32mp215f-dk board
.../bindings/pinctrl/st,stm32-pinctrl.yaml | 26 +-
.../boot/dts/st/stm32mp15xxaa-pinctrl.dtsi | 4 +-
.../boot/dts/st/stm32mp15xxab-pinctrl.dtsi | 2 +-
.../boot/dts/st/stm32mp15xxac-pinctrl.dtsi | 4 +-
.../boot/dts/st/stm32mp15xxad-pinctrl.dtsi | 2 +-
arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi | 38 +
arch/arm64/boot/dts/st/stm32mp211.dtsi | 294 +++
arch/arm64/boot/dts/st/stm32mp215f-dk.dts | 31 +
.../boot/dts/st/stm32mp21xxal-pinctrl.dtsi | 71 +
.../boot/dts/st/stm32mp21xxam-pinctrl.dtsi | 71 +
.../boot/dts/st/stm32mp21xxan-pinctrl.dtsi | 71 +
.../boot/dts/st/stm32mp21xxao-pinctrl.dtsi | 63 +
.../boot/dts/st/stm32mp25xxai-pinctrl.dtsi | 2 +-
.../boot/dts/st/stm32mp25xxaj-pinctrl.dtsi | 71 +
.../boot/dts/st/stm32mp25xxak-pinctrl.dtsi | 2 +-
.../boot/dts/st/stm32mp25xxal-pinctrl.dtsi | 2 +-
drivers/pinctrl/stm32/Kconfig | 6 +
drivers/pinctrl/stm32/Makefile | 1 +
drivers/pinctrl/stm32/pinctrl-stm32.c | 36 +-
drivers/pinctrl/stm32/pinctrl-stm32.h | 29 +-
drivers/pinctrl/stm32/pinctrl-stm32mp157.c | 352 ++--
drivers/pinctrl/stm32/pinctrl-stm32mp215.c | 1807 +++++++++++++++++
drivers/pinctrl/stm32/pinctrl-stm32mp257.c | 344 ++--
23 files changed, 2958 insertions(+), 371 deletions(-)
create mode 100644 arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi
create mode 100644 arch/arm64/boot/dts/st/stm32mp21xxal-pinctrl.dtsi
create mode 100644 arch/arm64/boot/dts/st/stm32mp21xxam-pinctrl.dtsi
create mode 100644 arch/arm64/boot/dts/st/stm32mp21xxan-pinctrl.dtsi
create mode 100644 arch/arm64/boot/dts/st/stm32mp21xxao-pinctrl.dtsi
create mode 100644 arch/arm64/boot/dts/st/stm32mp25xxaj-pinctrl.dtsi
create mode 100644 drivers/pinctrl/stm32/pinctrl-stm32mp215.c
base-commit: 61cbe48d9d1ff277bc54051fbab8b733b2e64ccb
--
2.34.1
^ permalink raw reply [flat|nested] 20+ messages in thread
* [PATCH v2 01/15] pinctrl: stm32: accept string value for property 'st,package'
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
@ 2025-11-18 16:19 ` Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 02/15] dt-bindings: pinctrl: stm32: use strings for enum " Antonio Borneo
` (13 subsequent siblings)
14 siblings, 0 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet
The property 'st,package' reports the SoC package used in the
board DT and is used to inform the driver about which pins are
available for use by the pinctrl driver.
It has historically been declared as an uint32 enum, where each
value is a power of 2.
For backward compatibility, still accept the numeric value.
Beside that, accept the new readable string values.
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
drivers/pinctrl/stm32/pinctrl-stm32.c | 32 +-
drivers/pinctrl/stm32/pinctrl-stm32.h | 25 +-
drivers/pinctrl/stm32/pinctrl-stm32mp157.c | 352 ++++++++++-----------
drivers/pinctrl/stm32/pinctrl-stm32mp257.c | 344 ++++++++++----------
4 files changed, 396 insertions(+), 357 deletions(-)
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c
index 6a99708a5a23c..0f5ab585e4bbb 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32.c
+++ b/drivers/pinctrl/stm32/pinctrl-stm32.c
@@ -125,6 +125,28 @@ static const struct pinconf_generic_params stm32_gpio_bindings[] = {
stm32_gpio_io_sync, ARRAY_SIZE(stm32_gpio_io_sync)},
};
+__diag_push();
+__diag_ignore_all("-Woverride-init", "Allow field overrides in table");
+
+static const char * const stm32_pkgs[] = {
+ /*
+ * Default dummy value, as match_string() doesn't accepts NULL.
+ * Also not an empty string because it will match the old numeric
+ * values <= 0x00ffffff.
+ */
+ [0 ... (STM32_PKG_MAX - 1)] = "x",
+
+ [STM32_PKG_AA] = "AA",
+ [STM32_PKG_AB] = "AB",
+ [STM32_PKG_AC] = "AC",
+ [STM32_PKG_AD] = "AD",
+ [STM32_PKG_AI] = "AI",
+ [STM32_PKG_AK] = "AK",
+ [STM32_PKG_AL] = "AL",
+};
+
+__diag_pop();
+
struct stm32_pinctrl_group {
const char *name;
unsigned long config;
@@ -1894,10 +1916,18 @@ int stm32_pctl_probe(struct platform_device *pdev)
pctl->dev = dev;
pctl->match_data = match_data;
- /* get optional package information */
+ /* get optional package information, legacy binding */
if (!device_property_read_u32(dev, "st,package", &pctl->pkg))
dev_dbg(pctl->dev, "package detected: %x\n", pctl->pkg);
+ /* get optional package information, modern binding */
+ ret = device_property_match_property_string(pctl->dev, "st,package",
+ stm32_pkgs, STM32_PKG_MAX);
+ if (ret >= 0) {
+ dev_dbg(pctl->dev, "package detected: \"%s\"\n", stm32_pkgs[ret]);
+ pctl->pkg = BIT(ret);
+ }
+
pctl->pins = devm_kcalloc(pctl->dev, pctl->match_data->npins,
sizeof(*pctl->pins), GFP_KERNEL);
if (!pctl->pins)
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.h b/drivers/pinctrl/stm32/pinctrl-stm32.h
index d17cbdbba4482..6761024ce691a 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32.h
+++ b/drivers/pinctrl/stm32/pinctrl-stm32.h
@@ -20,14 +20,23 @@
#define STM32_PIN_RSVD (STM32_PIN_ANALOG + 1)
#define STM32_CONFIG_NUM (STM32_PIN_RSVD + 1)
-/* package information */
-#define STM32MP_PKG_AA BIT(0)
-#define STM32MP_PKG_AB BIT(1)
-#define STM32MP_PKG_AC BIT(2)
-#define STM32MP_PKG_AD BIT(3)
-#define STM32MP_PKG_AI BIT(8)
-#define STM32MP_PKG_AK BIT(10)
-#define STM32MP_PKG_AL BIT(11)
+/*
+ * package information
+ * For DT backward compatibility, some value below is tagged as not to be changed
+ * New packages can assume any other value
+ */
+enum stm32_pkg {
+ STM32_PKG_AA = 0, /* do not change */
+ STM32_PKG_AB = 1, /* do not change */
+ STM32_PKG_AC = 2, /* do not change */
+ STM32_PKG_AD = 3, /* do not change */
+ STM32_PKG_AI = 8, /* do not change */
+ STM32_PKG_AK = 10, /* do not change */
+ STM32_PKG_AL = 11, /* do not change */
+
+ /* keep this as last item */
+ STM32_PKG_MAX,
+};
struct stm32_desc_function {
const char *name;
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32mp157.c b/drivers/pinctrl/stm32/pinctrl-stm32mp157.c
index 91b2fc8ddbdbc..af031d7f47548 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32mp157.c
+++ b/drivers/pinctrl/stm32/pinctrl-stm32mp157.c
@@ -12,7 +12,7 @@
static const struct stm32_desc_pin stm32mp157_pins[] = {
STM32_PIN_PKG(
PINCTRL_PIN(0, "PA0"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA0"),
STM32_FUNCTION(2, "TIM2_CH1 TIM2_ETR"),
STM32_FUNCTION(3, "TIM5_CH1"),
@@ -28,7 +28,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(1, "PA1"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA1"),
STM32_FUNCTION(1, "ETH_CLK"),
STM32_FUNCTION(2, "TIM2_CH2"),
@@ -46,7 +46,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(2, "PA2"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA2"),
STM32_FUNCTION(2, "TIM2_CH3"),
STM32_FUNCTION(3, "TIM5_CH3"),
@@ -63,7 +63,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(3, "PA3"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA3"),
STM32_FUNCTION(2, "TIM2_CH4"),
STM32_FUNCTION(3, "TIM5_CH4"),
@@ -78,7 +78,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(4, "PA4"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA4"),
STM32_FUNCTION(1, "HDP0"),
STM32_FUNCTION(3, "TIM5_ETR"),
@@ -95,7 +95,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(5, "PA5"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA5"),
STM32_FUNCTION(2, "TIM2_CH1 TIM2_ETR"),
STM32_FUNCTION(4, "TIM8_CH1N"),
@@ -109,7 +109,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(6, "PA6"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA6"),
STM32_FUNCTION(2, "TIM1_BKIN"),
STM32_FUNCTION(3, "TIM3_CH1"),
@@ -127,7 +127,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(7, "PA7"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA7"),
STM32_FUNCTION(2, "TIM1_CH1N"),
STM32_FUNCTION(3, "TIM3_CH2"),
@@ -144,7 +144,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(8, "PA8"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA8"),
STM32_FUNCTION(1, "MCO1"),
STM32_FUNCTION(2, "TIM1_CH1"),
@@ -163,7 +163,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(9, "PA9"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA9"),
STM32_FUNCTION(2, "TIM1_CH2"),
STM32_FUNCTION(5, "I2C3_SMBA"),
@@ -178,7 +178,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(10, "PA10"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA10"),
STM32_FUNCTION(2, "TIM1_CH3"),
STM32_FUNCTION(6, "SPI3_NSS I2S3_WS"),
@@ -192,7 +192,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(11, "PA11"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA11"),
STM32_FUNCTION(2, "TIM1_CH4"),
STM32_FUNCTION(3, "I2C6_SCL"),
@@ -207,7 +207,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(12, "PA12"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA12"),
STM32_FUNCTION(2, "TIM1_ETR"),
STM32_FUNCTION(3, "I2C6_SDA"),
@@ -222,7 +222,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(13, "PA13"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA13"),
STM32_FUNCTION(1, "DBTRGO"),
STM32_FUNCTION(2, "DBTRGI"),
@@ -233,7 +233,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(14, "PA14"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA14"),
STM32_FUNCTION(1, "DBTRGO"),
STM32_FUNCTION(2, "DBTRGI"),
@@ -243,7 +243,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(15, "PA15"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOA15"),
STM32_FUNCTION(1, "DBTRGI"),
STM32_FUNCTION(2, "TIM2_CH1 TIM2_ETR"),
@@ -265,7 +265,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(16, "PB0"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB0"),
STM32_FUNCTION(2, "TIM1_CH2N"),
STM32_FUNCTION(3, "TIM3_CH3"),
@@ -281,7 +281,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(17, "PB1"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB1"),
STM32_FUNCTION(2, "TIM1_CH3N"),
STM32_FUNCTION(3, "TIM3_CH4"),
@@ -296,7 +296,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(18, "PB2"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB2"),
STM32_FUNCTION(1, "TRACED4"),
STM32_FUNCTION(2, "RTC_OUT2"),
@@ -313,7 +313,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(19, "PB3"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB3"),
STM32_FUNCTION(1, "TRACED9"),
STM32_FUNCTION(2, "TIM2_CH2"),
@@ -329,7 +329,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(20, "PB4"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB4"),
STM32_FUNCTION(1, "TRACED8"),
STM32_FUNCTION(2, "TIM16_BKIN"),
@@ -347,7 +347,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(21, "PB5"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB5"),
STM32_FUNCTION(1, "ETH_CLK"),
STM32_FUNCTION(2, "TIM17_BKIN"),
@@ -369,7 +369,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(22, "PB6"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB6"),
STM32_FUNCTION(2, "TIM16_CH1N"),
STM32_FUNCTION(3, "TIM4_CH1"),
@@ -387,7 +387,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(23, "PB7"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB7"),
STM32_FUNCTION(2, "TIM17_CH1N"),
STM32_FUNCTION(3, "TIM4_CH2"),
@@ -403,7 +403,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(24, "PB8"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB8"),
STM32_FUNCTION(1, "HDP6"),
STM32_FUNCTION(2, "TIM16_CH1"),
@@ -425,7 +425,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(25, "PB9"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB9"),
STM32_FUNCTION(1, "HDP7"),
STM32_FUNCTION(2, "TIM17_CH1"),
@@ -447,7 +447,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(26, "PB10"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB10"),
STM32_FUNCTION(2, "TIM2_CH3"),
STM32_FUNCTION(4, "LPTIM2_IN1"),
@@ -463,7 +463,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(27, "PB11"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB11"),
STM32_FUNCTION(2, "TIM2_CH4"),
STM32_FUNCTION(4, "LPTIM2_ETR"),
@@ -478,7 +478,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(28, "PB12"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB12"),
STM32_FUNCTION(2, "TIM1_BKIN"),
STM32_FUNCTION(3, "I2C6_SMBA"),
@@ -495,7 +495,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(29, "PB13"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB13"),
STM32_FUNCTION(2, "TIM1_CH1N"),
STM32_FUNCTION(4, "DFSDM1_CKOUT"),
@@ -511,7 +511,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(30, "PB14"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB14"),
STM32_FUNCTION(2, "TIM1_CH2N"),
STM32_FUNCTION(3, "TIM12_CH1"),
@@ -526,7 +526,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(31, "PB15"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOB15"),
STM32_FUNCTION(1, "RTC_REFIN"),
STM32_FUNCTION(2, "TIM1_CH3N"),
@@ -541,7 +541,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(32, "PC0"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC0"),
STM32_FUNCTION(4, "DFSDM1_CKIN0"),
STM32_FUNCTION(5, "LPTIM2_IN2"),
@@ -554,7 +554,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(33, "PC1"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC1"),
STM32_FUNCTION(1, "TRACED0"),
STM32_FUNCTION(3, "SAI1_D1"),
@@ -570,7 +570,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(34, "PC2"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC2"),
STM32_FUNCTION(4, "DFSDM1_CKIN1"),
STM32_FUNCTION(6, "SPI2_MISO I2S2_SDI"),
@@ -582,7 +582,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(35, "PC3"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC3"),
STM32_FUNCTION(1, "TRACECLK"),
STM32_FUNCTION(4, "DFSDM1_DATIN1"),
@@ -593,7 +593,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(36, "PC4"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC4"),
STM32_FUNCTION(4, "DFSDM1_CKIN2"),
STM32_FUNCTION(6, "I2S1_MCK"),
@@ -604,7 +604,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(37, "PC5"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC5"),
STM32_FUNCTION(3, "SAI1_D3"),
STM32_FUNCTION(4, "DFSDM1_DATIN2"),
@@ -618,7 +618,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(38, "PC6"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC6"),
STM32_FUNCTION(1, "HDP1"),
STM32_FUNCTION(3, "TIM3_CH1"),
@@ -638,7 +638,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(39, "PC7"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC7"),
STM32_FUNCTION(1, "HDP4"),
STM32_FUNCTION(3, "TIM3_CH2"),
@@ -657,7 +657,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(40, "PC8"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC8"),
STM32_FUNCTION(1, "TRACED0"),
STM32_FUNCTION(3, "TIM3_CH3"),
@@ -672,7 +672,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(41, "PC9"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC9"),
STM32_FUNCTION(1, "TRACED1"),
STM32_FUNCTION(3, "TIM3_CH4"),
@@ -689,7 +689,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(42, "PC10"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC10"),
STM32_FUNCTION(1, "TRACED2"),
STM32_FUNCTION(4, "DFSDM1_CKIN5"),
@@ -706,7 +706,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(43, "PC11"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC11"),
STM32_FUNCTION(1, "TRACED3"),
STM32_FUNCTION(4, "DFSDM1_DATIN5"),
@@ -722,7 +722,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(44, "PC12"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC12"),
STM32_FUNCTION(1, "TRACECLK"),
STM32_FUNCTION(2, "MCO2"),
@@ -738,28 +738,28 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(45, "PC13"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC13"),
STM32_FUNCTION(16, "EVENTOUT"),
STM32_FUNCTION(17, "ANALOG")
),
STM32_PIN_PKG(
PINCTRL_PIN(46, "PC14"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC14"),
STM32_FUNCTION(16, "EVENTOUT"),
STM32_FUNCTION(17, "ANALOG")
),
STM32_PIN_PKG(
PINCTRL_PIN(47, "PC15"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOC15"),
STM32_FUNCTION(16, "EVENTOUT"),
STM32_FUNCTION(17, "ANALOG")
),
STM32_PIN_PKG(
PINCTRL_PIN(48, "PD0"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD0"),
STM32_FUNCTION(3, "I2C6_SDA"),
STM32_FUNCTION(4, "DFSDM1_CKIN6"),
@@ -775,7 +775,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(49, "PD1"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD1"),
STM32_FUNCTION(3, "I2C6_SCL"),
STM32_FUNCTION(4, "DFSDM1_DATIN6"),
@@ -791,7 +791,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(50, "PD2"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD2"),
STM32_FUNCTION(3, "TIM3_ETR"),
STM32_FUNCTION(5, "I2C5_SMBA"),
@@ -804,7 +804,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(51, "PD3"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD3"),
STM32_FUNCTION(1, "HDP5"),
STM32_FUNCTION(4, "DFSDM1_CKOUT"),
@@ -823,7 +823,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(52, "PD4"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD4"),
STM32_FUNCTION(7, "SAI3_FS_A"),
STM32_FUNCTION(8, "USART2_RTS USART2_DE"),
@@ -835,7 +835,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(53, "PD5"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD5"),
STM32_FUNCTION(8, "USART2_TX"),
STM32_FUNCTION(11, "SDMMC3_D2"),
@@ -845,7 +845,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(54, "PD6"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD6"),
STM32_FUNCTION(2, "TIM16_CH1N"),
STM32_FUNCTION(3, "SAI1_D1"),
@@ -862,7 +862,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(55, "PD7"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD7"),
STM32_FUNCTION(1, "TRACED6"),
STM32_FUNCTION(4, "DFSDM1_DATIN4"),
@@ -877,7 +877,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(56, "PD8"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD8"),
STM32_FUNCTION(4, "DFSDM1_CKIN3"),
STM32_FUNCTION(7, "SAI3_SCK_B"),
@@ -890,7 +890,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(57, "PD9"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD9"),
STM32_FUNCTION(4, "DFSDM1_DATIN3"),
STM32_FUNCTION(7, "SAI3_SD_B"),
@@ -903,7 +903,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(58, "PD10"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD10"),
STM32_FUNCTION(1, "RTC_REFIN"),
STM32_FUNCTION(2, "TIM16_BKIN"),
@@ -919,7 +919,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(59, "PD11"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD11"),
STM32_FUNCTION(4, "LPTIM2_IN2"),
STM32_FUNCTION(5, "I2C4_SMBA"),
@@ -933,7 +933,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(60, "PD12"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD12"),
STM32_FUNCTION(2, "LPTIM1_IN1"),
STM32_FUNCTION(3, "TIM4_CH1"),
@@ -949,7 +949,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(61, "PD13"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD13"),
STM32_FUNCTION(2, "LPTIM1_OUT"),
STM32_FUNCTION(3, "TIM4_CH2"),
@@ -965,7 +965,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(62, "PD14"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD14"),
STM32_FUNCTION(3, "TIM4_CH3"),
STM32_FUNCTION(7, "SAI3_MCLK_B"),
@@ -976,7 +976,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(63, "PD15"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOD15"),
STM32_FUNCTION(3, "TIM4_CH4"),
STM32_FUNCTION(7, "SAI3_MCLK_A"),
@@ -988,7 +988,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(64, "PE0"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE0"),
STM32_FUNCTION(2, "LPTIM1_ETR"),
STM32_FUNCTION(3, "TIM4_ETR"),
@@ -1004,7 +1004,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(65, "PE1"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE1"),
STM32_FUNCTION(2, "LPTIM1_IN2"),
STM32_FUNCTION(6, "I2S2_MCK"),
@@ -1017,7 +1017,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(66, "PE2"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE2"),
STM32_FUNCTION(1, "TRACECLK"),
STM32_FUNCTION(3, "SAI1_CK1"),
@@ -1032,7 +1032,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(67, "PE3"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE3"),
STM32_FUNCTION(1, "TRACED0"),
STM32_FUNCTION(5, "TIM15_BKIN"),
@@ -1044,7 +1044,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(68, "PE4"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE4"),
STM32_FUNCTION(1, "TRACED1"),
STM32_FUNCTION(3, "SAI1_D2"),
@@ -1064,7 +1064,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(69, "PE5"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE5"),
STM32_FUNCTION(1, "TRACED3"),
STM32_FUNCTION(3, "SAI1_CK2"),
@@ -1084,7 +1084,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(70, "PE6"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE6"),
STM32_FUNCTION(1, "TRACED2"),
STM32_FUNCTION(2, "TIM1_BKIN2"),
@@ -1103,7 +1103,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(71, "PE7"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE7"),
STM32_FUNCTION(2, "TIM1_ETR"),
STM32_FUNCTION(3, "TIM3_ETR"),
@@ -1116,7 +1116,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(72, "PE8"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE8"),
STM32_FUNCTION(2, "TIM1_CH1N"),
STM32_FUNCTION(4, "DFSDM1_CKIN2"),
@@ -1128,7 +1128,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(73, "PE9"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE9"),
STM32_FUNCTION(2, "TIM1_CH1"),
STM32_FUNCTION(4, "DFSDM1_CKOUT"),
@@ -1140,7 +1140,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(74, "PE10"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE10"),
STM32_FUNCTION(2, "TIM1_CH2N"),
STM32_FUNCTION(4, "DFSDM1_DATIN4"),
@@ -1152,7 +1152,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(75, "PE11"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE11"),
STM32_FUNCTION(2, "TIM1_CH2"),
STM32_FUNCTION(4, "DFSDM1_CKIN4"),
@@ -1167,7 +1167,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(76, "PE12"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE12"),
STM32_FUNCTION(2, "TIM1_CH3N"),
STM32_FUNCTION(4, "DFSDM1_DATIN5"),
@@ -1181,7 +1181,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(77, "PE13"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE13"),
STM32_FUNCTION(1, "HDP2"),
STM32_FUNCTION(2, "TIM1_CH3"),
@@ -1196,7 +1196,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(78, "PE14"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE14"),
STM32_FUNCTION(2, "TIM1_CH4"),
STM32_FUNCTION(6, "SPI4_MOSI"),
@@ -1211,7 +1211,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(79, "PE15"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOE15"),
STM32_FUNCTION(1, "HDP3"),
STM32_FUNCTION(2, "TIM1_BKIN"),
@@ -1226,7 +1226,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(80, "PF0"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOF0"),
STM32_FUNCTION(5, "I2C2_SDA"),
STM32_FUNCTION(10, "SDMMC3_D0"),
@@ -1237,7 +1237,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(81, "PF1"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOF1"),
STM32_FUNCTION(5, "I2C2_SCL"),
STM32_FUNCTION(10, "SDMMC3_CMD"),
@@ -1248,7 +1248,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(82, "PF2"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOF2"),
STM32_FUNCTION(5, "I2C2_SMBA"),
STM32_FUNCTION(10, "SDMMC2_D0DIR"),
@@ -1260,7 +1260,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(83, "PF3"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOF3"),
STM32_FUNCTION(12, "ETH1_GMII_TX_ER ETH1_MII_TX_ER"),
STM32_FUNCTION(13, "FMC_A3"),
@@ -1269,7 +1269,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(84, "PF4"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOF4"),
STM32_FUNCTION(8, "USART2_RX"),
STM32_FUNCTION(10, "SDMMC3_D1"),
@@ -1280,7 +1280,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(85, "PF5"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOF5"),
STM32_FUNCTION(8, "USART2_TX"),
STM32_FUNCTION(10, "SDMMC3_D2"),
@@ -1290,7 +1290,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(86, "PF6"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOF6"),
STM32_FUNCTION(2, "TIM16_CH1"),
STM32_FUNCTION(6, "SPI5_NSS"),
@@ -1303,7 +1303,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(87, "PF7"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOF7"),
STM32_FUNCTION(2, "TIM17_CH1"),
STM32_FUNCTION(6, "SPI5_SCK"),
@@ -1315,7 +1315,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(88, "PF8"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOF8"),
STM32_FUNCTION(1, "TRACED12"),
STM32_FUNCTION(2, "TIM16_CH1N"),
@@ -1329,7 +1329,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(89, "PF9"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOF9"),
STM32_FUNCTION(1, "TRACED13"),
STM32_FUNCTION(2, "TIM17_CH1N"),
@@ -1343,7 +1343,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(90, "PF10"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOF10"),
STM32_FUNCTION(2, "TIM16_BKIN"),
STM32_FUNCTION(3, "SAI1_D3"),
@@ -1358,7 +1358,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(91, "PF11"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOF11"),
STM32_FUNCTION(6, "SPI5_MOSI"),
STM32_FUNCTION(11, "SAI2_SD_B"),
@@ -1369,7 +1369,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(92, "PF12"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOF12"),
STM32_FUNCTION(1, "TRACED4"),
STM32_FUNCTION(12, "ETH1_GMII_RXD4"),
@@ -1379,7 +1379,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(93, "PF13"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOF13"),
STM32_FUNCTION(1, "TRACED5"),
STM32_FUNCTION(4, "DFSDM1_DATIN6"),
@@ -1393,7 +1393,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(94, "PF14"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOF14"),
STM32_FUNCTION(1, "TRACED6"),
STM32_FUNCTION(4, "DFSDM1_CKIN6"),
@@ -1406,7 +1406,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(95, "PF15"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOF15"),
STM32_FUNCTION(1, "TRACED7"),
STM32_FUNCTION(5, "I2C4_SDA"),
@@ -1418,7 +1418,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(96, "PG0"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOG0"),
STM32_FUNCTION(1, "TRACED0"),
STM32_FUNCTION(4, "DFSDM1_DATIN0"),
@@ -1429,7 +1429,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(97, "PG1"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOG1"),
STM32_FUNCTION(1, "TRACED1"),
STM32_FUNCTION(12, "ETH1_GMII_TXD5"),
@@ -1439,7 +1439,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(98, "PG2"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOG2"),
STM32_FUNCTION(1, "TRACED2"),
STM32_FUNCTION(2, "MCO2"),
@@ -1451,7 +1451,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(99, "PG3"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOG3"),
STM32_FUNCTION(1, "TRACED3"),
STM32_FUNCTION(4, "TIM8_BKIN2"),
@@ -1463,7 +1463,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(100, "PG4"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOG4"),
STM32_FUNCTION(2, "TIM1_BKIN2"),
STM32_FUNCTION(12, "ETH1_GMII_GTX_CLK ETH1_RGMII_GTX_CLK"),
@@ -1473,7 +1473,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(101, "PG5"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOG5"),
STM32_FUNCTION(2, "TIM1_ETR"),
STM32_FUNCTION(12, "ETH1_GMII_CLK125 ETH1_RGMII_CLK125"),
@@ -1483,7 +1483,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(102, "PG6"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOG6"),
STM32_FUNCTION(1, "TRACED14"),
STM32_FUNCTION(2, "TIM17_BKIN"),
@@ -1495,7 +1495,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(103, "PG7"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOG7"),
STM32_FUNCTION(1, "TRACED5"),
STM32_FUNCTION(7, "SAI1_MCLK_A"),
@@ -1511,7 +1511,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(104, "PG8"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOG8"),
STM32_FUNCTION(1, "TRACED15"),
STM32_FUNCTION(2, "TIM2_CH1 TIM2_ETR"),
@@ -1530,7 +1530,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(105, "PG9"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOG9"),
STM32_FUNCTION(1, "DBTRGO"),
STM32_FUNCTION(8, "USART6_RX"),
@@ -1545,7 +1545,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(106, "PG10"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOG10"),
STM32_FUNCTION(1, "TRACED10"),
STM32_FUNCTION(9, "UART8_CTS"),
@@ -1560,7 +1560,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(107, "PG11"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOG11"),
STM32_FUNCTION(1, "TRACED11"),
STM32_FUNCTION(5, "USART1_TX"),
@@ -1574,7 +1574,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(108, "PG12"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOG12"),
STM32_FUNCTION(2, "LPTIM1_IN1"),
STM32_FUNCTION(6, "SPI6_MISO"),
@@ -1591,7 +1591,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(109, "PG13"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOG13"),
STM32_FUNCTION(1, "TRACED0"),
STM32_FUNCTION(2, "LPTIM1_OUT"),
@@ -1609,7 +1609,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(110, "PG14"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOG14"),
STM32_FUNCTION(1, "TRACED1"),
STM32_FUNCTION(2, "LPTIM1_ETR"),
@@ -1626,7 +1626,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(111, "PG15"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOG15"),
STM32_FUNCTION(1, "TRACED7"),
STM32_FUNCTION(3, "SAI1_D2"),
@@ -1640,21 +1640,21 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(112, "PH0"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOH0"),
STM32_FUNCTION(16, "EVENTOUT"),
STM32_FUNCTION(17, "ANALOG")
),
STM32_PIN_PKG(
PINCTRL_PIN(113, "PH1"),
- STM32MP_PKG_AA | STM32MP_PKG_AC | STM32MP_PKG_AB | STM32MP_PKG_AD,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC) | BIT(STM32_PKG_AB) | BIT(STM32_PKG_AD),
STM32_FUNCTION(0, "GPIOH1"),
STM32_FUNCTION(16, "EVENTOUT"),
STM32_FUNCTION(17, "ANALOG")
),
STM32_PIN_PKG(
PINCTRL_PIN(114, "PH2"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOH2"),
STM32_FUNCTION(2, "LPTIM1_IN2"),
STM32_FUNCTION(10, "QUADSPI_BK2_IO0"),
@@ -1666,7 +1666,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(115, "PH3"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOH3"),
STM32_FUNCTION(4, "DFSDM1_CKIN4"),
STM32_FUNCTION(10, "QUADSPI_BK2_IO1"),
@@ -1678,7 +1678,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(116, "PH4"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOH4"),
STM32_FUNCTION(5, "I2C2_SCL"),
STM32_FUNCTION(10, "LCD_G5"),
@@ -1688,7 +1688,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(117, "PH5"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOH5"),
STM32_FUNCTION(5, "I2C2_SDA"),
STM32_FUNCTION(6, "SPI5_NSS"),
@@ -1698,7 +1698,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(118, "PH6"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOH6"),
STM32_FUNCTION(3, "TIM12_CH1"),
STM32_FUNCTION(5, "I2C2_SMBA"),
@@ -1711,7 +1711,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(119, "PH7"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOH7"),
STM32_FUNCTION(5, "I2C3_SCL"),
STM32_FUNCTION(6, "SPI5_MISO"),
@@ -1723,7 +1723,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(120, "PH8"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOH8"),
STM32_FUNCTION(3, "TIM5_ETR"),
STM32_FUNCTION(5, "I2C3_SDA"),
@@ -1734,7 +1734,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(121, "PH9"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOH9"),
STM32_FUNCTION(3, "TIM12_CH2"),
STM32_FUNCTION(5, "I2C3_SMBA"),
@@ -1745,7 +1745,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(122, "PH10"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOH10"),
STM32_FUNCTION(3, "TIM5_CH1"),
STM32_FUNCTION(5, "I2C4_SMBA"),
@@ -1757,7 +1757,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(123, "PH11"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOH11"),
STM32_FUNCTION(3, "TIM5_CH2"),
STM32_FUNCTION(5, "I2C4_SCL"),
@@ -1769,7 +1769,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(124, "PH12"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOH12"),
STM32_FUNCTION(1, "HDP2"),
STM32_FUNCTION(3, "TIM5_CH3"),
@@ -1782,7 +1782,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(125, "PH13"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOH13"),
STM32_FUNCTION(4, "TIM8_CH1N"),
STM32_FUNCTION(9, "UART4_TX"),
@@ -1793,7 +1793,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(126, "PH14"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOH14"),
STM32_FUNCTION(4, "TIM8_CH2N"),
STM32_FUNCTION(9, "UART4_RX"),
@@ -1805,7 +1805,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(127, "PH15"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOH15"),
STM32_FUNCTION(4, "TIM8_CH3N"),
STM32_FUNCTION(14, "DCMI_D11"),
@@ -1815,7 +1815,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(128, "PI0"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOI0"),
STM32_FUNCTION(3, "TIM5_CH4"),
STM32_FUNCTION(6, "SPI2_NSS I2S2_WS"),
@@ -1826,7 +1826,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(129, "PI1"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOI1"),
STM32_FUNCTION(4, "TIM8_BKIN2"),
STM32_FUNCTION(6, "SPI2_SCK I2S2_CK"),
@@ -1837,7 +1837,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(130, "PI2"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOI2"),
STM32_FUNCTION(4, "TIM8_CH4"),
STM32_FUNCTION(6, "SPI2_MISO I2S2_SDI"),
@@ -1848,7 +1848,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(131, "PI3"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOI3"),
STM32_FUNCTION(4, "TIM8_ETR"),
STM32_FUNCTION(6, "SPI2_MOSI I2S2_SDO"),
@@ -1858,7 +1858,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(132, "PI4"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOI4"),
STM32_FUNCTION(4, "TIM8_BKIN"),
STM32_FUNCTION(11, "SAI2_MCLK_A"),
@@ -1869,7 +1869,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(133, "PI5"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOI5"),
STM32_FUNCTION(4, "TIM8_CH1"),
STM32_FUNCTION(11, "SAI2_SCK_A"),
@@ -1880,7 +1880,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(134, "PI6"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOI6"),
STM32_FUNCTION(4, "TIM8_CH2"),
STM32_FUNCTION(11, "SAI2_SD_A"),
@@ -1891,7 +1891,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(135, "PI7"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOI7"),
STM32_FUNCTION(4, "TIM8_CH3"),
STM32_FUNCTION(11, "SAI2_FS_A"),
@@ -1902,14 +1902,14 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(136, "PI8"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOI8"),
STM32_FUNCTION(16, "EVENTOUT"),
STM32_FUNCTION(17, "ANALOG")
),
STM32_PIN_PKG(
PINCTRL_PIN(137, "PI9"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOI9"),
STM32_FUNCTION(1, "HDP1"),
STM32_FUNCTION(9, "UART4_RX"),
@@ -1920,7 +1920,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(138, "PI10"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOI10"),
STM32_FUNCTION(1, "HDP0"),
STM32_FUNCTION(9, "USART3_CTS USART3_NSS"),
@@ -1931,7 +1931,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(139, "PI11"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOI11"),
STM32_FUNCTION(1, "MCO1"),
STM32_FUNCTION(6, "I2S_CKIN"),
@@ -1941,7 +1941,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(140, "PI12"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOI12"),
STM32_FUNCTION(1, "TRACED0"),
STM32_FUNCTION(3, "HDP0"),
@@ -1951,7 +1951,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(141, "PI13"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOI13"),
STM32_FUNCTION(1, "TRACED1"),
STM32_FUNCTION(3, "HDP1"),
@@ -1961,7 +1961,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(142, "PI14"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOI14"),
STM32_FUNCTION(1, "TRACECLK"),
STM32_FUNCTION(15, "LCD_CLK"),
@@ -1970,7 +1970,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(143, "PI15"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOI15"),
STM32_FUNCTION(10, "LCD_G2"),
STM32_FUNCTION(15, "LCD_R0"),
@@ -1979,7 +1979,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(144, "PJ0"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ0"),
STM32_FUNCTION(1, "TRACED8"),
STM32_FUNCTION(10, "LCD_R7"),
@@ -1989,7 +1989,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(145, "PJ1"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ1"),
STM32_FUNCTION(1, "TRACED9"),
STM32_FUNCTION(15, "LCD_R2"),
@@ -1998,7 +1998,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(146, "PJ2"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ2"),
STM32_FUNCTION(1, "TRACED10"),
STM32_FUNCTION(14, "DSI_TE"),
@@ -2008,7 +2008,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(147, "PJ3"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ3"),
STM32_FUNCTION(1, "TRACED11"),
STM32_FUNCTION(15, "LCD_R4"),
@@ -2017,7 +2017,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(148, "PJ4"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ4"),
STM32_FUNCTION(1, "TRACED12"),
STM32_FUNCTION(15, "LCD_R5"),
@@ -2026,7 +2026,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(149, "PJ5"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ5"),
STM32_FUNCTION(1, "TRACED2"),
STM32_FUNCTION(3, "HDP2"),
@@ -2036,7 +2036,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(150, "PJ6"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ6"),
STM32_FUNCTION(1, "TRACED3"),
STM32_FUNCTION(3, "HDP3"),
@@ -2047,7 +2047,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(151, "PJ7"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ7"),
STM32_FUNCTION(1, "TRACED13"),
STM32_FUNCTION(4, "TIM8_CH2N"),
@@ -2057,7 +2057,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(152, "PJ8"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ8"),
STM32_FUNCTION(1, "TRACED14"),
STM32_FUNCTION(2, "TIM1_CH3N"),
@@ -2069,7 +2069,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(153, "PJ9"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ9"),
STM32_FUNCTION(1, "TRACED15"),
STM32_FUNCTION(2, "TIM1_CH3"),
@@ -2081,7 +2081,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(154, "PJ10"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ10"),
STM32_FUNCTION(2, "TIM1_CH2N"),
STM32_FUNCTION(4, "TIM8_CH2"),
@@ -2092,7 +2092,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(155, "PJ11"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ11"),
STM32_FUNCTION(2, "TIM1_CH2"),
STM32_FUNCTION(4, "TIM8_CH2N"),
@@ -2103,7 +2103,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(156, "PJ12"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ12"),
STM32_FUNCTION(10, "LCD_G3"),
STM32_FUNCTION(15, "LCD_B0"),
@@ -2112,7 +2112,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(157, "PJ13"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ13"),
STM32_FUNCTION(10, "LCD_G4"),
STM32_FUNCTION(15, "LCD_B1"),
@@ -2121,7 +2121,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(158, "PJ14"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ14"),
STM32_FUNCTION(15, "LCD_B2"),
STM32_FUNCTION(16, "EVENTOUT"),
@@ -2129,7 +2129,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(159, "PJ15"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOJ15"),
STM32_FUNCTION(15, "LCD_B3"),
STM32_FUNCTION(16, "EVENTOUT"),
@@ -2137,7 +2137,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(160, "PK0"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOK0"),
STM32_FUNCTION(2, "TIM1_CH1N"),
STM32_FUNCTION(4, "TIM8_CH3"),
@@ -2148,7 +2148,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(161, "PK1"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOK1"),
STM32_FUNCTION(1, "TRACED4"),
STM32_FUNCTION(2, "TIM1_CH1"),
@@ -2161,7 +2161,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(162, "PK2"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOK2"),
STM32_FUNCTION(1, "TRACED5"),
STM32_FUNCTION(2, "TIM1_BKIN"),
@@ -2173,7 +2173,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(163, "PK3"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOK3"),
STM32_FUNCTION(15, "LCD_B4"),
STM32_FUNCTION(16, "EVENTOUT"),
@@ -2181,7 +2181,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(164, "PK4"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOK4"),
STM32_FUNCTION(15, "LCD_B5"),
STM32_FUNCTION(16, "EVENTOUT"),
@@ -2189,7 +2189,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(165, "PK5"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOK5"),
STM32_FUNCTION(1, "TRACED6"),
STM32_FUNCTION(3, "HDP6"),
@@ -2199,7 +2199,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(166, "PK6"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOK6"),
STM32_FUNCTION(1, "TRACED7"),
STM32_FUNCTION(3, "HDP7"),
@@ -2209,7 +2209,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(167, "PK7"),
- STM32MP_PKG_AA,
+ BIT(STM32_PKG_AA),
STM32_FUNCTION(0, "GPIOK7"),
STM32_FUNCTION(15, "LCD_DE"),
STM32_FUNCTION(16, "EVENTOUT"),
@@ -2220,7 +2220,7 @@ static const struct stm32_desc_pin stm32mp157_pins[] = {
static const struct stm32_desc_pin stm32mp157_z_pins[] = {
STM32_PIN_PKG(
PINCTRL_PIN(400, "PZ0"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOZ0"),
STM32_FUNCTION(3, "I2C6_SCL"),
STM32_FUNCTION(4, "I2C2_SCL"),
@@ -2232,7 +2232,7 @@ static const struct stm32_desc_pin stm32mp157_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(401, "PZ1"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOZ1"),
STM32_FUNCTION(3, "I2C6_SDA"),
STM32_FUNCTION(4, "I2C2_SDA"),
@@ -2246,7 +2246,7 @@ static const struct stm32_desc_pin stm32mp157_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(402, "PZ2"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOZ2"),
STM32_FUNCTION(3, "I2C6_SCL"),
STM32_FUNCTION(4, "I2C2_SCL"),
@@ -2260,7 +2260,7 @@ static const struct stm32_desc_pin stm32mp157_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(403, "PZ3"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOZ3"),
STM32_FUNCTION(3, "I2C6_SDA"),
STM32_FUNCTION(4, "I2C2_SDA"),
@@ -2274,7 +2274,7 @@ static const struct stm32_desc_pin stm32mp157_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(404, "PZ4"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOZ4"),
STM32_FUNCTION(3, "I2C6_SCL"),
STM32_FUNCTION(4, "I2C2_SCL"),
@@ -2285,7 +2285,7 @@ static const struct stm32_desc_pin stm32mp157_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(405, "PZ5"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOZ5"),
STM32_FUNCTION(3, "I2C6_SDA"),
STM32_FUNCTION(4, "I2C2_SDA"),
@@ -2297,7 +2297,7 @@ static const struct stm32_desc_pin stm32mp157_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(406, "PZ6"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOZ6"),
STM32_FUNCTION(3, "I2C6_SCL"),
STM32_FUNCTION(4, "I2C2_SCL"),
@@ -2310,7 +2310,7 @@ static const struct stm32_desc_pin stm32mp157_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(407, "PZ7"),
- STM32MP_PKG_AA | STM32MP_PKG_AC,
+ BIT(STM32_PKG_AA) | BIT(STM32_PKG_AC),
STM32_FUNCTION(0, "GPIOZ7"),
STM32_FUNCTION(3, "I2C6_SDA"),
STM32_FUNCTION(4, "I2C2_SDA"),
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32mp257.c b/drivers/pinctrl/stm32/pinctrl-stm32mp257.c
index 6709bddd97186..346d5a10c6c8a 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32mp257.c
+++ b/drivers/pinctrl/stm32/pinctrl-stm32mp257.c
@@ -13,7 +13,7 @@
static const struct stm32_desc_pin stm32mp257_pins[] = {
STM32_PIN_PKG(
PINCTRL_PIN(0, "PA0"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA0"),
STM32_FUNCTION(2, "LPTIM1_CH2"),
STM32_FUNCTION(3, "SPI5_RDY"),
@@ -31,7 +31,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(1, "PA1"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA1"),
STM32_FUNCTION(3, "SPI6_MISO"),
STM32_FUNCTION(5, "SAI3_SD_A"),
@@ -48,7 +48,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(2, "PA2"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA2"),
STM32_FUNCTION(2, "LPTIM2_IN1"),
STM32_FUNCTION(3, "SPI7_MISO"),
@@ -64,7 +64,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(3, "PA3"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA3"),
STM32_FUNCTION(2, "LPTIM2_ETR"),
STM32_FUNCTION(3, "SPI7_MOSI"),
@@ -81,7 +81,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(4, "PA4"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA4"),
STM32_FUNCTION(7, "USART2_TX"),
STM32_FUNCTION(8, "FDCAN2_TX"),
@@ -94,7 +94,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(5, "PA5"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA5"),
STM32_FUNCTION(4, "SPI4_MOSI"),
STM32_FUNCTION(5, "SAI2_MCLK_B"),
@@ -111,7 +111,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(6, "PA6"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA6"),
STM32_FUNCTION(4, "SPI4_SCK"),
STM32_FUNCTION(5, "SAI2_FS_B"),
@@ -128,7 +128,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(7, "PA7"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA7"),
STM32_FUNCTION(3, "AUDIOCLK"),
STM32_FUNCTION(4, "SPI6_RDY"),
@@ -148,7 +148,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(8, "PA8"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA8"),
STM32_FUNCTION(2, "LPTIM2_CH2"),
STM32_FUNCTION(3, "SPI7_NSS"),
@@ -163,7 +163,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(9, "PA9"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA9"),
STM32_FUNCTION(4, "SPI4_NSS"),
STM32_FUNCTION(5, "SAI2_SCK_B"),
@@ -179,7 +179,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(10, "PA10"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA10"),
STM32_FUNCTION(4, "SPI4_MISO"),
STM32_FUNCTION(5, "SAI2_SD_B"),
@@ -195,7 +195,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(11, "PA11"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA11"),
STM32_FUNCTION(2, "SPI8_SCK"),
STM32_FUNCTION(3, "LPTIM2_CH1"),
@@ -207,7 +207,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(12, "PA12"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA12"),
STM32_FUNCTION(3, "SPI6_MOSI"),
STM32_FUNCTION(5, "SAI3_FS_A"),
@@ -220,7 +220,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(13, "PA13"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA13"),
STM32_FUNCTION(2, "SPI8_RDY"),
STM32_FUNCTION(3, "I2S3_MCK"),
@@ -234,7 +234,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(14, "PA14"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA14"),
STM32_FUNCTION(2, "SPI8_NSS"),
STM32_FUNCTION(3, "LPTIM2_CH2"),
@@ -246,7 +246,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(15, "PA15"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA15"),
STM32_FUNCTION(3, "SPI3_MISO I2S3_SDI"),
STM32_FUNCTION(7, "USART2_RX"),
@@ -257,7 +257,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(16, "PB0"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB0"),
STM32_FUNCTION(3, "SPI2_SCK I2S2_CK"),
STM32_FUNCTION(7, "USART1_CK"),
@@ -269,7 +269,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(17, "PB1"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB1"),
STM32_FUNCTION(2, "SPI3_NSS I2S3_WS"),
STM32_FUNCTION(8, "TIM16_CH1N"),
@@ -281,7 +281,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(18, "PB2"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB2"),
STM32_FUNCTION(3, "SPI2_MOSI I2S2_SDO"),
STM32_FUNCTION(6, "MDF1_CKI3"),
@@ -294,7 +294,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(19, "PB3"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB3"),
STM32_FUNCTION(3, "SPI2_NSS I2S2_WS"),
STM32_FUNCTION(6, "MDF1_SDI3"),
@@ -306,7 +306,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(20, "PB4"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB4"),
STM32_FUNCTION(3, "SPI2_RDY"),
STM32_FUNCTION(4, "UART4_CTS"),
@@ -322,7 +322,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(21, "PB5"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB5"),
STM32_FUNCTION(3, "I2S2_MCK"),
STM32_FUNCTION(4, "UART4_RTS"),
@@ -339,7 +339,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(22, "PB6"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB6"),
STM32_FUNCTION(3, "SPI2_MISO I2S2_SDI"),
STM32_FUNCTION(4, "UART4_RX"),
@@ -353,7 +353,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(23, "PB7"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB7"),
STM32_FUNCTION(2, "SPI3_SCK I2S3_CK"),
STM32_FUNCTION(4, "UART4_TX"),
@@ -368,7 +368,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(24, "PB8"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB8"),
STM32_FUNCTION(2, "SPI3_MOSI I2S3_SDO"),
STM32_FUNCTION(5, "PCIE_CLKREQN"),
@@ -382,7 +382,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(25, "PB9"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB9"),
STM32_FUNCTION(2, "SPI3_RDY"),
STM32_FUNCTION(7, "USART1_RTS"),
@@ -397,7 +397,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(26, "PB10"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB10"),
STM32_FUNCTION(2, "SPI3_MISO I2S3_SDI"),
STM32_FUNCTION(7, "USART1_RX"),
@@ -409,7 +409,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(27, "PB11"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB11"),
STM32_FUNCTION(2, "I2S3_MCK"),
STM32_FUNCTION(7, "USART1_CTS"),
@@ -425,7 +425,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(28, "PB12"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB12"),
STM32_FUNCTION(6, "UART8_CTS"),
STM32_FUNCTION(8, "TIM13_CH1"),
@@ -438,7 +438,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(29, "PB13"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB13"),
STM32_FUNCTION(3, "SPI7_SCK"),
STM32_FUNCTION(5, "SAI1_SD_B"),
@@ -451,7 +451,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(30, "PB14"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB14"),
STM32_FUNCTION(3, "SPI2_SCK I2S2_CK"),
STM32_FUNCTION(6, "MDF1_CKI7"),
@@ -465,7 +465,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(31, "PB15"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB15"),
STM32_FUNCTION(2, "LPTIM1_IN2"),
STM32_FUNCTION(3, "SPI5_SCK"),
@@ -483,7 +483,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(32, "PC0"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC0"),
STM32_FUNCTION(2, "LPTIM1_CH1"),
STM32_FUNCTION(4, "SPI6_SCK"),
@@ -499,7 +499,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(33, "PC1"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC1"),
STM32_FUNCTION(3, "SPI3_MOSI I2S3_SDO"),
STM32_FUNCTION(7, "USART2_TX"),
@@ -510,7 +510,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(34, "PC2"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC2"),
STM32_FUNCTION(2, "SPI8_MOSI"),
STM32_FUNCTION(3, "LPTIM2_IN1"),
@@ -523,7 +523,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(35, "PC3"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC3"),
STM32_FUNCTION(2, "LPTIM1_IN2"),
STM32_FUNCTION(3, "SPI3_NSS I2S3_WS"),
@@ -539,7 +539,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(36, "PC4"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC4"),
STM32_FUNCTION(4, "SPI6_MISO"),
STM32_FUNCTION(5, "SAI3_FS_B"),
@@ -551,7 +551,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(37, "PC5"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC5"),
STM32_FUNCTION(3, "SPDIFRX1_IN1"),
STM32_FUNCTION(6, "MDF1_SDI1"),
@@ -567,7 +567,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(38, "PC6"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC6"),
STM32_FUNCTION(2, "RTC_REFIN"),
STM32_FUNCTION(3, "SPDIFRX1_IN0"),
@@ -584,7 +584,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(39, "PC7"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC7"),
STM32_FUNCTION(4, "SPI6_MOSI"),
STM32_FUNCTION(5, "SAI3_SD_B"),
@@ -598,7 +598,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(40, "PC8"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC8"),
STM32_FUNCTION(2, "LPTIM1_ETR"),
STM32_FUNCTION(4, "SPI6_NSS"),
@@ -614,7 +614,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(41, "PC9"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC9"),
STM32_FUNCTION(2, "MCO1"),
STM32_FUNCTION(3, "SPI3_MISO I2S3_SDI"),
@@ -632,7 +632,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(42, "PC10"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC10"),
STM32_FUNCTION(3, "SPI3_MOSI I2S3_SDO"),
STM32_FUNCTION(8, "LPTIM4_ETR"),
@@ -648,7 +648,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(43, "PC11"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC11"),
STM32_FUNCTION(2, "LPTIM1_CH1"),
STM32_FUNCTION(3, "SPI5_NSS"),
@@ -666,7 +666,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(44, "PC12"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC12"),
STM32_FUNCTION(2, "LPTIM1_CH2"),
STM32_FUNCTION(4, "I3C3_SCL"),
@@ -682,14 +682,14 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(45, "PC13"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC13"),
STM32_FUNCTION(16, "EVENTOUT"),
STM32_FUNCTION(17, "ANALOG")
),
STM32_PIN_PKG(
PINCTRL_PIN(48, "PD0"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD0"),
STM32_FUNCTION(1, "TRACECLK"),
STM32_FUNCTION(2, "HDP0"),
@@ -706,7 +706,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(49, "PD1"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD1"),
STM32_FUNCTION(2, "HDP1"),
STM32_FUNCTION(3, "SPI1_MISO I2S1_SDI"),
@@ -725,7 +725,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(50, "PD2"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD2"),
STM32_FUNCTION(2, "HDP2"),
STM32_FUNCTION(3, "SPI1_NSS I2S1_WS"),
@@ -743,7 +743,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(51, "PD3"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD3"),
STM32_FUNCTION(2, "SAI1_MCLK_A"),
STM32_FUNCTION(3, "SPI2_SCK I2S2_CK"),
@@ -760,7 +760,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(52, "PD4"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD4"),
STM32_FUNCTION(1, "TRACED0"),
STM32_FUNCTION(2, "SPI4_MISO"),
@@ -776,7 +776,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(53, "PD5"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD5"),
STM32_FUNCTION(1, "TRACED1"),
STM32_FUNCTION(2, "SPI4_NSS"),
@@ -792,7 +792,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(54, "PD6"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD6"),
STM32_FUNCTION(1, "TRACED2"),
STM32_FUNCTION(2, "SPI4_MOSI"),
@@ -808,7 +808,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(55, "PD7"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD7"),
STM32_FUNCTION(1, "TRACED3"),
STM32_FUNCTION(2, "SPI4_SCK"),
@@ -824,7 +824,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(56, "PD8"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD8"),
STM32_FUNCTION(1, "TRACED4"),
STM32_FUNCTION(2, "SPI4_RDY"),
@@ -843,7 +843,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(57, "PD9"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD9"),
STM32_FUNCTION(1, "TRACED5"),
STM32_FUNCTION(2, "HDP6"),
@@ -861,7 +861,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(58, "PD10"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD10"),
STM32_FUNCTION(1, "TRACED6"),
STM32_FUNCTION(2, "HDP7"),
@@ -880,7 +880,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(59, "PD11"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD11"),
STM32_FUNCTION(1, "TRACED7"),
STM32_FUNCTION(3, "SPI1_SCK I2S1_CK"),
@@ -899,7 +899,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(60, "PD12"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD12"),
STM32_FUNCTION(2, "SPI7_MISO"),
STM32_FUNCTION(3, "SPI2_MISO I2S2_SDI"),
@@ -914,7 +914,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(61, "PD13"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD13"),
STM32_FUNCTION(3, "SPI2_NSS I2S2_WS"),
STM32_FUNCTION(6, "MDF1_SDI7"),
@@ -928,7 +928,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(62, "PD14"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD14"),
STM32_FUNCTION(3, "I2S1_MCK"),
STM32_FUNCTION(8, "FDCAN1_RX"),
@@ -942,7 +942,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(63, "PD15"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD15"),
STM32_FUNCTION(2, "SPI1_RDY"),
STM32_FUNCTION(6, "DSI_TE"),
@@ -959,7 +959,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(64, "PE0"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE0"),
STM32_FUNCTION(1, "TRACED2"),
STM32_FUNCTION(2, "LPTIM2_CH1"),
@@ -972,7 +972,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(65, "PE1"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE1"),
STM32_FUNCTION(1, "TRACED3"),
STM32_FUNCTION(2, "LPTIM2_CH2"),
@@ -985,7 +985,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(66, "PE2"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE2"),
STM32_FUNCTION(2, "LPTIM2_ETR"),
STM32_FUNCTION(3, "SPI1_MISO I2S1_SDI"),
@@ -998,7 +998,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(67, "PE3"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE3"),
STM32_FUNCTION(1, "TRACECLK"),
STM32_FUNCTION(3, "SPI1_RDY"),
@@ -1012,7 +1012,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(68, "PE4"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE4"),
STM32_FUNCTION(1, "TRACED0"),
STM32_FUNCTION(2, "LPTIM2_IN1"),
@@ -1027,7 +1027,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(69, "PE5"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE5"),
STM32_FUNCTION(1, "TRACED1"),
STM32_FUNCTION(2, "LPTIM2_IN2"),
@@ -1042,7 +1042,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(70, "PE6"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE6"),
STM32_FUNCTION(2, "SPI4_RDY"),
STM32_FUNCTION(5, "SPDIFRX1_IN2"),
@@ -1056,7 +1056,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(71, "PE7"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE7"),
STM32_FUNCTION(4, "SAI4_D4"),
STM32_FUNCTION(5, "SPDIFRX1_IN3"),
@@ -1071,7 +1071,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(72, "PE8"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE8"),
STM32_FUNCTION(2, "SPI4_MOSI"),
STM32_FUNCTION(4, "SAI4_CK1"),
@@ -1085,7 +1085,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(73, "PE9"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE9"),
STM32_FUNCTION(2, "SPI4_MISO"),
STM32_FUNCTION(4, "SAI4_D2"),
@@ -1100,7 +1100,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(74, "PE10"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE10"),
STM32_FUNCTION(2, "SPI4_SCK"),
STM32_FUNCTION(4, "SAI4_D1"),
@@ -1116,7 +1116,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(75, "PE11"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE11"),
STM32_FUNCTION(3, "SPI7_SCK"),
STM32_FUNCTION(4, "SAI4_D3"),
@@ -1130,7 +1130,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(76, "PE12"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE12"),
STM32_FUNCTION(2, "SPI4_NSS"),
STM32_FUNCTION(4, "SAI4_CK2"),
@@ -1146,7 +1146,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(77, "PE13"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE13"),
STM32_FUNCTION(3, "SPI7_MISO"),
STM32_FUNCTION(5, "SAI1_SD_A"),
@@ -1159,7 +1159,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(78, "PE14"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE14"),
STM32_FUNCTION(3, "SPI7_NSS"),
STM32_FUNCTION(5, "SAI1_MCLK_A"),
@@ -1173,7 +1173,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(79, "PE15"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE15"),
STM32_FUNCTION(3, "SPI7_MOSI"),
STM32_FUNCTION(5, "SAI1_SCK_A"),
@@ -1187,7 +1187,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(80, "PF0"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF0"),
STM32_FUNCTION(3, "SPI3_SCK I2S3_CK"),
STM32_FUNCTION(8, "FDCAN2_RX"),
@@ -1201,7 +1201,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(81, "PF1"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF1"),
STM32_FUNCTION(2, "SPI8_MISO"),
STM32_FUNCTION(3, "LPTIM2_IN2"),
@@ -1214,7 +1214,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(82, "PF2"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF2"),
STM32_FUNCTION(3, "SPI3_RDY"),
STM32_FUNCTION(7, "I2C4_SMBA"),
@@ -1229,7 +1229,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(83, "PF3"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF3"),
STM32_FUNCTION(4, "UART8_RX"),
STM32_FUNCTION(5, "SAI2_SCK_B"),
@@ -1246,7 +1246,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(84, "PF4"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF4"),
STM32_FUNCTION(2, "RTC_OUT2"),
STM32_FUNCTION(3, "SPI6_NSS"),
@@ -1263,7 +1263,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(85, "PF5"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF5"),
STM32_FUNCTION(3, "SPI6_SCK"),
STM32_FUNCTION(5, "SAI3_MCLK_A"),
@@ -1279,7 +1279,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(86, "PF6"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF6"),
STM32_FUNCTION(2, "RTC_OUT2"),
STM32_FUNCTION(4, "SAI3_MCLK_B"),
@@ -1293,7 +1293,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(87, "PF7"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF7"),
STM32_FUNCTION(3, "SPDIFRX1_IN1"),
STM32_FUNCTION(4, "SPI6_SCK"),
@@ -1307,7 +1307,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(88, "PF8"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF8"),
STM32_FUNCTION(2, "RTC_REFIN"),
STM32_FUNCTION(4, "SAI3_SCK_B"),
@@ -1323,7 +1323,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(89, "PF9"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF9"),
STM32_FUNCTION(4, "SAI3_SD_B"),
STM32_FUNCTION(5, "SAI2_SD_A"),
@@ -1337,7 +1337,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(90, "PF10"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF10"),
STM32_FUNCTION(2, "MCO2"),
STM32_FUNCTION(3, "SPI3_RDY"),
@@ -1351,7 +1351,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(91, "PF11"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF11"),
STM32_FUNCTION(2, "MCO1"),
STM32_FUNCTION(3, "SPDIFRX1_IN0"),
@@ -1366,7 +1366,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(92, "PF12"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF12"),
STM32_FUNCTION(1, "TRACECLK"),
STM32_FUNCTION(3, "SPI5_MISO"),
@@ -1380,7 +1380,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(93, "PF13"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF13"),
STM32_FUNCTION(1, "TRACED0"),
STM32_FUNCTION(2, "HDP0"),
@@ -1397,7 +1397,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(94, "PF14"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF14"),
STM32_FUNCTION(1, "TRACED1"),
STM32_FUNCTION(2, "HDP1"),
@@ -1412,7 +1412,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(95, "PF15"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF15"),
STM32_FUNCTION(1, "TRACED2"),
STM32_FUNCTION(2, "HDP2"),
@@ -1429,7 +1429,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(96, "PG0"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG0"),
STM32_FUNCTION(2, "LPTIM1_IN1"),
STM32_FUNCTION(4, "I3C3_SDA"),
@@ -1445,7 +1445,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(97, "PG1"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG1"),
STM32_FUNCTION(2, "LPTIM1_IN1"),
STM32_FUNCTION(3, "I2S3_MCK"),
@@ -1465,7 +1465,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(98, "PG2"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG2"),
STM32_FUNCTION(2, "RTC_REFIN"),
STM32_FUNCTION(3, "I2S3_MCK"),
@@ -1483,7 +1483,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(99, "PG3"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG3"),
STM32_FUNCTION(2, "LPTIM1_ETR"),
STM32_FUNCTION(3, "SPI5_MOSI"),
@@ -1501,7 +1501,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(100, "PG4"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG4"),
STM32_FUNCTION(3, "SPI5_MISO"),
STM32_FUNCTION(4, "SAI3_FS_B"),
@@ -1517,7 +1517,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(101, "PG5"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG5"),
STM32_FUNCTION(1, "TRACED3"),
STM32_FUNCTION(2, "HDP3"),
@@ -1531,7 +1531,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(102, "PG6"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG6"),
STM32_FUNCTION(1, "TRACED4"),
STM32_FUNCTION(2, "HDP4"),
@@ -1546,7 +1546,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(103, "PG7"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG7"),
STM32_FUNCTION(1, "TRACED5"),
STM32_FUNCTION(2, "HDP5"),
@@ -1561,7 +1561,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(104, "PG8"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG8"),
STM32_FUNCTION(1, "TRACED6"),
STM32_FUNCTION(2, "HDP6"),
@@ -1578,7 +1578,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(105, "PG9"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG9"),
STM32_FUNCTION(1, "TRACED7"),
STM32_FUNCTION(6, "UART5_TX"),
@@ -1590,7 +1590,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(106, "PG10"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG10"),
STM32_FUNCTION(1, "TRACED8"),
STM32_FUNCTION(2, "HDP0"),
@@ -1603,7 +1603,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(107, "PG11"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG11"),
STM32_FUNCTION(1, "TRACED9"),
STM32_FUNCTION(2, "HDP1"),
@@ -1617,7 +1617,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(108, "PG12"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG12"),
STM32_FUNCTION(1, "TRACED10"),
STM32_FUNCTION(2, "HDP2"),
@@ -1631,7 +1631,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(109, "PG13"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG13"),
STM32_FUNCTION(1, "TRACED11"),
STM32_FUNCTION(2, "HDP3"),
@@ -1647,7 +1647,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(110, "PG14"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG14"),
STM32_FUNCTION(1, "TRACED12"),
STM32_FUNCTION(2, "HDP4"),
@@ -1662,7 +1662,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(111, "PG15"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG15"),
STM32_FUNCTION(1, "TRACED13"),
STM32_FUNCTION(2, "HDP5"),
@@ -1677,7 +1677,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(114, "PH2"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH2"),
STM32_FUNCTION(2, "LPTIM2_CH1"),
STM32_FUNCTION(3, "SPI7_RDY"),
@@ -1693,7 +1693,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(115, "PH3"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH3"),
STM32_FUNCTION(3, "SPI1_NSS I2S1_WS"),
STM32_FUNCTION(7, "UART7_RX"),
@@ -1706,7 +1706,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(116, "PH4"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH4"),
STM32_FUNCTION(7, "UART7_TX"),
STM32_FUNCTION(8, "TIM17_BKIN"),
@@ -1721,7 +1721,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(117, "PH5"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH5"),
STM32_FUNCTION(5, "SAI2_FS_A"),
STM32_FUNCTION(7, "UART8_CTS"),
@@ -1736,7 +1736,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(118, "PH6"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH6"),
STM32_FUNCTION(2, "LPTIM2_IN2"),
STM32_FUNCTION(5, "SAI1_MCLK_B"),
@@ -1751,7 +1751,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(119, "PH7"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH7"),
STM32_FUNCTION(3, "SPI1_MOSI I2S1_SDO"),
STM32_FUNCTION(5, "UART4_TX"),
@@ -1765,7 +1765,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(120, "PH8"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH8"),
STM32_FUNCTION(3, "SPI1_MISO I2S1_SDI"),
STM32_FUNCTION(4, "SPDIFRX1_IN3"),
@@ -1780,7 +1780,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(121, "PH9"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH9"),
STM32_FUNCTION(4, "SPI6_NSS"),
STM32_FUNCTION(5, "SAI3_MCLK_A"),
@@ -1793,7 +1793,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(122, "PH10"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH10"),
STM32_FUNCTION(3, "SPI1_SCK I2S1_CK"),
STM32_FUNCTION(4, "SPI6_MOSI"),
@@ -1806,7 +1806,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(123, "PH11"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH11"),
STM32_FUNCTION(4, "SPI6_MISO"),
STM32_FUNCTION(5, "SAI3_FS_A"),
@@ -1818,7 +1818,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(124, "PH12"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH12"),
STM32_FUNCTION(3, "SPI3_NSS I2S3_WS"),
STM32_FUNCTION(4, "SPI6_MISO"),
@@ -1829,7 +1829,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(125, "PH13"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH13"),
STM32_FUNCTION(3, "SPI3_SCK I2S3_CK"),
STM32_FUNCTION(4, "SPI6_MOSI"),
@@ -1841,7 +1841,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(128, "PI0"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI0"),
STM32_FUNCTION(1, "TRACED14"),
STM32_FUNCTION(2, "HDP6"),
@@ -1856,7 +1856,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(129, "PI1"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI1"),
STM32_FUNCTION(1, "TRACED15"),
STM32_FUNCTION(2, "HDP7"),
@@ -1872,7 +1872,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(130, "PI2"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI2"),
STM32_FUNCTION(4, "LPTIM1_ETR"),
STM32_FUNCTION(5, "SAI4_SCK_B"),
@@ -1885,7 +1885,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(131, "PI3"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI3"),
STM32_FUNCTION(4, "LPTIM1_IN2"),
STM32_FUNCTION(5, "SAI4_SD_B"),
@@ -1898,7 +1898,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(132, "PI4"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI4"),
STM32_FUNCTION(4, "LPTIM1_CH1"),
STM32_FUNCTION(5, "SAI4_FS_B"),
@@ -1910,7 +1910,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(133, "PI5"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI5"),
STM32_FUNCTION(3, "SPI5_MOSI"),
STM32_FUNCTION(4, "SPI1_MOSI I2S1_SDO"),
@@ -1924,7 +1924,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(134, "PI6"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI6"),
STM32_FUNCTION(2, "MCO1"),
STM32_FUNCTION(7, "USART3_TX"),
@@ -1936,7 +1936,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(135, "PI7"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI7"),
STM32_FUNCTION(7, "USART3_RX"),
STM32_FUNCTION(8, "TIM2_CH1"),
@@ -1947,14 +1947,14 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(136, "PI8"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI8"),
STM32_FUNCTION(16, "EVENTOUT"),
STM32_FUNCTION(17, "ANALOG")
),
STM32_PIN_PKG(
PINCTRL_PIN(137, "PI9"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI9"),
STM32_FUNCTION(2, "SPI7_MOSI"),
STM32_FUNCTION(3, "SPI2_MOSI I2S2_SDO"),
@@ -1970,7 +1970,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(138, "PI10"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI10"),
STM32_FUNCTION(2, "SAI1_SCK_A"),
STM32_FUNCTION(3, "SPI1_SCK I2S1_CK"),
@@ -1986,7 +1986,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(139, "PI11"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI11"),
STM32_FUNCTION(3, "I2S2_MCK"),
STM32_FUNCTION(6, "UART8_TX"),
@@ -1999,7 +1999,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(140, "PI12"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOI12"),
STM32_FUNCTION(3, "SPI4_NSS"),
STM32_FUNCTION(8, "FDCAN3_RX"),
@@ -2011,7 +2011,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(141, "PI13"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOI13"),
STM32_FUNCTION(3, "SPI4_MOSI"),
STM32_FUNCTION(5, "FDCAN2_RX"),
@@ -2023,7 +2023,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(142, "PI14"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOI14"),
STM32_FUNCTION(3, "SPI2_NSS I2S2_WS"),
STM32_FUNCTION(6, "MDF1_SDI1"),
@@ -2037,7 +2037,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(143, "PI15"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOI15"),
STM32_FUNCTION(3, "I2S2_MCK"),
STM32_FUNCTION(4, "UART4_RX"),
@@ -2052,7 +2052,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(144, "PJ0"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ0"),
STM32_FUNCTION(3, "SPI5_MOSI"),
STM32_FUNCTION(5, "PCIE_CLKREQN"),
@@ -2067,7 +2067,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(145, "PJ1"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ1"),
STM32_FUNCTION(7, "USART6_RX"),
STM32_FUNCTION(9, "TIM8_CH1N"),
@@ -2080,7 +2080,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(146, "PJ2"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ2"),
STM32_FUNCTION(5, "SAI2_SD_B"),
STM32_FUNCTION(7, "UART9_RTS"),
@@ -2092,7 +2092,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(147, "PJ3"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ3"),
STM32_FUNCTION(3, "SPI5_NSS"),
STM32_FUNCTION(4, "SAI2_FS_A"),
@@ -2105,7 +2105,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(148, "PJ4"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ4"),
STM32_FUNCTION(4, "SAI2_FS_B"),
STM32_FUNCTION(6, "MDF1_CCK1"),
@@ -2118,7 +2118,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(149, "PJ5"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ5"),
STM32_FUNCTION(3, "SPI5_MISO"),
STM32_FUNCTION(4, "SAI2_SCK_B"),
@@ -2131,7 +2131,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(150, "PJ6"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ6"),
STM32_FUNCTION(3, "SPI7_MOSI"),
STM32_FUNCTION(5, "SAI4_SD_A"),
@@ -2145,7 +2145,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(151, "PJ7"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ7"),
STM32_FUNCTION(3, "SPI5_MISO"),
STM32_FUNCTION(5, "SAI2_MCLK_B"),
@@ -2160,7 +2160,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(152, "PJ8"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ8"),
STM32_FUNCTION(3, "SPI5_SCK"),
STM32_FUNCTION(6, "SAI4_CK2"),
@@ -2173,7 +2173,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(153, "PJ9"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ9"),
STM32_FUNCTION(3, "SPI4_RDY"),
STM32_FUNCTION(8, "TIM12_CH1"),
@@ -2185,7 +2185,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(154, "PJ10"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ10"),
STM32_FUNCTION(8, "TIM12_CH2"),
STM32_FUNCTION(9, "TIM8_ETR"),
@@ -2198,7 +2198,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(155, "PJ11"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ11"),
STM32_FUNCTION(3, "SPI5_RDY"),
STM32_FUNCTION(4, "SAI2_SCK_A"),
@@ -2212,7 +2212,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(156, "PJ12"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ12"),
STM32_FUNCTION(4, "SAI2_SD_A"),
STM32_FUNCTION(7, "UART9_RX"),
@@ -2227,7 +2227,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(157, "PJ13"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ13"),
STM32_FUNCTION(4, "SAI2_MCLK_A"),
STM32_FUNCTION(7, "UART9_TX"),
@@ -2241,7 +2241,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(158, "PJ14"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ14"),
STM32_FUNCTION(3, "SPI4_SCK"),
STM32_FUNCTION(8, "FDCAN3_TX"),
@@ -2252,7 +2252,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(159, "PJ15"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOJ15"),
STM32_FUNCTION(1, "TRACED7"),
STM32_FUNCTION(2, "HDP7"),
@@ -2266,7 +2266,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(160, "PK0"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOK0"),
STM32_FUNCTION(3, "SPI2_MISO I2S2_SDI"),
STM32_FUNCTION(4, "SPDIFRX1_IN2"),
@@ -2281,7 +2281,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(161, "PK1"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOK1"),
STM32_FUNCTION(3, "SPI2_MOSI I2S2_SDO"),
STM32_FUNCTION(6, "MDF1_SDI2"),
@@ -2296,7 +2296,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(162, "PK2"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOK2"),
STM32_FUNCTION(3, "SPI7_NSS"),
STM32_FUNCTION(5, "SAI4_SCK_A"),
@@ -2311,7 +2311,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(163, "PK3"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOK3"),
STM32_FUNCTION(3, "SPI7_RDY"),
STM32_FUNCTION(6, "MDF1_CKI1"),
@@ -2325,7 +2325,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(164, "PK4"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOK4"),
STM32_FUNCTION(3, "SPI7_MISO"),
STM32_FUNCTION(4, "UART4_TX"),
@@ -2340,7 +2340,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(165, "PK5"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOK5"),
STM32_FUNCTION(3, "SPI2_RDY"),
STM32_FUNCTION(6, "MDF1_CKI0"),
@@ -2355,7 +2355,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(166, "PK6"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOK6"),
STM32_FUNCTION(3, "SPI7_SCK"),
STM32_FUNCTION(5, "SAI4_MCLK_A"),
@@ -2371,7 +2371,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(167, "PK7"),
- STM32MP_PKG_AI,
+ BIT(STM32_PKG_AI),
STM32_FUNCTION(0, "GPIOK7"),
STM32_FUNCTION(6, "MDF1_SDI0"),
STM32_FUNCTION(7, "USART1_RX"),
@@ -2389,7 +2389,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
static const struct stm32_desc_pin stm32mp257_z_pins[] = {
STM32_PIN_PKG(
PINCTRL_PIN(400, "PZ0"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ0"),
STM32_FUNCTION(3, "LPTIM3_IN1"),
STM32_FUNCTION(4, "SPI8_MOSI"),
@@ -2404,7 +2404,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(401, "PZ1"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ1"),
STM32_FUNCTION(3, "LPTIM3_CH1"),
STM32_FUNCTION(4, "SPI8_MISO"),
@@ -2419,7 +2419,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(402, "PZ2"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ2"),
STM32_FUNCTION(3, "LPTIM3_CH1"),
STM32_FUNCTION(4, "SPI8_SCK"),
@@ -2433,7 +2433,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(403, "PZ3"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ3"),
STM32_FUNCTION(1, "DBTRGI"),
STM32_FUNCTION(2, "DBTRGO"),
@@ -2451,7 +2451,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(404, "PZ4"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ4"),
STM32_FUNCTION(1, "DBTRGI"),
STM32_FUNCTION(2, "DBTRGO"),
@@ -2468,7 +2468,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(405, "PZ5"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ5"),
STM32_FUNCTION(2, "MCO1"),
STM32_FUNCTION(3, "LPTIM3_ETR"),
@@ -2482,7 +2482,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(406, "PZ6"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ6"),
STM32_FUNCTION(1, "DBTRGI"),
STM32_FUNCTION(2, "DBTRGO"),
@@ -2497,7 +2497,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(407, "PZ7"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ7"),
STM32_FUNCTION(4, "SPI8_MOSI"),
STM32_FUNCTION(5, "MDF1_CCK1"),
@@ -2510,7 +2510,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(408, "PZ8"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ8"),
STM32_FUNCTION(3, "LPTIM3_IN1"),
STM32_FUNCTION(4, "SPI8_MISO"),
@@ -2525,7 +2525,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(409, "PZ9"),
- STM32MP_PKG_AI | STM32MP_PKG_AK | STM32MP_PKG_AL,
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ9"),
STM32_FUNCTION(2, "MCO2"),
STM32_FUNCTION(4, "SPI8_RDY"),
--
2.34.1
^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v2 02/15] dt-bindings: pinctrl: stm32: use strings for enum property 'st,package'
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 01/15] pinctrl: stm32: accept string value for property 'st,package' Antonio Borneo
@ 2025-11-18 16:19 ` Antonio Borneo
2025-11-19 7:27 ` Krzysztof Kozlowski
2025-11-19 14:16 ` Linus Walleij
2025-11-18 16:19 ` [PATCH v2 03/15] arm: dts: stm32: update property 'st,package' to new bindings Antonio Borneo
` (12 subsequent siblings)
14 siblings, 2 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet
The property 'st,package' reports the SoC package used in the
board DT and is used to inform the driver about which pins are
available for use by the pinctrl driver.
It has historically been declared as an uint32 enum, where each
value is a power of 2.
Deprecate the use of the numeric value and replace it with more
readable string values.
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
.../bindings/pinctrl/st,stm32-pinctrl.yaml | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
index 76d956b4a5372..73277f515a8fe 100644
--- a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
@@ -58,11 +58,19 @@ properties:
- description: The field mask of IRQ mux, needed if different of 0xf
st,package:
- description:
- Indicates the SOC package used.
- More details in include/dt-bindings/pinctrl/stm32-pinfunc.h
- $ref: /schemas/types.yaml#/definitions/uint32
- enum: [0x1, 0x2, 0x4, 0x8, 0x100, 0x400, 0x800]
+ description: Indicates the SOC package used.
+ oneOf:
+ - enum:
+ [0x1, 0x2, 0x4, 0x8, 0x100, 0x400, 0x800]
+ deprecated: true
+ - enum:
+ - AA
+ - AB
+ - AC
+ - AD
+ - AI
+ - AK
+ - AL
patternProperties:
'^gpio@[0-9a-f]*$':
--
2.34.1
^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v2 03/15] arm: dts: stm32: update property 'st,package' to new bindings
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 01/15] pinctrl: stm32: accept string value for property 'st,package' Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 02/15] dt-bindings: pinctrl: stm32: use strings for enum " Antonio Borneo
@ 2025-11-18 16:19 ` Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 04/15] arm64: dts: st: " Antonio Borneo
` (11 subsequent siblings)
14 siblings, 0 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet
The property 'st,package' reports the SoC package used in the
board DT and is used to inform the driver about which pins are
available for use by the pinctrl driver.
Use the new bindings where 'st,package' value is a string.
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
arch/arm/boot/dts/st/stm32mp15xxaa-pinctrl.dtsi | 4 ++--
arch/arm/boot/dts/st/stm32mp15xxab-pinctrl.dtsi | 2 +-
arch/arm/boot/dts/st/stm32mp15xxac-pinctrl.dtsi | 4 ++--
arch/arm/boot/dts/st/stm32mp15xxad-pinctrl.dtsi | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/arm/boot/dts/st/stm32mp15xxaa-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32mp15xxaa-pinctrl.dtsi
index 04f7a43ad66f9..a5dc0badec69a 100644
--- a/arch/arm/boot/dts/st/stm32mp15xxaa-pinctrl.dtsi
+++ b/arch/arm/boot/dts/st/stm32mp15xxaa-pinctrl.dtsi
@@ -5,7 +5,7 @@
*/
&pinctrl {
- st,package = <STM32MP_PKG_AA>;
+ st,package = "AA";
gpioa: gpio@50002000 {
status = "okay";
@@ -75,7 +75,7 @@ gpiok: gpio@5000c000 {
};
&pinctrl_z {
- st,package = <STM32MP_PKG_AA>;
+ st,package = "AA";
gpioz: gpio@54004000 {
status = "okay";
diff --git a/arch/arm/boot/dts/st/stm32mp15xxab-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32mp15xxab-pinctrl.dtsi
index 328dad140e9b0..fbb22cca9ae00 100644
--- a/arch/arm/boot/dts/st/stm32mp15xxab-pinctrl.dtsi
+++ b/arch/arm/boot/dts/st/stm32mp15xxab-pinctrl.dtsi
@@ -5,7 +5,7 @@
*/
&pinctrl {
- st,package = <STM32MP_PKG_AB>;
+ st,package = "AB";
gpioa: gpio@50002000 {
status = "okay";
diff --git a/arch/arm/boot/dts/st/stm32mp15xxac-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32mp15xxac-pinctrl.dtsi
index 7eaa245f44db4..f019611dbf0d6 100644
--- a/arch/arm/boot/dts/st/stm32mp15xxac-pinctrl.dtsi
+++ b/arch/arm/boot/dts/st/stm32mp15xxac-pinctrl.dtsi
@@ -5,7 +5,7 @@
*/
&pinctrl {
- st,package = <STM32MP_PKG_AC>;
+ st,package = "AC";
gpioa: gpio@50002000 {
status = "okay";
@@ -63,7 +63,7 @@ gpioi: gpio@5000a000 {
};
&pinctrl_z {
- st,package = <STM32MP_PKG_AC>;
+ st,package = "AC";
gpioz: gpio@54004000 {
status = "okay";
diff --git a/arch/arm/boot/dts/st/stm32mp15xxad-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32mp15xxad-pinctrl.dtsi
index b63e207de2166..ac304329e5dcd 100644
--- a/arch/arm/boot/dts/st/stm32mp15xxad-pinctrl.dtsi
+++ b/arch/arm/boot/dts/st/stm32mp15xxad-pinctrl.dtsi
@@ -5,7 +5,7 @@
*/
&pinctrl {
- st,package = <STM32MP_PKG_AD>;
+ st,package = "AD";
gpioa: gpio@50002000 {
status = "okay";
--
2.34.1
^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v2 04/15] arm64: dts: st: update property 'st,package' to new bindings
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
` (2 preceding siblings ...)
2025-11-18 16:19 ` [PATCH v2 03/15] arm: dts: stm32: update property 'st,package' to new bindings Antonio Borneo
@ 2025-11-18 16:19 ` Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 05/15] pinctrl: stm32: add new package to stm32mp257 pinctrl support Antonio Borneo
` (10 subsequent siblings)
14 siblings, 0 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet
The property 'st,package' reports the SoC package used in the
board DT and is used to inform the driver about which pins are
available for use by the pinctrl driver.
Use the new bindings where 'st,package' value is a string.
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp25xxai-pinctrl.dtsi | 2 +-
arch/arm64/boot/dts/st/stm32mp25xxak-pinctrl.dtsi | 2 +-
arch/arm64/boot/dts/st/stm32mp25xxal-pinctrl.dtsi | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/st/stm32mp25xxai-pinctrl.dtsi b/arch/arm64/boot/dts/st/stm32mp25xxai-pinctrl.dtsi
index abdbc7aebc7f1..c1dccdb634dff 100644
--- a/arch/arm64/boot/dts/st/stm32mp25xxai-pinctrl.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp25xxai-pinctrl.dtsi
@@ -5,7 +5,7 @@
*/
&pinctrl {
- st,package = <STM32MP_PKG_AI>;
+ st,package = "AI";
gpioa: gpio@44240000 {
status = "okay";
diff --git a/arch/arm64/boot/dts/st/stm32mp25xxak-pinctrl.dtsi b/arch/arm64/boot/dts/st/stm32mp25xxak-pinctrl.dtsi
index 2e0d4d349d143..b485056801c92 100644
--- a/arch/arm64/boot/dts/st/stm32mp25xxak-pinctrl.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp25xxak-pinctrl.dtsi
@@ -5,7 +5,7 @@
*/
&pinctrl {
- st,package = <STM32MP_PKG_AK>;
+ st,package = "AK";
gpioa: gpio@44240000 {
status = "okay";
diff --git a/arch/arm64/boot/dts/st/stm32mp25xxal-pinctrl.dtsi b/arch/arm64/boot/dts/st/stm32mp25xxal-pinctrl.dtsi
index 2406e972554c1..1e55ac283fab7 100644
--- a/arch/arm64/boot/dts/st/stm32mp25xxal-pinctrl.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp25xxal-pinctrl.dtsi
@@ -5,7 +5,7 @@
*/
&pinctrl {
- st,package = <STM32MP_PKG_AL>;
+ st,package = "AL";
gpioa: gpio@44240000 {
status = "okay";
--
2.34.1
^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v2 05/15] pinctrl: stm32: add new package to stm32mp257 pinctrl support
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
` (3 preceding siblings ...)
2025-11-18 16:19 ` [PATCH v2 04/15] arm64: dts: st: " Antonio Borneo
@ 2025-11-18 16:19 ` Antonio Borneo
2025-11-20 4:25 ` kernel test robot
2025-11-18 16:19 ` [PATCH v2 06/15] dt-bindings: " Antonio Borneo
` (9 subsequent siblings)
14 siblings, 1 reply; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet, Clément Le Goffic
From: Clément Le Goffic <clement.legoffic@foss.st.com>
Add the package 'AJ' to the list of supported SoC packages for
stm32mp257 pinctrl.
It corresponds to the package type TFBGA361.
Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com>
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
drivers/pinctrl/stm32/pinctrl-stm32.c | 1 +
drivers/pinctrl/stm32/pinctrl-stm32.h | 1 +
drivers/pinctrl/stm32/pinctrl-stm32mp257.c | 288 ++++++++++-----------
3 files changed, 146 insertions(+), 144 deletions(-)
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c
index 0f5ab585e4bbb..97995ac505786 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32.c
+++ b/drivers/pinctrl/stm32/pinctrl-stm32.c
@@ -141,6 +141,7 @@ static const char * const stm32_pkgs[] = {
[STM32_PKG_AC] = "AC",
[STM32_PKG_AD] = "AD",
[STM32_PKG_AI] = "AI",
+ [STM32_PKG_AI] = "AJ",
[STM32_PKG_AK] = "AK",
[STM32_PKG_AL] = "AL",
};
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.h b/drivers/pinctrl/stm32/pinctrl-stm32.h
index 6761024ce691a..051597b00f1f5 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32.h
+++ b/drivers/pinctrl/stm32/pinctrl-stm32.h
@@ -31,6 +31,7 @@ enum stm32_pkg {
STM32_PKG_AC = 2, /* do not change */
STM32_PKG_AD = 3, /* do not change */
STM32_PKG_AI = 8, /* do not change */
+ STM32_PKG_AJ,
STM32_PKG_AK = 10, /* do not change */
STM32_PKG_AL = 11, /* do not change */
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32mp257.c b/drivers/pinctrl/stm32/pinctrl-stm32mp257.c
index 346d5a10c6c8a..4808eea93f1bd 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32mp257.c
+++ b/drivers/pinctrl/stm32/pinctrl-stm32mp257.c
@@ -13,7 +13,7 @@
static const struct stm32_desc_pin stm32mp257_pins[] = {
STM32_PIN_PKG(
PINCTRL_PIN(0, "PA0"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA0"),
STM32_FUNCTION(2, "LPTIM1_CH2"),
STM32_FUNCTION(3, "SPI5_RDY"),
@@ -31,7 +31,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(1, "PA1"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA1"),
STM32_FUNCTION(3, "SPI6_MISO"),
STM32_FUNCTION(5, "SAI3_SD_A"),
@@ -48,7 +48,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(2, "PA2"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA2"),
STM32_FUNCTION(2, "LPTIM2_IN1"),
STM32_FUNCTION(3, "SPI7_MISO"),
@@ -64,7 +64,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(3, "PA3"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA3"),
STM32_FUNCTION(2, "LPTIM2_ETR"),
STM32_FUNCTION(3, "SPI7_MOSI"),
@@ -81,7 +81,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(4, "PA4"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA4"),
STM32_FUNCTION(7, "USART2_TX"),
STM32_FUNCTION(8, "FDCAN2_TX"),
@@ -94,7 +94,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(5, "PA5"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA5"),
STM32_FUNCTION(4, "SPI4_MOSI"),
STM32_FUNCTION(5, "SAI2_MCLK_B"),
@@ -111,7 +111,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(6, "PA6"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA6"),
STM32_FUNCTION(4, "SPI4_SCK"),
STM32_FUNCTION(5, "SAI2_FS_B"),
@@ -128,7 +128,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(7, "PA7"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA7"),
STM32_FUNCTION(3, "AUDIOCLK"),
STM32_FUNCTION(4, "SPI6_RDY"),
@@ -148,7 +148,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(8, "PA8"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA8"),
STM32_FUNCTION(2, "LPTIM2_CH2"),
STM32_FUNCTION(3, "SPI7_NSS"),
@@ -163,7 +163,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(9, "PA9"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA9"),
STM32_FUNCTION(4, "SPI4_NSS"),
STM32_FUNCTION(5, "SAI2_SCK_B"),
@@ -179,7 +179,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(10, "PA10"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA10"),
STM32_FUNCTION(4, "SPI4_MISO"),
STM32_FUNCTION(5, "SAI2_SD_B"),
@@ -195,7 +195,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(11, "PA11"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA11"),
STM32_FUNCTION(2, "SPI8_SCK"),
STM32_FUNCTION(3, "LPTIM2_CH1"),
@@ -207,7 +207,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(12, "PA12"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA12"),
STM32_FUNCTION(3, "SPI6_MOSI"),
STM32_FUNCTION(5, "SAI3_FS_A"),
@@ -220,7 +220,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(13, "PA13"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA13"),
STM32_FUNCTION(2, "SPI8_RDY"),
STM32_FUNCTION(3, "I2S3_MCK"),
@@ -234,7 +234,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(14, "PA14"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA14"),
STM32_FUNCTION(2, "SPI8_NSS"),
STM32_FUNCTION(3, "LPTIM2_CH2"),
@@ -246,7 +246,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(15, "PA15"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOA15"),
STM32_FUNCTION(3, "SPI3_MISO I2S3_SDI"),
STM32_FUNCTION(7, "USART2_RX"),
@@ -257,7 +257,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(16, "PB0"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB0"),
STM32_FUNCTION(3, "SPI2_SCK I2S2_CK"),
STM32_FUNCTION(7, "USART1_CK"),
@@ -269,7 +269,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(17, "PB1"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB1"),
STM32_FUNCTION(2, "SPI3_NSS I2S3_WS"),
STM32_FUNCTION(8, "TIM16_CH1N"),
@@ -281,7 +281,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(18, "PB2"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB2"),
STM32_FUNCTION(3, "SPI2_MOSI I2S2_SDO"),
STM32_FUNCTION(6, "MDF1_CKI3"),
@@ -294,7 +294,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(19, "PB3"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB3"),
STM32_FUNCTION(3, "SPI2_NSS I2S2_WS"),
STM32_FUNCTION(6, "MDF1_SDI3"),
@@ -306,7 +306,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(20, "PB4"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB4"),
STM32_FUNCTION(3, "SPI2_RDY"),
STM32_FUNCTION(4, "UART4_CTS"),
@@ -322,7 +322,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(21, "PB5"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB5"),
STM32_FUNCTION(3, "I2S2_MCK"),
STM32_FUNCTION(4, "UART4_RTS"),
@@ -339,7 +339,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(22, "PB6"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB6"),
STM32_FUNCTION(3, "SPI2_MISO I2S2_SDI"),
STM32_FUNCTION(4, "UART4_RX"),
@@ -353,7 +353,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(23, "PB7"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB7"),
STM32_FUNCTION(2, "SPI3_SCK I2S3_CK"),
STM32_FUNCTION(4, "UART4_TX"),
@@ -368,7 +368,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(24, "PB8"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB8"),
STM32_FUNCTION(2, "SPI3_MOSI I2S3_SDO"),
STM32_FUNCTION(5, "PCIE_CLKREQN"),
@@ -382,7 +382,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(25, "PB9"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB9"),
STM32_FUNCTION(2, "SPI3_RDY"),
STM32_FUNCTION(7, "USART1_RTS"),
@@ -397,7 +397,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(26, "PB10"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB10"),
STM32_FUNCTION(2, "SPI3_MISO I2S3_SDI"),
STM32_FUNCTION(7, "USART1_RX"),
@@ -409,7 +409,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(27, "PB11"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB11"),
STM32_FUNCTION(2, "I2S3_MCK"),
STM32_FUNCTION(7, "USART1_CTS"),
@@ -425,7 +425,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(28, "PB12"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB12"),
STM32_FUNCTION(6, "UART8_CTS"),
STM32_FUNCTION(8, "TIM13_CH1"),
@@ -438,7 +438,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(29, "PB13"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB13"),
STM32_FUNCTION(3, "SPI7_SCK"),
STM32_FUNCTION(5, "SAI1_SD_B"),
@@ -451,7 +451,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(30, "PB14"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB14"),
STM32_FUNCTION(3, "SPI2_SCK I2S2_CK"),
STM32_FUNCTION(6, "MDF1_CKI7"),
@@ -465,7 +465,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(31, "PB15"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOB15"),
STM32_FUNCTION(2, "LPTIM1_IN2"),
STM32_FUNCTION(3, "SPI5_SCK"),
@@ -483,7 +483,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(32, "PC0"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC0"),
STM32_FUNCTION(2, "LPTIM1_CH1"),
STM32_FUNCTION(4, "SPI6_SCK"),
@@ -499,7 +499,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(33, "PC1"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC1"),
STM32_FUNCTION(3, "SPI3_MOSI I2S3_SDO"),
STM32_FUNCTION(7, "USART2_TX"),
@@ -510,7 +510,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(34, "PC2"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC2"),
STM32_FUNCTION(2, "SPI8_MOSI"),
STM32_FUNCTION(3, "LPTIM2_IN1"),
@@ -523,7 +523,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(35, "PC3"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC3"),
STM32_FUNCTION(2, "LPTIM1_IN2"),
STM32_FUNCTION(3, "SPI3_NSS I2S3_WS"),
@@ -539,7 +539,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(36, "PC4"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC4"),
STM32_FUNCTION(4, "SPI6_MISO"),
STM32_FUNCTION(5, "SAI3_FS_B"),
@@ -551,7 +551,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(37, "PC5"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC5"),
STM32_FUNCTION(3, "SPDIFRX1_IN1"),
STM32_FUNCTION(6, "MDF1_SDI1"),
@@ -567,7 +567,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(38, "PC6"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC6"),
STM32_FUNCTION(2, "RTC_REFIN"),
STM32_FUNCTION(3, "SPDIFRX1_IN0"),
@@ -584,7 +584,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(39, "PC7"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC7"),
STM32_FUNCTION(4, "SPI6_MOSI"),
STM32_FUNCTION(5, "SAI3_SD_B"),
@@ -598,7 +598,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(40, "PC8"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC8"),
STM32_FUNCTION(2, "LPTIM1_ETR"),
STM32_FUNCTION(4, "SPI6_NSS"),
@@ -614,7 +614,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(41, "PC9"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC9"),
STM32_FUNCTION(2, "MCO1"),
STM32_FUNCTION(3, "SPI3_MISO I2S3_SDI"),
@@ -632,7 +632,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(42, "PC10"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC10"),
STM32_FUNCTION(3, "SPI3_MOSI I2S3_SDO"),
STM32_FUNCTION(8, "LPTIM4_ETR"),
@@ -648,7 +648,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(43, "PC11"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC11"),
STM32_FUNCTION(2, "LPTIM1_CH1"),
STM32_FUNCTION(3, "SPI5_NSS"),
@@ -666,7 +666,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(44, "PC12"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC12"),
STM32_FUNCTION(2, "LPTIM1_CH2"),
STM32_FUNCTION(4, "I3C3_SCL"),
@@ -682,14 +682,14 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(45, "PC13"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOC13"),
STM32_FUNCTION(16, "EVENTOUT"),
STM32_FUNCTION(17, "ANALOG")
),
STM32_PIN_PKG(
PINCTRL_PIN(48, "PD0"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD0"),
STM32_FUNCTION(1, "TRACECLK"),
STM32_FUNCTION(2, "HDP0"),
@@ -706,7 +706,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(49, "PD1"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD1"),
STM32_FUNCTION(2, "HDP1"),
STM32_FUNCTION(3, "SPI1_MISO I2S1_SDI"),
@@ -725,7 +725,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(50, "PD2"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD2"),
STM32_FUNCTION(2, "HDP2"),
STM32_FUNCTION(3, "SPI1_NSS I2S1_WS"),
@@ -743,7 +743,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(51, "PD3"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD3"),
STM32_FUNCTION(2, "SAI1_MCLK_A"),
STM32_FUNCTION(3, "SPI2_SCK I2S2_CK"),
@@ -760,7 +760,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(52, "PD4"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD4"),
STM32_FUNCTION(1, "TRACED0"),
STM32_FUNCTION(2, "SPI4_MISO"),
@@ -776,7 +776,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(53, "PD5"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD5"),
STM32_FUNCTION(1, "TRACED1"),
STM32_FUNCTION(2, "SPI4_NSS"),
@@ -792,7 +792,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(54, "PD6"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD6"),
STM32_FUNCTION(1, "TRACED2"),
STM32_FUNCTION(2, "SPI4_MOSI"),
@@ -808,7 +808,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(55, "PD7"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD7"),
STM32_FUNCTION(1, "TRACED3"),
STM32_FUNCTION(2, "SPI4_SCK"),
@@ -824,7 +824,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(56, "PD8"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD8"),
STM32_FUNCTION(1, "TRACED4"),
STM32_FUNCTION(2, "SPI4_RDY"),
@@ -843,7 +843,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(57, "PD9"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD9"),
STM32_FUNCTION(1, "TRACED5"),
STM32_FUNCTION(2, "HDP6"),
@@ -861,7 +861,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(58, "PD10"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD10"),
STM32_FUNCTION(1, "TRACED6"),
STM32_FUNCTION(2, "HDP7"),
@@ -880,7 +880,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(59, "PD11"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD11"),
STM32_FUNCTION(1, "TRACED7"),
STM32_FUNCTION(3, "SPI1_SCK I2S1_CK"),
@@ -899,7 +899,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(60, "PD12"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD12"),
STM32_FUNCTION(2, "SPI7_MISO"),
STM32_FUNCTION(3, "SPI2_MISO I2S2_SDI"),
@@ -914,7 +914,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(61, "PD13"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD13"),
STM32_FUNCTION(3, "SPI2_NSS I2S2_WS"),
STM32_FUNCTION(6, "MDF1_SDI7"),
@@ -928,7 +928,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(62, "PD14"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD14"),
STM32_FUNCTION(3, "I2S1_MCK"),
STM32_FUNCTION(8, "FDCAN1_RX"),
@@ -942,7 +942,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(63, "PD15"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOD15"),
STM32_FUNCTION(2, "SPI1_RDY"),
STM32_FUNCTION(6, "DSI_TE"),
@@ -959,7 +959,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(64, "PE0"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE0"),
STM32_FUNCTION(1, "TRACED2"),
STM32_FUNCTION(2, "LPTIM2_CH1"),
@@ -972,7 +972,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(65, "PE1"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE1"),
STM32_FUNCTION(1, "TRACED3"),
STM32_FUNCTION(2, "LPTIM2_CH2"),
@@ -985,7 +985,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(66, "PE2"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE2"),
STM32_FUNCTION(2, "LPTIM2_ETR"),
STM32_FUNCTION(3, "SPI1_MISO I2S1_SDI"),
@@ -998,7 +998,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(67, "PE3"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE3"),
STM32_FUNCTION(1, "TRACECLK"),
STM32_FUNCTION(3, "SPI1_RDY"),
@@ -1012,7 +1012,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(68, "PE4"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE4"),
STM32_FUNCTION(1, "TRACED0"),
STM32_FUNCTION(2, "LPTIM2_IN1"),
@@ -1027,7 +1027,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(69, "PE5"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE5"),
STM32_FUNCTION(1, "TRACED1"),
STM32_FUNCTION(2, "LPTIM2_IN2"),
@@ -1042,7 +1042,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(70, "PE6"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE6"),
STM32_FUNCTION(2, "SPI4_RDY"),
STM32_FUNCTION(5, "SPDIFRX1_IN2"),
@@ -1056,7 +1056,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(71, "PE7"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE7"),
STM32_FUNCTION(4, "SAI4_D4"),
STM32_FUNCTION(5, "SPDIFRX1_IN3"),
@@ -1071,7 +1071,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(72, "PE8"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE8"),
STM32_FUNCTION(2, "SPI4_MOSI"),
STM32_FUNCTION(4, "SAI4_CK1"),
@@ -1085,7 +1085,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(73, "PE9"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE9"),
STM32_FUNCTION(2, "SPI4_MISO"),
STM32_FUNCTION(4, "SAI4_D2"),
@@ -1100,7 +1100,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(74, "PE10"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE10"),
STM32_FUNCTION(2, "SPI4_SCK"),
STM32_FUNCTION(4, "SAI4_D1"),
@@ -1116,7 +1116,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(75, "PE11"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE11"),
STM32_FUNCTION(3, "SPI7_SCK"),
STM32_FUNCTION(4, "SAI4_D3"),
@@ -1130,7 +1130,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(76, "PE12"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE12"),
STM32_FUNCTION(2, "SPI4_NSS"),
STM32_FUNCTION(4, "SAI4_CK2"),
@@ -1146,7 +1146,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(77, "PE13"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE13"),
STM32_FUNCTION(3, "SPI7_MISO"),
STM32_FUNCTION(5, "SAI1_SD_A"),
@@ -1159,7 +1159,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(78, "PE14"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE14"),
STM32_FUNCTION(3, "SPI7_NSS"),
STM32_FUNCTION(5, "SAI1_MCLK_A"),
@@ -1173,7 +1173,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(79, "PE15"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOE15"),
STM32_FUNCTION(3, "SPI7_MOSI"),
STM32_FUNCTION(5, "SAI1_SCK_A"),
@@ -1187,7 +1187,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(80, "PF0"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF0"),
STM32_FUNCTION(3, "SPI3_SCK I2S3_CK"),
STM32_FUNCTION(8, "FDCAN2_RX"),
@@ -1201,7 +1201,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(81, "PF1"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF1"),
STM32_FUNCTION(2, "SPI8_MISO"),
STM32_FUNCTION(3, "LPTIM2_IN2"),
@@ -1214,7 +1214,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(82, "PF2"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF2"),
STM32_FUNCTION(3, "SPI3_RDY"),
STM32_FUNCTION(7, "I2C4_SMBA"),
@@ -1229,7 +1229,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(83, "PF3"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF3"),
STM32_FUNCTION(4, "UART8_RX"),
STM32_FUNCTION(5, "SAI2_SCK_B"),
@@ -1246,7 +1246,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(84, "PF4"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF4"),
STM32_FUNCTION(2, "RTC_OUT2"),
STM32_FUNCTION(3, "SPI6_NSS"),
@@ -1263,7 +1263,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(85, "PF5"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF5"),
STM32_FUNCTION(3, "SPI6_SCK"),
STM32_FUNCTION(5, "SAI3_MCLK_A"),
@@ -1279,7 +1279,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(86, "PF6"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF6"),
STM32_FUNCTION(2, "RTC_OUT2"),
STM32_FUNCTION(4, "SAI3_MCLK_B"),
@@ -1293,7 +1293,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(87, "PF7"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF7"),
STM32_FUNCTION(3, "SPDIFRX1_IN1"),
STM32_FUNCTION(4, "SPI6_SCK"),
@@ -1307,7 +1307,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(88, "PF8"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF8"),
STM32_FUNCTION(2, "RTC_REFIN"),
STM32_FUNCTION(4, "SAI3_SCK_B"),
@@ -1323,7 +1323,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(89, "PF9"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF9"),
STM32_FUNCTION(4, "SAI3_SD_B"),
STM32_FUNCTION(5, "SAI2_SD_A"),
@@ -1337,7 +1337,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(90, "PF10"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF10"),
STM32_FUNCTION(2, "MCO2"),
STM32_FUNCTION(3, "SPI3_RDY"),
@@ -1351,7 +1351,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(91, "PF11"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF11"),
STM32_FUNCTION(2, "MCO1"),
STM32_FUNCTION(3, "SPDIFRX1_IN0"),
@@ -1366,7 +1366,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(92, "PF12"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF12"),
STM32_FUNCTION(1, "TRACECLK"),
STM32_FUNCTION(3, "SPI5_MISO"),
@@ -1380,7 +1380,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(93, "PF13"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF13"),
STM32_FUNCTION(1, "TRACED0"),
STM32_FUNCTION(2, "HDP0"),
@@ -1397,7 +1397,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(94, "PF14"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF14"),
STM32_FUNCTION(1, "TRACED1"),
STM32_FUNCTION(2, "HDP1"),
@@ -1412,7 +1412,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(95, "PF15"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOF15"),
STM32_FUNCTION(1, "TRACED2"),
STM32_FUNCTION(2, "HDP2"),
@@ -1429,7 +1429,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(96, "PG0"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG0"),
STM32_FUNCTION(2, "LPTIM1_IN1"),
STM32_FUNCTION(4, "I3C3_SDA"),
@@ -1445,7 +1445,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(97, "PG1"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG1"),
STM32_FUNCTION(2, "LPTIM1_IN1"),
STM32_FUNCTION(3, "I2S3_MCK"),
@@ -1465,7 +1465,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(98, "PG2"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG2"),
STM32_FUNCTION(2, "RTC_REFIN"),
STM32_FUNCTION(3, "I2S3_MCK"),
@@ -1483,7 +1483,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(99, "PG3"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG3"),
STM32_FUNCTION(2, "LPTIM1_ETR"),
STM32_FUNCTION(3, "SPI5_MOSI"),
@@ -1501,7 +1501,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(100, "PG4"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG4"),
STM32_FUNCTION(3, "SPI5_MISO"),
STM32_FUNCTION(4, "SAI3_FS_B"),
@@ -1517,7 +1517,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(101, "PG5"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG5"),
STM32_FUNCTION(1, "TRACED3"),
STM32_FUNCTION(2, "HDP3"),
@@ -1531,7 +1531,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(102, "PG6"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG6"),
STM32_FUNCTION(1, "TRACED4"),
STM32_FUNCTION(2, "HDP4"),
@@ -1546,7 +1546,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(103, "PG7"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG7"),
STM32_FUNCTION(1, "TRACED5"),
STM32_FUNCTION(2, "HDP5"),
@@ -1561,7 +1561,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(104, "PG8"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG8"),
STM32_FUNCTION(1, "TRACED6"),
STM32_FUNCTION(2, "HDP6"),
@@ -1578,7 +1578,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(105, "PG9"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG9"),
STM32_FUNCTION(1, "TRACED7"),
STM32_FUNCTION(6, "UART5_TX"),
@@ -1590,7 +1590,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(106, "PG10"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG10"),
STM32_FUNCTION(1, "TRACED8"),
STM32_FUNCTION(2, "HDP0"),
@@ -1603,7 +1603,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(107, "PG11"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG11"),
STM32_FUNCTION(1, "TRACED9"),
STM32_FUNCTION(2, "HDP1"),
@@ -1617,7 +1617,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(108, "PG12"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG12"),
STM32_FUNCTION(1, "TRACED10"),
STM32_FUNCTION(2, "HDP2"),
@@ -1631,7 +1631,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(109, "PG13"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG13"),
STM32_FUNCTION(1, "TRACED11"),
STM32_FUNCTION(2, "HDP3"),
@@ -1647,7 +1647,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(110, "PG14"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG14"),
STM32_FUNCTION(1, "TRACED12"),
STM32_FUNCTION(2, "HDP4"),
@@ -1662,7 +1662,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(111, "PG15"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOG15"),
STM32_FUNCTION(1, "TRACED13"),
STM32_FUNCTION(2, "HDP5"),
@@ -1677,7 +1677,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(114, "PH2"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH2"),
STM32_FUNCTION(2, "LPTIM2_CH1"),
STM32_FUNCTION(3, "SPI7_RDY"),
@@ -1693,7 +1693,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(115, "PH3"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH3"),
STM32_FUNCTION(3, "SPI1_NSS I2S1_WS"),
STM32_FUNCTION(7, "UART7_RX"),
@@ -1706,7 +1706,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(116, "PH4"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH4"),
STM32_FUNCTION(7, "UART7_TX"),
STM32_FUNCTION(8, "TIM17_BKIN"),
@@ -1721,7 +1721,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(117, "PH5"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH5"),
STM32_FUNCTION(5, "SAI2_FS_A"),
STM32_FUNCTION(7, "UART8_CTS"),
@@ -1736,7 +1736,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(118, "PH6"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH6"),
STM32_FUNCTION(2, "LPTIM2_IN2"),
STM32_FUNCTION(5, "SAI1_MCLK_B"),
@@ -1751,7 +1751,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(119, "PH7"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH7"),
STM32_FUNCTION(3, "SPI1_MOSI I2S1_SDO"),
STM32_FUNCTION(5, "UART4_TX"),
@@ -1765,7 +1765,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(120, "PH8"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH8"),
STM32_FUNCTION(3, "SPI1_MISO I2S1_SDI"),
STM32_FUNCTION(4, "SPDIFRX1_IN3"),
@@ -1780,7 +1780,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(121, "PH9"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH9"),
STM32_FUNCTION(4, "SPI6_NSS"),
STM32_FUNCTION(5, "SAI3_MCLK_A"),
@@ -1793,7 +1793,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(122, "PH10"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH10"),
STM32_FUNCTION(3, "SPI1_SCK I2S1_CK"),
STM32_FUNCTION(4, "SPI6_MOSI"),
@@ -1806,7 +1806,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(123, "PH11"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH11"),
STM32_FUNCTION(4, "SPI6_MISO"),
STM32_FUNCTION(5, "SAI3_FS_A"),
@@ -1818,7 +1818,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(124, "PH12"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH12"),
STM32_FUNCTION(3, "SPI3_NSS I2S3_WS"),
STM32_FUNCTION(4, "SPI6_MISO"),
@@ -1829,7 +1829,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(125, "PH13"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOH13"),
STM32_FUNCTION(3, "SPI3_SCK I2S3_CK"),
STM32_FUNCTION(4, "SPI6_MOSI"),
@@ -1841,7 +1841,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(128, "PI0"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI0"),
STM32_FUNCTION(1, "TRACED14"),
STM32_FUNCTION(2, "HDP6"),
@@ -1856,7 +1856,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(129, "PI1"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI1"),
STM32_FUNCTION(1, "TRACED15"),
STM32_FUNCTION(2, "HDP7"),
@@ -1872,7 +1872,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(130, "PI2"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI2"),
STM32_FUNCTION(4, "LPTIM1_ETR"),
STM32_FUNCTION(5, "SAI4_SCK_B"),
@@ -1885,7 +1885,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(131, "PI3"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI3"),
STM32_FUNCTION(4, "LPTIM1_IN2"),
STM32_FUNCTION(5, "SAI4_SD_B"),
@@ -1898,7 +1898,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(132, "PI4"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI4"),
STM32_FUNCTION(4, "LPTIM1_CH1"),
STM32_FUNCTION(5, "SAI4_FS_B"),
@@ -1910,7 +1910,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(133, "PI5"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI5"),
STM32_FUNCTION(3, "SPI5_MOSI"),
STM32_FUNCTION(4, "SPI1_MOSI I2S1_SDO"),
@@ -1924,7 +1924,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(134, "PI6"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI6"),
STM32_FUNCTION(2, "MCO1"),
STM32_FUNCTION(7, "USART3_TX"),
@@ -1936,7 +1936,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(135, "PI7"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI7"),
STM32_FUNCTION(7, "USART3_RX"),
STM32_FUNCTION(8, "TIM2_CH1"),
@@ -1947,14 +1947,14 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(136, "PI8"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI8"),
STM32_FUNCTION(16, "EVENTOUT"),
STM32_FUNCTION(17, "ANALOG")
),
STM32_PIN_PKG(
PINCTRL_PIN(137, "PI9"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI9"),
STM32_FUNCTION(2, "SPI7_MOSI"),
STM32_FUNCTION(3, "SPI2_MOSI I2S2_SDO"),
@@ -1970,7 +1970,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(138, "PI10"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI10"),
STM32_FUNCTION(2, "SAI1_SCK_A"),
STM32_FUNCTION(3, "SPI1_SCK I2S1_CK"),
@@ -1986,7 +1986,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(139, "PI11"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOI11"),
STM32_FUNCTION(3, "I2S2_MCK"),
STM32_FUNCTION(6, "UART8_TX"),
@@ -2389,7 +2389,7 @@ static const struct stm32_desc_pin stm32mp257_pins[] = {
static const struct stm32_desc_pin stm32mp257_z_pins[] = {
STM32_PIN_PKG(
PINCTRL_PIN(400, "PZ0"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ0"),
STM32_FUNCTION(3, "LPTIM3_IN1"),
STM32_FUNCTION(4, "SPI8_MOSI"),
@@ -2404,7 +2404,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(401, "PZ1"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ1"),
STM32_FUNCTION(3, "LPTIM3_CH1"),
STM32_FUNCTION(4, "SPI8_MISO"),
@@ -2419,7 +2419,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(402, "PZ2"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ2"),
STM32_FUNCTION(3, "LPTIM3_CH1"),
STM32_FUNCTION(4, "SPI8_SCK"),
@@ -2433,7 +2433,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(403, "PZ3"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ3"),
STM32_FUNCTION(1, "DBTRGI"),
STM32_FUNCTION(2, "DBTRGO"),
@@ -2451,7 +2451,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(404, "PZ4"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ4"),
STM32_FUNCTION(1, "DBTRGI"),
STM32_FUNCTION(2, "DBTRGO"),
@@ -2468,7 +2468,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(405, "PZ5"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ5"),
STM32_FUNCTION(2, "MCO1"),
STM32_FUNCTION(3, "LPTIM3_ETR"),
@@ -2482,7 +2482,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(406, "PZ6"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ6"),
STM32_FUNCTION(1, "DBTRGI"),
STM32_FUNCTION(2, "DBTRGO"),
@@ -2497,7 +2497,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(407, "PZ7"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ7"),
STM32_FUNCTION(4, "SPI8_MOSI"),
STM32_FUNCTION(5, "MDF1_CCK1"),
@@ -2510,7 +2510,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(408, "PZ8"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ8"),
STM32_FUNCTION(3, "LPTIM3_IN1"),
STM32_FUNCTION(4, "SPI8_MISO"),
@@ -2525,7 +2525,7 @@ static const struct stm32_desc_pin stm32mp257_z_pins[] = {
),
STM32_PIN_PKG(
PINCTRL_PIN(409, "PZ9"),
- BIT(STM32_PKG_AI) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
+ BIT(STM32_PKG_AI) | BIT(STM32_PKG_AJ) | BIT(STM32_PKG_AK) | BIT(STM32_PKG_AL),
STM32_FUNCTION(0, "GPIOZ9"),
STM32_FUNCTION(2, "MCO2"),
STM32_FUNCTION(4, "SPI8_RDY"),
--
2.34.1
^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v2 06/15] dt-bindings: pinctrl: stm32: add new package to stm32mp257 pinctrl support
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
` (4 preceding siblings ...)
2025-11-18 16:19 ` [PATCH v2 05/15] pinctrl: stm32: add new package to stm32mp257 pinctrl support Antonio Borneo
@ 2025-11-18 16:19 ` Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 07/15] arm64: dts: st: add new package file for stm32mp25 pinctrl Antonio Borneo
` (8 subsequent siblings)
14 siblings, 0 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet
Add the package 'AJ' to the list of supported SoC packages for
stm32mp257 pinctrl.
It corresponds to the package type TFBGA361.
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
index 73277f515a8fe..27e1efee13481 100644
--- a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
@@ -69,6 +69,7 @@ properties:
- AC
- AD
- AI
+ - AJ
- AK
- AL
--
2.34.1
^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v2 07/15] arm64: dts: st: add new package file for stm32mp25 pinctrl
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
` (5 preceding siblings ...)
2025-11-18 16:19 ` [PATCH v2 06/15] dt-bindings: " Antonio Borneo
@ 2025-11-18 16:19 ` Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 08/15] pinctrl: stm32: add stm32mp215 pinctrl support Antonio Borneo
` (7 subsequent siblings)
14 siblings, 0 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet, Clément Le Goffic
From: Clément Le Goffic <clement.legoffic@foss.st.com>
There is a fourth package for stm32mp25 dies with another ballout.
This patch describes the ball-out through gpio-ranges.
STM32MPxAJ: 16*16/TFBGA 144 pins
Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com>
Signed-off-by: Antonio Maria BORNEO <antonio.borneo@foss.st.com>
---
.../boot/dts/st/stm32mp25xxaj-pinctrl.dtsi | 71 +++++++++++++++++++
1 file changed, 71 insertions(+)
create mode 100644 arch/arm64/boot/dts/st/stm32mp25xxaj-pinctrl.dtsi
diff --git a/arch/arm64/boot/dts/st/stm32mp25xxaj-pinctrl.dtsi b/arch/arm64/boot/dts/st/stm32mp25xxaj-pinctrl.dtsi
new file mode 100644
index 0000000000000..33dda09a972a7
--- /dev/null
+++ b/arch/arm64/boot/dts/st/stm32mp25xxaj-pinctrl.dtsi
@@ -0,0 +1,71 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
+/*
+ * Copyright (C) STMicroelectronics 2024-2025 - All Rights Reserved
+ * Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
+ */
+
+&pinctrl {
+ st,package = "AJ";
+
+ gpioa: gpio@44240000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 0 16>;
+ status = "okay";
+ };
+
+ gpiob: gpio@44250000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 16 16>;
+ status = "okay";
+ };
+
+ gpioc: gpio@44260000 {
+ ngpios = <14>;
+ gpio-ranges = <&pinctrl 0 32 14>;
+ status = "okay";
+ };
+
+ gpiod: gpio@44270000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 48 16>;
+ status = "okay";
+ };
+
+ gpioe: gpio@44280000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 64 16>;
+ status = "okay";
+ };
+
+ gpiof: gpio@44290000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 80 16>;
+ status = "okay";
+ };
+
+ gpiog: gpio@442a0000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 96 16>;
+ status = "okay";
+ };
+
+ gpioh: gpio@442b0000 {
+ ngpios = <12>;
+ gpio-ranges = <&pinctrl 2 114 12>;
+ status = "okay";
+ };
+
+ gpioi: gpio@442c0000 {
+ ngpios = <12>;
+ gpio-ranges = <&pinctrl 0 128 12>;
+ status = "okay";
+ };
+};
+
+&pinctrl_z {
+ gpioz: gpio@46200000 {
+ ngpios = <10>;
+ gpio-ranges = <&pinctrl_z 0 400 10>;
+ status = "okay";
+ };
+};
--
2.34.1
^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v2 08/15] pinctrl: stm32: add stm32mp215 pinctrl support
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
` (6 preceding siblings ...)
2025-11-18 16:19 ` [PATCH v2 07/15] arm64: dts: st: add new package file for stm32mp25 pinctrl Antonio Borneo
@ 2025-11-18 16:19 ` Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 09/15] dt-bindings: pinctrl: stm32: support for stm32mp215 and additional packages Antonio Borneo
` (6 subsequent siblings)
14 siblings, 0 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet
From: Amelie Delaunay <amelie.delaunay@foss.st.com>
Add stm32mp215 pinctrl support.
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
---
drivers/pinctrl/stm32/Kconfig | 6 +
drivers/pinctrl/stm32/Makefile | 1 +
drivers/pinctrl/stm32/pinctrl-stm32.c | 3 +
drivers/pinctrl/stm32/pinctrl-stm32.h | 3 +
drivers/pinctrl/stm32/pinctrl-stm32mp215.c | 1807 ++++++++++++++++++++
5 files changed, 1820 insertions(+)
create mode 100644 drivers/pinctrl/stm32/pinctrl-stm32mp215.c
diff --git a/drivers/pinctrl/stm32/Kconfig b/drivers/pinctrl/stm32/Kconfig
index 5f67e1ee66dd9..a15f0585bdae6 100644
--- a/drivers/pinctrl/stm32/Kconfig
+++ b/drivers/pinctrl/stm32/Kconfig
@@ -52,6 +52,12 @@ config PINCTRL_STM32MP157
default MACH_STM32MP157
select PINCTRL_STM32
+config PINCTRL_STM32MP215
+ tristate "STMicroelectronics STM32MP215 pin control"
+ depends on OF && HAS_IOMEM
+ default MACH_STM32MP21 || (ARCH_STM32 && ARM64)
+ select PINCTRL_STM32
+
config PINCTRL_STM32MP257
tristate "STMicroelectronics STM32MP257 pin control"
depends on OF && HAS_IOMEM
diff --git a/drivers/pinctrl/stm32/Makefile b/drivers/pinctrl/stm32/Makefile
index 98a1bbc7e16c2..3bf78bb849bbb 100644
--- a/drivers/pinctrl/stm32/Makefile
+++ b/drivers/pinctrl/stm32/Makefile
@@ -10,5 +10,6 @@ obj-$(CONFIG_PINCTRL_STM32F769) += pinctrl-stm32f769.o
obj-$(CONFIG_PINCTRL_STM32H743) += pinctrl-stm32h743.o
obj-$(CONFIG_PINCTRL_STM32MP135) += pinctrl-stm32mp135.o
obj-$(CONFIG_PINCTRL_STM32MP157) += pinctrl-stm32mp157.o
+obj-$(CONFIG_PINCTRL_STM32MP215) += pinctrl-stm32mp215.o
obj-$(CONFIG_PINCTRL_STM32MP257) += pinctrl-stm32mp257.o
obj-$(CONFIG_PINCTRL_STM32_HDP) += pinctrl-stm32-hdp.o
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c
index 97995ac505786..0887a47758c1f 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32.c
+++ b/drivers/pinctrl/stm32/pinctrl-stm32.c
@@ -144,6 +144,9 @@ static const char * const stm32_pkgs[] = {
[STM32_PKG_AI] = "AJ",
[STM32_PKG_AK] = "AK",
[STM32_PKG_AL] = "AL",
+ [STM32_PKG_AM] = "AM",
+ [STM32_PKG_AN] = "AN",
+ [STM32_PKG_AO] = "AO",
};
__diag_pop();
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.h b/drivers/pinctrl/stm32/pinctrl-stm32.h
index 051597b00f1f5..790c5de750dbc 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32.h
+++ b/drivers/pinctrl/stm32/pinctrl-stm32.h
@@ -34,6 +34,9 @@ enum stm32_pkg {
STM32_PKG_AJ,
STM32_PKG_AK = 10, /* do not change */
STM32_PKG_AL = 11, /* do not change */
+ STM32_PKG_AM,
+ STM32_PKG_AN,
+ STM32_PKG_AO,
/* keep this as last item */
STM32_PKG_MAX,
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32mp215.c b/drivers/pinctrl/stm32/pinctrl-stm32mp215.c
new file mode 100644
index 0000000000000..b963192bf1eec
--- /dev/null
+++ b/drivers/pinctrl/stm32/pinctrl-stm32mp215.c
@@ -0,0 +1,1807 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * Copyright (C) STMicroelectronics 2024-2025 - All Rights Reserved
+ * Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
+ */
+#include <linux/init.h>
+#include <linux/module.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
+
+#include "pinctrl-stm32.h"
+
+static const struct stm32_desc_pin stm32mp215_pins[] = {
+ STM32_PIN_PKG(
+ PINCTRL_PIN(0, "PA0"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOA0"),
+ STM32_FUNCTION(2, "LPTIM1_CH2"),
+ STM32_FUNCTION(3, "SPI5_RDY"),
+ STM32_FUNCTION(5, "SAI2_MCLK_B"),
+ STM32_FUNCTION(6, "UART5_TX"),
+ STM32_FUNCTION(7, "USART3_TX"),
+ STM32_FUNCTION(8, "TIM3_ETR"),
+ STM32_FUNCTION(9, "TIM5_CH2"),
+ STM32_FUNCTION(11, "ETH2_MII_RXD2"),
+ STM32_FUNCTION(13, "FMC_NL"),
+ STM32_FUNCTION(15, "DCMI_D9 PSSI_D9 DCMIPP_D9"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(1, "PA1"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOA1"),
+ STM32_FUNCTION(3, "SPI6_MISO"),
+ STM32_FUNCTION(5, "SAI3_SD_A"),
+ STM32_FUNCTION(6, "USART1_RTS"),
+ STM32_FUNCTION(7, "USART6_CK"),
+ STM32_FUNCTION(8, "TIM4_CH2"),
+ STM32_FUNCTION(9, "I2C1_SDA"),
+ STM32_FUNCTION(12, "LCD_R3"),
+ STM32_FUNCTION(14, "DCMI_D5 PSSI_D5 DCMIPP_D5"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(2, "PA2"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOA2"),
+ STM32_FUNCTION(2, "LPTIM2_IN1"),
+ STM32_FUNCTION(7, "USART1_RX"),
+ STM32_FUNCTION(9, "I3C1_SDA"),
+ STM32_FUNCTION(11, "I2C1_SDA"),
+ STM32_FUNCTION(12, "LCD_B0"),
+ STM32_FUNCTION(14, "DCMI_D3 PSSI_D3 DCMIPP_D3"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(3, "PA3"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOA3"),
+ STM32_FUNCTION(2, "LPTIM2_ETR"),
+ STM32_FUNCTION(7, "USART1_TX"),
+ STM32_FUNCTION(9, "I3C1_SCL"),
+ STM32_FUNCTION(10, "I2C3_SMBA"),
+ STM32_FUNCTION(11, "I2C1_SCL"),
+ STM32_FUNCTION(12, "LCD_B1"),
+ STM32_FUNCTION(14, "DCMI_D2 PSSI_D2 DCMIPP_D2"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(4, "PA4"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOA4"),
+ STM32_FUNCTION(7, "USART2_TX"),
+ STM32_FUNCTION(8, "FDCAN2_TX"),
+ STM32_FUNCTION(9, "TIM2_CH1"),
+ STM32_FUNCTION(11, "LCD_R1"),
+ STM32_FUNCTION(14, "ETH1_PTP_AUX_TS"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(5, "PA5"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOA5"),
+ STM32_FUNCTION(4, "SPI4_MOSI"),
+ STM32_FUNCTION(5, "SAI2_MCLK_B"),
+ STM32_FUNCTION(6, "SAI2_SD_B"),
+ STM32_FUNCTION(7, "USART2_RTS"),
+ STM32_FUNCTION(8, "FDCAN2_RX"),
+ STM32_FUNCTION(9, "TIM2_CH4"),
+ STM32_FUNCTION(11, "LCD_G0"),
+ STM32_FUNCTION(14, "DCMI_D13 PSSI_D13 DCMIPP_D13"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(6, "PA6"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOA6"),
+ STM32_FUNCTION(4, "SPI4_SCK"),
+ STM32_FUNCTION(5, "SAI2_FS_B"),
+ STM32_FUNCTION(7, "USART2_CK"),
+ STM32_FUNCTION(8, "TIM13_CH1"),
+ STM32_FUNCTION(9, "TIM2_ETR"),
+ STM32_FUNCTION(11, "LCD_G4"),
+ STM32_FUNCTION(13, "FMC_NE1"),
+ STM32_FUNCTION(14, "DCMI_D12 PSSI_D12 DCMIPP_D12"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(7, "PA7"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOA7"),
+ STM32_FUNCTION(3, "CK_IN"),
+ STM32_FUNCTION(4, "SPI6_RDY"),
+ STM32_FUNCTION(6, "MDF1_CCK0"),
+ STM32_FUNCTION(7, "USART1_CTS USART1_NSS"),
+ STM32_FUNCTION(8, "TIM4_ETR"),
+ STM32_FUNCTION(9, "I2C2_SMBA"),
+ STM32_FUNCTION(11, "LCD_B5"),
+ STM32_FUNCTION(12, "I2C3_SMBA"),
+ STM32_FUNCTION(13, "I2C1_SMBA"),
+ STM32_FUNCTION(14, "DCMI_D6 PSSI_D6 DCMIPP_D6"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(8, "PA8"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOA8"),
+ STM32_FUNCTION(2, "LPTIM2_CH2"),
+ STM32_FUNCTION(5, "SAI1_FS_B"),
+ STM32_FUNCTION(7, "USART1_CK"),
+ STM32_FUNCTION(9, "USART2_RX"),
+ STM32_FUNCTION(10, "I2C2_SCL"),
+ STM32_FUNCTION(13, "LCD_B2"),
+ STM32_FUNCTION(14, "DCMI_D4 PSSI_D4 DCMIPP_D4"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(9, "PA9"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOA9"),
+ STM32_FUNCTION(4, "SPI4_NSS"),
+ STM32_FUNCTION(5, "SAI2_SCK_B"),
+ STM32_FUNCTION(7, "USART2_CTS USART2_NSS"),
+ STM32_FUNCTION(8, "LPTIM5_ETR"),
+ STM32_FUNCTION(9, "TIM2_CH3"),
+ STM32_FUNCTION(11, "ETH1_MDC"),
+ STM32_FUNCTION(13, "LCD_G7"),
+ STM32_FUNCTION(14, "PSSI_D14 DCMIPP_D14"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(10, "PA10"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOA10"),
+ STM32_FUNCTION(4, "SPI4_MISO"),
+ STM32_FUNCTION(5, "SAI2_SD_B"),
+ STM32_FUNCTION(7, "USART2_RX"),
+ STM32_FUNCTION(8, "LPTIM5_IN1"),
+ STM32_FUNCTION(9, "TIM2_CH2"),
+ STM32_FUNCTION(11, "ETH1_MDIO"),
+ STM32_FUNCTION(13, "LCD_R6"),
+ STM32_FUNCTION(14, "PSSI_D15 DCMIPP_D15"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(11, "PA11"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOA11"),
+ STM32_FUNCTION(2, "SPI6_SCK"),
+ STM32_FUNCTION(3, "LPTIM2_CH1"),
+ STM32_FUNCTION(5, "SAI4_SD_B"),
+ STM32_FUNCTION(11, "ETH1_MII_RX_DV ETH1_RGMII_RX_CTL ETH1_RMII_CRS_DV"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(12, "PA12"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOA12"),
+ STM32_FUNCTION(3, "SPI6_MOSI"),
+ STM32_FUNCTION(5, "SAI3_FS_A"),
+ STM32_FUNCTION(8, "TIM4_CH1"),
+ STM32_FUNCTION(9, "I2C1_SCL"),
+ STM32_FUNCTION(11, "ETH1_PHY_INTN"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(13, "PA13"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOA13"),
+ STM32_FUNCTION(2, "SPI6_RDY"),
+ STM32_FUNCTION(3, "I2S3_MCK"),
+ STM32_FUNCTION(4, "LPTIM2_ETR"),
+ STM32_FUNCTION(6, "MDF1_CKI3"),
+ STM32_FUNCTION(7, "USART2_CTS USART2_NSS"),
+ STM32_FUNCTION(10, "I2C3_SMBA"),
+ STM32_FUNCTION(11, "ETH1_MII_TX_EN ETH1_RGMII_TX_CTL ETH1_RMII_TX_EN"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(14, "PA14"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOA14"),
+ STM32_FUNCTION(2, "SPI6_NSS"),
+ STM32_FUNCTION(3, "LPTIM2_CH2"),
+ STM32_FUNCTION(5, "SAI4_FS_B"),
+ STM32_FUNCTION(6, "MDF1_CCK1"),
+ STM32_FUNCTION(11, "ETH1_MII_RX_CLK ETH1_RGMII_RX_CLK ETH1_RMII_REF_CLK"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(15, "PA15"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOA15"),
+ STM32_FUNCTION(3, "SPI3_MISO I2S3_SDI"),
+ STM32_FUNCTION(7, "USART2_RX"),
+ STM32_FUNCTION(10, "I2C3_SDA"),
+ STM32_FUNCTION(11, "ETH1_MII_TXD0 ETH1_RGMII_TXD0 ETH1_RMII_TXD0"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(17, "PB1"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOB1"),
+ STM32_FUNCTION(2, "SPI3_NSS I2S3_WS"),
+ STM32_FUNCTION(8, "TIM16_CH1N"),
+ STM32_FUNCTION(13, "FMC_NCE4"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(18, "PB2"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOB2"),
+ STM32_FUNCTION(3, "SPI2_MOSI I2S2_SDO"),
+ STM32_FUNCTION(6, "MDF1_CKI3"),
+ STM32_FUNCTION(7, "TIM17_BKIN"),
+ STM32_FUNCTION(8, "TIM16_BKIN"),
+ STM32_FUNCTION(13, "FMC_AD12 FMC_D12"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(19, "PB3"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOB3"),
+ STM32_FUNCTION(3, "SPI2_NSS I2S2_WS"),
+ STM32_FUNCTION(6, "MDF1_SDI3"),
+ STM32_FUNCTION(13, "FMC_NCE3"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(21, "PB5"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOB5"),
+ STM32_FUNCTION(3, "I2S2_MCK"),
+ STM32_FUNCTION(4, "UART4_RTS"),
+ STM32_FUNCTION(5, "SAI4_SD_B"),
+ STM32_FUNCTION(10, "I2C2_SCL"),
+ STM32_FUNCTION(13, "FMC_AD8 FMC_D8"),
+ STM32_FUNCTION(14, "I3C2_SCL"),
+ STM32_FUNCTION(15, "SDMMC3_D123DIR"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(22, "PB6"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOB6"),
+ STM32_FUNCTION(3, "SPI2_MISO I2S2_SDI"),
+ STM32_FUNCTION(4, "UART4_RX"),
+ STM32_FUNCTION(5, "SAI4_SCK_B"),
+ STM32_FUNCTION(13, "FMC_AD9 FMC_D9"),
+ STM32_FUNCTION(15, "SDMMC3_D0DIR"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(23, "PB7"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOB7"),
+ STM32_FUNCTION(2, "SPI3_SCK I2S3_CK"),
+ STM32_FUNCTION(4, "UART4_TX"),
+ STM32_FUNCTION(5, "SAI4_MCLK_B"),
+ STM32_FUNCTION(10, "TIM12_CH1"),
+ STM32_FUNCTION(13, "FMC_AD10 FMC_D10"),
+ STM32_FUNCTION(15, "SDMMC3_CDIR"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(25, "PB9"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOB9"),
+ STM32_FUNCTION(2, "SPI3_RDY"),
+ STM32_FUNCTION(7, "USART1_RTS"),
+ STM32_FUNCTION(8, "FDCAN1_TX"),
+ STM32_FUNCTION(10, "TIM10_CH1"),
+ STM32_FUNCTION(13, "FMC_AD13 FMC_D13"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(26, "PB10"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOB10"),
+ STM32_FUNCTION(2, "SPI3_MISO I2S3_SDI"),
+ STM32_FUNCTION(7, "USART1_RX"),
+ STM32_FUNCTION(8, "TIM17_CH1N"),
+ STM32_FUNCTION(13, "FMC_AD15 FMC_D15"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(27, "PB11"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOB11"),
+ STM32_FUNCTION(2, "I2S3_MCK"),
+ STM32_FUNCTION(7, "USART1_CTS USART1_NSS"),
+ STM32_FUNCTION(8, "FDCAN1_RX"),
+ STM32_FUNCTION(10, "TIM12_CH2"),
+ STM32_FUNCTION(13, "FMC_AD14 FMC_D14"),
+ STM32_FUNCTION(14, "OCTOSPI1_NCS2"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(28, "PB12"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOB12"),
+ STM32_FUNCTION(8, "TIM13_CH1"),
+ STM32_FUNCTION(11, "SDMMC3_D2"),
+ STM32_FUNCTION(12, "FMC_NWAIT"),
+ STM32_FUNCTION(15, "DCMI_D12 PSSI_D12 DCMIPP_D12"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(29, "PB13"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOB13"),
+ STM32_FUNCTION(3, "SPI2_MOSI I2S2_SDO"),
+ STM32_FUNCTION(5, "SAI1_SD_B"),
+ STM32_FUNCTION(11, "SDMMC3_CK"),
+ STM32_FUNCTION(12, "FMC_AD5 FMC_D5"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(30, "PB14"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOB14"),
+ STM32_FUNCTION(3, "SPI2_SCK I2S2_CK"),
+ STM32_FUNCTION(10, "TIM4_CH2"),
+ STM32_FUNCTION(11, "SDMMC3_D0"),
+ STM32_FUNCTION(12, "FMC_AD7 FMC_D7"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(31, "PB15"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOB15"),
+ STM32_FUNCTION(2, "LPTIM1_IN2"),
+ STM32_FUNCTION(3, "SPI5_SCK"),
+ STM32_FUNCTION(5, "SAI2_SD_B"),
+ STM32_FUNCTION(6, "UART5_RX"),
+ STM32_FUNCTION(8, "TIM3_CH2"),
+ STM32_FUNCTION(9, "TIM5_CH1"),
+ STM32_FUNCTION(11, "ETH1_PPS_OUT"),
+ STM32_FUNCTION(13, "FMC_A18"),
+ STM32_FUNCTION(14, "LCD_R4"),
+ STM32_FUNCTION(15, "DCMI_D8 PSSI_D8 DCMIPP_D8"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(32, "PC0"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOC0"),
+ STM32_FUNCTION(2, "LPTIM1_CH1"),
+ STM32_FUNCTION(4, "SPI6_SCK"),
+ STM32_FUNCTION(5, "SAI3_MCLK_B"),
+ STM32_FUNCTION(6, "USART6_TX"),
+ STM32_FUNCTION(10, "DCMI_D0 PSSI_D0 DCMIPP_D0"),
+ STM32_FUNCTION(11, "ETH2_MII_RX_CLK ETH2_RMII_REF_CLK"),
+ STM32_FUNCTION(12, "ETH1_MII_TX_CLK"),
+ STM32_FUNCTION(13, "ETH1_RGMII_GTX_CLK"),
+ STM32_FUNCTION(14, "LCD_G7"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(33, "PC1"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOC1"),
+ STM32_FUNCTION(3, "SPI3_MOSI I2S3_SDO"),
+ STM32_FUNCTION(7, "USART2_TX"),
+ STM32_FUNCTION(10, "I2C3_SCL"),
+ STM32_FUNCTION(11, "ETH1_MII_TXD1 ETH1_RGMII_TXD1 ETH1_RMII_TXD1"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(34, "PC2"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOC2"),
+ STM32_FUNCTION(2, "SPI6_MOSI"),
+ STM32_FUNCTION(3, "LPTIM2_IN1"),
+ STM32_FUNCTION(5, "SAI4_MCLK_B"),
+ STM32_FUNCTION(6, "MDF1_SDI3"),
+ STM32_FUNCTION(7, "USART2_RTS"),
+ STM32_FUNCTION(11, "ETH1_MII_RXD1 ETH1_RGMII_RXD1 ETH1_RMII_RXD1"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(35, "PC3"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOC3"),
+ STM32_FUNCTION(2, "LPTIM1_IN2"),
+ STM32_FUNCTION(3, "SPI3_NSS I2S3_WS"),
+ STM32_FUNCTION(4, "SPI6_RDY"),
+ STM32_FUNCTION(7, "USART6_RTS"),
+ STM32_FUNCTION(8, "FDCAN2_TX"),
+ STM32_FUNCTION(11, "ETH2_MII_RX_DV ETH2_RGMII_RX_CTL ETH2_RMII_CRS_DV"),
+ STM32_FUNCTION(12, "ETH1_MII_RX_ER"),
+ STM32_FUNCTION(14, "LCD_G6"),
+ STM32_FUNCTION(15, "DCMI_D3 PSSI_D3 DCMIPP_D3"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(36, "PC4"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOC4"),
+ STM32_FUNCTION(4, "SPI6_MISO"),
+ STM32_FUNCTION(5, "SAI3_FS_B"),
+ STM32_FUNCTION(11, "ETH2_MII_TX_EN ETH2_RGMII_TX_CTL ETH2_RMII_TX_EN"),
+ STM32_FUNCTION(13, "ETH1_RGMII_CLK125"),
+ STM32_FUNCTION(14, "LCD_R0"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(37, "PC5"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOC5"),
+ STM32_FUNCTION(3, "SPDIFRX1_IN1"),
+ STM32_FUNCTION(6, "MDF1_SDI1"),
+ STM32_FUNCTION(9, "TIM8_CH1N"),
+ STM32_FUNCTION(10, "I2C1_SDA"),
+ STM32_FUNCTION(11, "ETH2_MDIO"),
+ STM32_FUNCTION(12, "ETH1_MII_COL"),
+ STM32_FUNCTION(13, "FMC_A25"),
+ STM32_FUNCTION(14, "ETH1_PPS_OUT"),
+ STM32_FUNCTION(15, "LCD_DE"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(38, "PC6"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOC6"),
+ STM32_FUNCTION(2, "RTC_REFIN"),
+ STM32_FUNCTION(3, "SPDIFRX1_IN0"),
+ STM32_FUNCTION(6, "MDF1_CKI1"),
+ STM32_FUNCTION(9, "TIM8_CH1"),
+ STM32_FUNCTION(10, "I2C1_SCL"),
+ STM32_FUNCTION(11, "ETH2_MDC"),
+ STM32_FUNCTION(12, "ETH1_MII_CRS"),
+ STM32_FUNCTION(13, "FMC_A24"),
+ STM32_FUNCTION(14, "ETH1_PHY_INTN"),
+ STM32_FUNCTION(15, "LCD_CLK"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(39, "PC7"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOC7"),
+ STM32_FUNCTION(4, "SPI6_MOSI"),
+ STM32_FUNCTION(5, "SAI3_SD_B"),
+ STM32_FUNCTION(9, "TIM8_CH2N"),
+ STM32_FUNCTION(11, "ETH2_MII_TXD0 ETH2_RGMII_TXD0 ETH2_RMII_TXD0"),
+ STM32_FUNCTION(12, "ETH1_MII_TXD2"),
+ STM32_FUNCTION(14, "LCD_B4"),
+ STM32_FUNCTION(15, "DCMI_D1 PSSI_D1 DCMIPP_D1"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(40, "PC8"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOC8"),
+ STM32_FUNCTION(2, "LPTIM1_ETR"),
+ STM32_FUNCTION(4, "SPI6_NSS"),
+ STM32_FUNCTION(5, "SAI3_SCK_B"),
+ STM32_FUNCTION(7, "USART6_CTS USART6_NSS"),
+ STM32_FUNCTION(9, "TIM8_CH2"),
+ STM32_FUNCTION(11, "ETH2_MII_TXD1 ETH2_RGMII_TXD1 ETH2_RMII_TXD1"),
+ STM32_FUNCTION(12, "ETH1_MII_TXD3"),
+ STM32_FUNCTION(14, "LCD_B3"),
+ STM32_FUNCTION(15, "DCMI_D2 PSSI_D2 DCMIPP_D2"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(41, "PC9"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOC9"),
+ STM32_FUNCTION(2, "MCO1"),
+ STM32_FUNCTION(3, "SPI3_MISO I2S3_SDI"),
+ STM32_FUNCTION(5, "SAI2_SCK_A"),
+ STM32_FUNCTION(8, "TIM13_CH1"),
+ STM32_FUNCTION(9, "TIM8_CH4N"),
+ STM32_FUNCTION(10, "USBH_HS_OVRCUR"),
+ STM32_FUNCTION(11, "ETH2_MII_TXD2 ETH2_RGMII_TXD2"),
+ STM32_FUNCTION(13, "FMC_A22"),
+ STM32_FUNCTION(14, "LCD_G2"),
+ STM32_FUNCTION(15, "DCMI_D7 PSSI_D7 DCMIPP_D7"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(42, "PC10"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOC10"),
+ STM32_FUNCTION(3, "SPI3_MOSI I2S3_SDO"),
+ STM32_FUNCTION(8, "LPTIM4_ETR"),
+ STM32_FUNCTION(9, "TIM8_CH4"),
+ STM32_FUNCTION(10, "USBH_HS_VBUSEN"),
+ STM32_FUNCTION(11, "ETH2_MII_TXD3 ETH2_RGMII_TXD3"),
+ STM32_FUNCTION(12, "DCMI_D0 PSSI_D0 DCMIPP_D0"),
+ STM32_FUNCTION(13, "FMC_A23"),
+ STM32_FUNCTION(14, "LCD_G3"),
+ STM32_FUNCTION(15, "DCMI_D6 PSSI_D6 DCMIPP_D6"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(43, "PC11"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOC11"),
+ STM32_FUNCTION(2, "LPTIM1_CH1"),
+ STM32_FUNCTION(3, "SPI5_NSS"),
+ STM32_FUNCTION(5, "SAI2_MCLK_A"),
+ STM32_FUNCTION(6, "UART5_RTS"),
+ STM32_FUNCTION(7, "USART3_RTS"),
+ STM32_FUNCTION(8, "TIM3_CH1"),
+ STM32_FUNCTION(9, "TIM5_ETR"),
+ STM32_FUNCTION(10, "DCMI_HSYNC PSSI_DE DCMIPP_HSYNC"),
+ STM32_FUNCTION(11, "ETH2_MII_RXD3 ETH2_RGMII_RXD3"),
+ STM32_FUNCTION(13, "FMC_NBL1"),
+ STM32_FUNCTION(14, "LCD_R2"),
+ STM32_FUNCTION(15, "DCMI_D10 PSSI_D10 DCMIPP_D10"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(44, "PC12"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOC12"),
+ STM32_FUNCTION(2, "LPTIM1_CH2"),
+ STM32_FUNCTION(4, "I3C3_SCL"),
+ STM32_FUNCTION(5, "I3C2_SCL"),
+ STM32_FUNCTION(6, "MDF1_CKI2"),
+ STM32_FUNCTION(9, "TIM8_CH3"),
+ STM32_FUNCTION(10, "I2C3_SCL"),
+ STM32_FUNCTION(11, "ETH2_MII_RXD1 ETH2_RGMII_RXD1 ETH2_RMII_RXD1"),
+ STM32_FUNCTION(12, "ETH1_MII_RXD3"),
+ STM32_FUNCTION(14, "LCD_G1"),
+ STM32_FUNCTION(15, "DCMI_D5 PSSI_D5 DCMIPP_D5"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(45, "PC13"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOC13"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(48, "PD0"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD0"),
+ STM32_FUNCTION(1, "TRACECLK"),
+ STM32_FUNCTION(2, "HDP0"),
+ STM32_FUNCTION(4, "SAI1_D2"),
+ STM32_FUNCTION(6, "SAI4_FS_A"),
+ STM32_FUNCTION(7, "UART7_RX"),
+ STM32_FUNCTION(8, "TIM15_CH2"),
+ STM32_FUNCTION(10, "SDVSEL1"),
+ STM32_FUNCTION(11, "OCTOSPI1_CLK"),
+ STM32_FUNCTION(14, "DCMI_PIXCLK PSSI_PDCK DCMIPP_PIXCLK"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(49, "PD1"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD1"),
+ STM32_FUNCTION(2, "HDP1"),
+ STM32_FUNCTION(3, "SPI1_MISO I2S1_SDI"),
+ STM32_FUNCTION(4, "SAI1_CK2"),
+ STM32_FUNCTION(6, "SAI4_SD_A"),
+ STM32_FUNCTION(7, "UART7_RTS"),
+ STM32_FUNCTION(8, "TIM15_CH1"),
+ STM32_FUNCTION(9, "TIM1_BKIN"),
+ STM32_FUNCTION(11, "OCTOSPI1_NCLK"),
+ STM32_FUNCTION(12, "OCTOSPI1_NCS2"),
+ STM32_FUNCTION(14, "DCMI_HSYNC PSSI_DE DCMIPP_HSYNC"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(50, "PD2"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD2"),
+ STM32_FUNCTION(2, "HDP2"),
+ STM32_FUNCTION(3, "SPI1_NSS I2S1_WS"),
+ STM32_FUNCTION(4, "SAI1_CK1"),
+ STM32_FUNCTION(6, "SAI4_SCK_A"),
+ STM32_FUNCTION(7, "UART7_CTS"),
+ STM32_FUNCTION(8, "TIM15_BKIN"),
+ STM32_FUNCTION(9, "TIM1_ETR"),
+ STM32_FUNCTION(11, "OCTOSPI1_DQS"),
+ STM32_FUNCTION(12, "OCTOSPI1_NCS2"),
+ STM32_FUNCTION(14, "DCMI_VSYNC PSSI_RDY DCMIPP_VSYNC"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(51, "PD3"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD3"),
+ STM32_FUNCTION(2, "SAI1_MCLK_A"),
+ STM32_FUNCTION(3, "SPI2_SCK I2S2_CK"),
+ STM32_FUNCTION(4, "SAI1_D1"),
+ STM32_FUNCTION(6, "SAI4_MCLK_A"),
+ STM32_FUNCTION(7, "UART7_TX"),
+ STM32_FUNCTION(8, "TIM15_CH1N"),
+ STM32_FUNCTION(9, "TIM1_BKIN2"),
+ STM32_FUNCTION(10, "SDVSEL2"),
+ STM32_FUNCTION(11, "OCTOSPI1_NCS1"),
+ STM32_FUNCTION(14, "PSSI_D15 DCMIPP_D15"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(52, "PD4"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD4"),
+ STM32_FUNCTION(1, "TRACED0"),
+ STM32_FUNCTION(2, "SPI4_MISO"),
+ STM32_FUNCTION(3, "HDP3"),
+ STM32_FUNCTION(4, "SAI1_D3"),
+ STM32_FUNCTION(5, "SAI1_SD_B"),
+ STM32_FUNCTION(9, "TIM1_CH4N"),
+ STM32_FUNCTION(10, "TIM4_CH1"),
+ STM32_FUNCTION(11, "OCTOSPI1_IO0"),
+ STM32_FUNCTION(14, "PSSI_D14 DCMIPP_D14"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(53, "PD5"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD5"),
+ STM32_FUNCTION(1, "TRACED1"),
+ STM32_FUNCTION(2, "SPI4_NSS"),
+ STM32_FUNCTION(3, "HDP4"),
+ STM32_FUNCTION(4, "SAI1_D4"),
+ STM32_FUNCTION(5, "SAI1_FS_B"),
+ STM32_FUNCTION(9, "TIM1_CH3N"),
+ STM32_FUNCTION(10, "TIM4_CH2"),
+ STM32_FUNCTION(11, "OCTOSPI1_IO1"),
+ STM32_FUNCTION(14, "DCMI_D13 PSSI_D13 DCMIPP_D13"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(54, "PD6"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD6"),
+ STM32_FUNCTION(1, "TRACED2"),
+ STM32_FUNCTION(2, "SPI4_MOSI"),
+ STM32_FUNCTION(3, "HDP5"),
+ STM32_FUNCTION(5, "SAI1_SCK_B"),
+ STM32_FUNCTION(6, "MDF1_SDI2"),
+ STM32_FUNCTION(9, "TIM1_CH2N"),
+ STM32_FUNCTION(10, "TIM4_CH3"),
+ STM32_FUNCTION(11, "OCTOSPI1_IO2"),
+ STM32_FUNCTION(14, "DCMI_D12 PSSI_D12 DCMIPP_D12"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(55, "PD7"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD7"),
+ STM32_FUNCTION(1, "TRACED3"),
+ STM32_FUNCTION(2, "SPI4_SCK"),
+ STM32_FUNCTION(3, "SPI1_RDY"),
+ STM32_FUNCTION(5, "SAI1_MCLK_B"),
+ STM32_FUNCTION(6, "MDF1_CKI2"),
+ STM32_FUNCTION(9, "TIM1_CH1N"),
+ STM32_FUNCTION(10, "TIM4_CH4"),
+ STM32_FUNCTION(11, "OCTOSPI1_IO3"),
+ STM32_FUNCTION(14, "DCMI_D11 PSSI_D11 DCMIPP_D11"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(56, "PD8"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD8"),
+ STM32_FUNCTION(1, "TRACED4"),
+ STM32_FUNCTION(2, "SPI4_RDY"),
+ STM32_FUNCTION(3, "I2S1_MCK"),
+ STM32_FUNCTION(4, "SAI1_FS_A"),
+ STM32_FUNCTION(5, "UART4_CTS"),
+ STM32_FUNCTION(6, "MDF1_SDI1"),
+ STM32_FUNCTION(9, "TIM1_CH4"),
+ STM32_FUNCTION(10, "TIM4_ETR"),
+ STM32_FUNCTION(11, "OCTOSPI1_IO4"),
+ STM32_FUNCTION(12, "SDMMC1_D7"),
+ STM32_FUNCTION(13, "SDMMC1_D123DIR"),
+ STM32_FUNCTION(14, "DCMI_D10 PSSI_D10 DCMIPP_D10"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(57, "PD9"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD9"),
+ STM32_FUNCTION(1, "TRACED5"),
+ STM32_FUNCTION(2, "HDP6"),
+ STM32_FUNCTION(3, "SPI1_MOSI I2S1_SDO"),
+ STM32_FUNCTION(4, "SAI1_SD_A"),
+ STM32_FUNCTION(5, "UART4_RTS"),
+ STM32_FUNCTION(6, "MDF1_CKI1"),
+ STM32_FUNCTION(9, "TIM1_CH3"),
+ STM32_FUNCTION(11, "OCTOSPI1_IO5"),
+ STM32_FUNCTION(12, "SDMMC1_D6"),
+ STM32_FUNCTION(13, "SDMMC1_D0DIR"),
+ STM32_FUNCTION(14, "DCMI_D9 PSSI_D9 DCMIPP_D9"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(58, "PD10"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD10"),
+ STM32_FUNCTION(1, "TRACED6"),
+ STM32_FUNCTION(2, "HDP7"),
+ STM32_FUNCTION(4, "SAI1_SCK_A"),
+ STM32_FUNCTION(5, "UART4_RX"),
+ STM32_FUNCTION(6, "MDF1_SDI0"),
+ STM32_FUNCTION(7, "I2C1_SDA"),
+ STM32_FUNCTION(9, "TIM1_CH2"),
+ STM32_FUNCTION(10, "TIM14_CH1"),
+ STM32_FUNCTION(11, "OCTOSPI1_IO6"),
+ STM32_FUNCTION(12, "SDMMC1_D5"),
+ STM32_FUNCTION(13, "SDMMC1_CDIR"),
+ STM32_FUNCTION(14, "DCMI_D8 PSSI_D8 DCMIPP_D8"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(59, "PD11"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD11"),
+ STM32_FUNCTION(1, "TRACED7"),
+ STM32_FUNCTION(3, "SPI1_SCK I2S1_CK"),
+ STM32_FUNCTION(4, "SAI1_MCLK_A"),
+ STM32_FUNCTION(5, "UART4_TX"),
+ STM32_FUNCTION(6, "MDF1_CKI0"),
+ STM32_FUNCTION(7, "I2C1_SCL"),
+ STM32_FUNCTION(9, "TIM1_CH1"),
+ STM32_FUNCTION(10, "SDVSEL1"),
+ STM32_FUNCTION(11, "OCTOSPI1_IO7"),
+ STM32_FUNCTION(12, "SDMMC1_D4"),
+ STM32_FUNCTION(13, "SDMMC1_CKIN"),
+ STM32_FUNCTION(14, "DCMI_D7 PSSI_D7 DCMIPP_D7"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(60, "PD12"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD12"),
+ STM32_FUNCTION(3, "SPI2_MISO I2S2_SDI"),
+ STM32_FUNCTION(4, "SPDIFRX1_IN2"),
+ STM32_FUNCTION(10, "TIM4_ETR"),
+ STM32_FUNCTION(11, "SDMMC3_CMD"),
+ STM32_FUNCTION(12, "FMC_AD6 FMC_D6"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(61, "PD13"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD13"),
+ STM32_FUNCTION(3, "SPI2_NSS I2S2_WS"),
+ STM32_FUNCTION(10, "TIM4_CH4"),
+ STM32_FUNCTION(11, "SDMMC3_D1"),
+ STM32_FUNCTION(12, "FMC_AD11 FMC_D11"),
+ STM32_FUNCTION(13, "FMC_NWE"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(62, "PD14"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD14"),
+ STM32_FUNCTION(2, "I2S2_MCK"),
+ STM32_FUNCTION(3, "I2S1_MCK"),
+ STM32_FUNCTION(8, "FDCAN1_RX"),
+ STM32_FUNCTION(9, "TIM11_CH1"),
+ STM32_FUNCTION(12, "FMC_AD4 FMC_D4"),
+ STM32_FUNCTION(13, "SDMMC3_D3"),
+ STM32_FUNCTION(14, "DCMI_D1 PSSI_D1 DCMIPP_D1"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(63, "PD15"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOD15"),
+ STM32_FUNCTION(2, "SPI1_RDY"),
+ STM32_FUNCTION(7, "I2C2_SDA"),
+ STM32_FUNCTION(8, "FDCAN1_TX"),
+ STM32_FUNCTION(9, "TIM1_BKIN2"),
+ STM32_FUNCTION(10, "TIM5_ETR"),
+ STM32_FUNCTION(12, "FMC_AD3 FMC_D3"),
+ STM32_FUNCTION(13, "SDMMC3_CKIN"),
+ STM32_FUNCTION(14, "DCMI_D0 PSSI_D0 DCMIPP_D0"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(64, "PE0"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOE0"),
+ STM32_FUNCTION(1, "TRACED2"),
+ STM32_FUNCTION(2, "LPTIM2_CH1"),
+ STM32_FUNCTION(3, "SPI1_SCK I2S1_CK"),
+ STM32_FUNCTION(4, "SPI3_RDY"),
+ STM32_FUNCTION(7, "USART3_CK"),
+ STM32_FUNCTION(11, "SDMMC1_D2"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(65, "PE1"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOE1"),
+ STM32_FUNCTION(1, "TRACED3"),
+ STM32_FUNCTION(2, "LPTIM2_CH2"),
+ STM32_FUNCTION(3, "I2S1_MCK"),
+ STM32_FUNCTION(4, "I2S3_MCK"),
+ STM32_FUNCTION(7, "USART3_RX"),
+ STM32_FUNCTION(11, "SDMMC1_D3"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(66, "PE2"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOE2"),
+ STM32_FUNCTION(2, "LPTIM2_ETR"),
+ STM32_FUNCTION(3, "SPI1_MISO I2S1_SDI"),
+ STM32_FUNCTION(4, "SPI3_MOSI I2S3_SDO"),
+ STM32_FUNCTION(5, "SAI1_SCK_B"),
+ STM32_FUNCTION(9, "TIM10_CH1"),
+ STM32_FUNCTION(11, "SDMMC1_CMD"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(67, "PE3"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOE3"),
+ STM32_FUNCTION(1, "TRACECLK"),
+ STM32_FUNCTION(3, "SPI1_RDY"),
+ STM32_FUNCTION(4, "SPI3_SCK I2S3_CK"),
+ STM32_FUNCTION(5, "SAI1_MCLK_B"),
+ STM32_FUNCTION(7, "USART3_TX"),
+ STM32_FUNCTION(9, "TIM11_CH1"),
+ STM32_FUNCTION(11, "SDMMC1_CK"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(68, "PE4"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOE4"),
+ STM32_FUNCTION(1, "TRACED0"),
+ STM32_FUNCTION(2, "LPTIM2_IN1"),
+ STM32_FUNCTION(3, "SPI1_MOSI I2S1_SDO"),
+ STM32_FUNCTION(4, "SPI3_MISO I2S3_SDI"),
+ STM32_FUNCTION(5, "SAI1_SD_B"),
+ STM32_FUNCTION(7, "USART3_CTS USART3_NSS"),
+ STM32_FUNCTION(8, "FDCAN1_TX"),
+ STM32_FUNCTION(11, "SDMMC1_D0"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(69, "PE5"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOE5"),
+ STM32_FUNCTION(1, "TRACED1"),
+ STM32_FUNCTION(2, "LPTIM2_IN2"),
+ STM32_FUNCTION(3, "SPI1_NSS I2S1_WS"),
+ STM32_FUNCTION(4, "SPI3_NSS I2S3_WS"),
+ STM32_FUNCTION(5, "SAI1_FS_B"),
+ STM32_FUNCTION(7, "USART3_RTS"),
+ STM32_FUNCTION(8, "FDCAN1_RX"),
+ STM32_FUNCTION(11, "SDMMC1_D1"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(70, "PE6"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOE6"),
+ STM32_FUNCTION(2, "SPI4_RDY"),
+ STM32_FUNCTION(5, "SPDIFRX1_IN2"),
+ STM32_FUNCTION(7, "USART1_TX"),
+ STM32_FUNCTION(9, "TIM1_ETR"),
+ STM32_FUNCTION(12, "FMC_AD1 FMC_D1"),
+ STM32_FUNCTION(13, "SDMMC2_D6"),
+ STM32_FUNCTION(14, "SDMMC2_D0DIR"),
+ STM32_FUNCTION(15, "SDMMC2_CK"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(71, "PE7"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOE7"),
+ STM32_FUNCTION(4, "SAI4_D4"),
+ STM32_FUNCTION(5, "SPDIFRX1_IN3"),
+ STM32_FUNCTION(7, "USART1_RX"),
+ STM32_FUNCTION(9, "TIM1_CH4N"),
+ STM32_FUNCTION(11, "TIM14_CH1"),
+ STM32_FUNCTION(12, "FMC_AD2 FMC_D2"),
+ STM32_FUNCTION(13, "SDMMC2_D7"),
+ STM32_FUNCTION(14, "SDMMC2_D123DIR"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(72, "PE8"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOE8"),
+ STM32_FUNCTION(2, "SPI4_MOSI"),
+ STM32_FUNCTION(4, "SAI4_CK1"),
+ STM32_FUNCTION(5, "SAI4_MCLK_A"),
+ STM32_FUNCTION(6, "MDF1_CKI0"),
+ STM32_FUNCTION(9, "TIM1_CH1"),
+ STM32_FUNCTION(12, "FMC_A17 FMC_ALE"),
+ STM32_FUNCTION(13, "SDMMC2_D2"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(73, "PE9"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOE9"),
+ STM32_FUNCTION(2, "SPI4_MISO"),
+ STM32_FUNCTION(4, "SAI4_D2"),
+ STM32_FUNCTION(5, "SAI4_FS_A"),
+ STM32_FUNCTION(7, "USART1_CK"),
+ STM32_FUNCTION(9, "TIM1_CH4"),
+ STM32_FUNCTION(12, "FMC_AD0 FMC_D0"),
+ STM32_FUNCTION(13, "SDMMC2_D5"),
+ STM32_FUNCTION(14, "SDMMC2_CDIR"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(74, "PE10"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOE10"),
+ STM32_FUNCTION(2, "SPI4_SCK"),
+ STM32_FUNCTION(4, "SAI4_D1"),
+ STM32_FUNCTION(5, "SAI4_SD_A"),
+ STM32_FUNCTION(7, "USART1_CTS USART1_NSS"),
+ STM32_FUNCTION(9, "TIM1_CH3"),
+ STM32_FUNCTION(11, "FMC_NE3"),
+ STM32_FUNCTION(12, "FMC_NCE2"),
+ STM32_FUNCTION(13, "SDMMC2_D4"),
+ STM32_FUNCTION(14, "SDMMC2_CKIN"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(75, "PE11"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOE11"),
+ STM32_FUNCTION(4, "SAI4_D3"),
+ STM32_FUNCTION(5, "SAI1_FS_A"),
+ STM32_FUNCTION(8, "TIM15_CH2"),
+ STM32_FUNCTION(9, "TIM1_CH3N"),
+ STM32_FUNCTION(12, "FMC_A16 FMC_CLE"),
+ STM32_FUNCTION(13, "SDMMC2_D1"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(76, "PE12"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOE12"),
+ STM32_FUNCTION(2, "SPI4_NSS"),
+ STM32_FUNCTION(4, "SAI4_CK2"),
+ STM32_FUNCTION(5, "SAI4_SCK_A"),
+ STM32_FUNCTION(6, "MDF1_SDI0"),
+ STM32_FUNCTION(7, "USART1_RTS"),
+ STM32_FUNCTION(9, "TIM1_CH2"),
+ STM32_FUNCTION(11, "FMC_NE2"),
+ STM32_FUNCTION(12, "FMC_NCE1"),
+ STM32_FUNCTION(13, "SDMMC2_D3"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(77, "PE13"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOE13"),
+ STM32_FUNCTION(5, "SAI1_SD_A"),
+ STM32_FUNCTION(8, "TIM15_CH1"),
+ STM32_FUNCTION(9, "TIM1_CH2N"),
+ STM32_FUNCTION(12, "FMC_RNB"),
+ STM32_FUNCTION(13, "SDMMC2_D0"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(78, "PE14"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOE14"),
+ STM32_FUNCTION(5, "SAI1_MCLK_A"),
+ STM32_FUNCTION(8, "TIM15_BKIN"),
+ STM32_FUNCTION(9, "TIM1_BKIN"),
+ STM32_FUNCTION(12, "FMC_NWE"),
+ STM32_FUNCTION(13, "SDMMC2_CK"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(79, "PE15"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOE15"),
+ STM32_FUNCTION(5, "SAI1_SCK_A"),
+ STM32_FUNCTION(8, "TIM15_CH1N"),
+ STM32_FUNCTION(9, "TIM1_CH1N"),
+ STM32_FUNCTION(12, "FMC_NOE"),
+ STM32_FUNCTION(13, "SDMMC2_CMD"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(80, "PF0"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOF0"),
+ STM32_FUNCTION(3, "SPI3_SCK I2S3_CK"),
+ STM32_FUNCTION(8, "FDCAN2_RX"),
+ STM32_FUNCTION(9, "TIM12_CH2"),
+ STM32_FUNCTION(10, "I2C2_SDA"),
+ STM32_FUNCTION(11, "ETH1_MDC"),
+ STM32_FUNCTION(12, "ETH2_MII_CRS"),
+ STM32_FUNCTION(14, "I3C2_SDA"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(81, "PF1"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOF1"),
+ STM32_FUNCTION(2, "SPI6_MISO"),
+ STM32_FUNCTION(3, "LPTIM2_IN2"),
+ STM32_FUNCTION(5, "SAI4_SCK_B"),
+ STM32_FUNCTION(7, "USART2_CK"),
+ STM32_FUNCTION(11, "ETH1_MII_RXD0 ETH1_RGMII_RXD0 ETH1_RMII_RXD0"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(82, "PF2"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOF2"),
+ STM32_FUNCTION(3, "SPI3_RDY"),
+ STM32_FUNCTION(7, "I2C1_SMBA"),
+ STM32_FUNCTION(9, "TIM12_CH1"),
+ STM32_FUNCTION(10, "I2C2_SCL"),
+ STM32_FUNCTION(11, "ETH1_MDIO"),
+ STM32_FUNCTION(12, "ETH2_MII_COL"),
+ STM32_FUNCTION(13, "FMC_NE4"),
+ STM32_FUNCTION(14, "I3C2_SCL"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(83, "PF3"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOF3"),
+ STM32_FUNCTION(5, "SAI2_SCK_B"),
+ STM32_FUNCTION(6, "MDF1_CCK0"),
+ STM32_FUNCTION(8, "TIM3_CH4"),
+ STM32_FUNCTION(9, "TIM8_BKIN2"),
+ STM32_FUNCTION(10, "ETH1_CLK"),
+ STM32_FUNCTION(11, "ETH2_PPS_OUT"),
+ STM32_FUNCTION(13, "FMC_A20"),
+ STM32_FUNCTION(14, "LCD_R6"),
+ STM32_FUNCTION(15, "DCMI_HSYNC PSSI_DE DCMIPP_HSYNC"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(84, "PF4"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOF4"),
+ STM32_FUNCTION(2, "RTC_OUT2"),
+ STM32_FUNCTION(3, "SPI6_NSS"),
+ STM32_FUNCTION(5, "SAI3_SCK_A"),
+ STM32_FUNCTION(7, "USART6_RX"),
+ STM32_FUNCTION(8, "TIM4_CH4"),
+ STM32_FUNCTION(9, "ETH1_MDC"),
+ STM32_FUNCTION(10, "ETH2_CLK"),
+ STM32_FUNCTION(11, "ETH2_PPS_OUT"),
+ STM32_FUNCTION(12, "ETH1_PPS_OUT"),
+ STM32_FUNCTION(14, "LCD_B7"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(85, "PF5"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOF5"),
+ STM32_FUNCTION(3, "SPI6_SCK"),
+ STM32_FUNCTION(5, "SAI3_MCLK_A"),
+ STM32_FUNCTION(7, "USART6_TX"),
+ STM32_FUNCTION(8, "TIM4_CH3"),
+ STM32_FUNCTION(9, "ETH1_MDIO"),
+ STM32_FUNCTION(10, "ETH1_CLK"),
+ STM32_FUNCTION(11, "ETH2_PHY_INTN"),
+ STM32_FUNCTION(12, "ETH1_PHY_INTN"),
+ STM32_FUNCTION(14, "LCD_B6"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(86, "PF6"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOF6"),
+ STM32_FUNCTION(2, "RTC_OUT2"),
+ STM32_FUNCTION(4, "SAI3_MCLK_B"),
+ STM32_FUNCTION(7, "USART6_CK"),
+ STM32_FUNCTION(8, "TIM12_CH1"),
+ STM32_FUNCTION(10, "I2C3_SMBA"),
+ STM32_FUNCTION(11, "ETH2_MII_RX_CLK ETH2_RGMII_RX_CLK ETH2_RMII_REF_CLK"),
+ STM32_FUNCTION(14, "LCD_B0"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(87, "PF7"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOF7"),
+ STM32_FUNCTION(3, "SPDIFRX1_IN1"),
+ STM32_FUNCTION(4, "SPI6_SCK"),
+ STM32_FUNCTION(5, "SAI3_SD_A"),
+ STM32_FUNCTION(8, "TIM2_ETR"),
+ STM32_FUNCTION(11, "ETH2_RGMII_GTX_CLK"),
+ STM32_FUNCTION(12, "ETH2_MII_TX_CLK"),
+ STM32_FUNCTION(14, "LCD_R1"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(88, "PF8"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOF8"),
+ STM32_FUNCTION(2, "RTC_REFIN"),
+ STM32_FUNCTION(4, "SAI3_SCK_B"),
+ STM32_FUNCTION(7, "USART3_RX"),
+ STM32_FUNCTION(8, "TIM12_CH2"),
+ STM32_FUNCTION(10, "ETH1_CLK"),
+ STM32_FUNCTION(11, "ETH2_RGMII_CLK125"),
+ STM32_FUNCTION(12, "ETH2_MII_RX_ER"),
+ STM32_FUNCTION(13, "ETH2_MII_RX_DV ETH2_RMII_CRS_DV"),
+ STM32_FUNCTION(14, "LCD_G0"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(89, "PF9"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOF9"),
+ STM32_FUNCTION(4, "SAI3_SD_B"),
+ STM32_FUNCTION(5, "SAI2_SD_A"),
+ STM32_FUNCTION(8, "TIM2_CH2"),
+ STM32_FUNCTION(11, "ETH2_MII_RXD2 ETH2_RGMII_RXD2"),
+ STM32_FUNCTION(12, "ETH2_MDIO"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(90, "PF10"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOF10"),
+ STM32_FUNCTION(2, "MCO2"),
+ STM32_FUNCTION(3, "SPI3_RDY"),
+ STM32_FUNCTION(5, "SAI2_MCLK_A"),
+ STM32_FUNCTION(8, "TIM2_CH3"),
+ STM32_FUNCTION(11, "ETH2_MII_TXD2"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(91, "PF11"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOF11"),
+ STM32_FUNCTION(2, "MCO1"),
+ STM32_FUNCTION(3, "SPDIFRX1_IN0"),
+ STM32_FUNCTION(4, "SPI6_RDY"),
+ STM32_FUNCTION(5, "SAI2_SCK_A"),
+ STM32_FUNCTION(8, "TIM2_CH4"),
+ STM32_FUNCTION(11, "ETH2_MII_TXD3"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(92, "PF12"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOF12"),
+ STM32_FUNCTION(1, "TRACECLK"),
+ STM32_FUNCTION(3, "SPI5_MISO"),
+ STM32_FUNCTION(4, "SPI1_MISO I2S1_SDI"),
+ STM32_FUNCTION(9, "TIM5_CH1"),
+ STM32_FUNCTION(14, "LCD_CLK"),
+ STM32_FUNCTION(15, "DCMI_D0 PSSI_D0 DCMIPP_D0"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(93, "PF13"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOF13"),
+ STM32_FUNCTION(1, "TRACED0"),
+ STM32_FUNCTION(2, "HDP0"),
+ STM32_FUNCTION(3, "CK_IN"),
+ STM32_FUNCTION(4, "USART6_TX"),
+ STM32_FUNCTION(5, "SPI2_NSS I2S2_WS"),
+ STM32_FUNCTION(7, "USART3_CTS USART3_NSS"),
+ STM32_FUNCTION(9, "TIM3_CH3"),
+ STM32_FUNCTION(14, "LCD_R2"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(95, "PF15"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOF15"),
+ STM32_FUNCTION(1, "TRACED2"),
+ STM32_FUNCTION(2, "HDP2"),
+ STM32_FUNCTION(3, "SPI2_RDY"),
+ STM32_FUNCTION(4, "USART6_CTS USART6_NSS"),
+ STM32_FUNCTION(5, "SPI2_SCK I2S2_CK"),
+ STM32_FUNCTION(7, "USART3_CK"),
+ STM32_FUNCTION(8, "TIM2_CH2"),
+ STM32_FUNCTION(9, "TIM3_ETR"),
+ STM32_FUNCTION(14, "LCD_R4"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(96, "PG0"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOG0"),
+ STM32_FUNCTION(2, "LPTIM1_IN1"),
+ STM32_FUNCTION(4, "I3C3_SDA"),
+ STM32_FUNCTION(5, "I3C2_SDA"),
+ STM32_FUNCTION(6, "MDF1_SDI2"),
+ STM32_FUNCTION(9, "TIM8_CH3N"),
+ STM32_FUNCTION(10, "I2C3_SDA"),
+ STM32_FUNCTION(11, "ETH2_MII_RXD0 ETH2_RGMII_RXD0 ETH2_RMII_RXD0"),
+ STM32_FUNCTION(12, "ETH1_MII_RXD2"),
+ STM32_FUNCTION(14, "LCD_G5"),
+ STM32_FUNCTION(15, "DCMI_D4 PSSI_D4 DCMIPP_D4"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(97, "PG1"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOG1"),
+ STM32_FUNCTION(2, "LPTIM1_IN1"),
+ STM32_FUNCTION(3, "I2S3_MCK"),
+ STM32_FUNCTION(4, "I3C3_SCL"),
+ STM32_FUNCTION(5, "SAI2_SD_A"),
+ STM32_FUNCTION(6, "UART5_CTS"),
+ STM32_FUNCTION(7, "USART3_CTS USART3_NSS"),
+ STM32_FUNCTION(9, "TIM5_CH4"),
+ STM32_FUNCTION(10, "I2C3_SCL"),
+ STM32_FUNCTION(11, "ETH2_MII_RX_ER"),
+ STM32_FUNCTION(12, "ETH2_MII_RXD3"),
+ STM32_FUNCTION(13, "FMC_NBL0"),
+ STM32_FUNCTION(14, "LCD_VSYNC"),
+ STM32_FUNCTION(15, "DCMI_D11 PSSI_D11 DCMIPP_D11"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(98, "PG2"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOG2"),
+ STM32_FUNCTION(2, "RTC_REFIN"),
+ STM32_FUNCTION(3, "I2S3_MCK"),
+ STM32_FUNCTION(4, "I3C3_SDA"),
+ STM32_FUNCTION(5, "SAI2_FS_A"),
+ STM32_FUNCTION(7, "USART3_CK"),
+ STM32_FUNCTION(9, "TIM5_CH3"),
+ STM32_FUNCTION(10, "I2C3_SDA"),
+ STM32_FUNCTION(11, "ETH2_MII_TX_CLK"),
+ STM32_FUNCTION(12, "ETH2_RGMII_CLK125"),
+ STM32_FUNCTION(13, "FMC_CLK"),
+ STM32_FUNCTION(14, "LCD_HSYNC"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(99, "PG3"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOG3"),
+ STM32_FUNCTION(2, "LPTIM1_ETR"),
+ STM32_FUNCTION(3, "SPI5_MOSI"),
+ STM32_FUNCTION(5, "SAI2_FS_B"),
+ STM32_FUNCTION(8, "TIM3_CH3"),
+ STM32_FUNCTION(9, "TIM8_ETR"),
+ STM32_FUNCTION(10, "ETH2_CLK"),
+ STM32_FUNCTION(11, "ETH2_PHY_INTN"),
+ STM32_FUNCTION(13, "FMC_A19"),
+ STM32_FUNCTION(14, "LCD_R5"),
+ STM32_FUNCTION(15, "DCMI_PIXCLK PSSI_PDCK DCMIPP_PIXCLK"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(100, "PG4"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOG4"),
+ STM32_FUNCTION(3, "SPI5_MISO"),
+ STM32_FUNCTION(4, "SAI3_FS_B"),
+ STM32_FUNCTION(8, "LPTIM4_IN1"),
+ STM32_FUNCTION(9, "TIM8_BKIN"),
+ STM32_FUNCTION(11, "ETH2_PPS_OUT"),
+ STM32_FUNCTION(12, "ETH2_MDC"),
+ STM32_FUNCTION(13, "FMC_A21"),
+ STM32_FUNCTION(14, "LCD_R7"),
+ STM32_FUNCTION(15, "DCMI_VSYNC PSSI_RDY DCMIPP_VSYNC"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(101, "PG5"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOG5"),
+ STM32_FUNCTION(1, "TRACED3"),
+ STM32_FUNCTION(2, "HDP3"),
+ STM32_FUNCTION(4, "USART6_RTS"),
+ STM32_FUNCTION(8, "TIM2_CH3"),
+ STM32_FUNCTION(14, "LCD_R5"),
+ STM32_FUNCTION(15, "DCMI_PIXCLK PSSI_PDCK DCMIPP_PIXCLK"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(103, "PG7"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOG7"),
+ STM32_FUNCTION(1, "TRACED5"),
+ STM32_FUNCTION(2, "HDP5"),
+ STM32_FUNCTION(3, "SPI5_NSS"),
+ STM32_FUNCTION(4, "SPI1_NSS I2S1_WS"),
+ STM32_FUNCTION(9, "TIM5_ETR"),
+ STM32_FUNCTION(14, "LCD_R7"),
+ STM32_FUNCTION(15, "DCMI_VSYNC PSSI_RDY DCMIPP_VSYNC"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(104, "PG8"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOG8"),
+ STM32_FUNCTION(1, "TRACED6"),
+ STM32_FUNCTION(2, "HDP6"),
+ STM32_FUNCTION(3, "SPI5_RDY"),
+ STM32_FUNCTION(4, "SPI1_RDY"),
+ STM32_FUNCTION(5, "USART6_CK"),
+ STM32_FUNCTION(6, "UART5_RTS"),
+ STM32_FUNCTION(9, "TIM5_CH3"),
+ STM32_FUNCTION(14, "LCD_G2"),
+ STM32_FUNCTION(15, "DCMI_D2 PSSI_D2 DCMIPP_D2"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(105, "PG9"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOG9"),
+ STM32_FUNCTION(1, "TRACED7"),
+ STM32_FUNCTION(6, "UART5_TX"),
+ STM32_FUNCTION(9, "TIM5_CH4"),
+ STM32_FUNCTION(14, "LCD_G3"),
+ STM32_FUNCTION(15, "DCMI_D3 PSSI_D3 DCMIPP_D3"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(106, "PG10"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOG10"),
+ STM32_FUNCTION(1, "TRACED8"),
+ STM32_FUNCTION(2, "HDP0"),
+ STM32_FUNCTION(6, "UART5_RX"),
+ STM32_FUNCTION(9, "TIM8_CH4N"),
+ STM32_FUNCTION(14, "LCD_G4"),
+ STM32_FUNCTION(15, "DCMI_D4 PSSI_D4 DCMIPP_D4"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(107, "PG11"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOG11"),
+ STM32_FUNCTION(1, "TRACED9"),
+ STM32_FUNCTION(2, "HDP1"),
+ STM32_FUNCTION(8, "FDCAN1_TX"),
+ STM32_FUNCTION(9, "TIM8_CH4"),
+ STM32_FUNCTION(14, "LCD_G5"),
+ STM32_FUNCTION(15, "DCMI_D5 PSSI_D5 DCMIPP_D5"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(108, "PG12"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOG12"),
+ STM32_FUNCTION(1, "TRACED10"),
+ STM32_FUNCTION(2, "HDP2"),
+ STM32_FUNCTION(8, "FDCAN1_RX"),
+ STM32_FUNCTION(9, "TIM8_CH1N"),
+ STM32_FUNCTION(14, "LCD_G6"),
+ STM32_FUNCTION(15, "DCMI_D6 PSSI_D6 DCMIPP_D6"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(109, "PG13"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOG13"),
+ STM32_FUNCTION(1, "TRACED11"),
+ STM32_FUNCTION(2, "HDP3"),
+ STM32_FUNCTION(9, "TIM8_CH2N"),
+ STM32_FUNCTION(10, "I2C1_SCL"),
+ STM32_FUNCTION(11, "I3C1_SCL"),
+ STM32_FUNCTION(14, "LCD_G7"),
+ STM32_FUNCTION(15, "DCMI_D7 PSSI_D7 DCMIPP_D7"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(110, "PG14"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOG14"),
+ STM32_FUNCTION(1, "TRACED12"),
+ STM32_FUNCTION(2, "HDP4"),
+ STM32_FUNCTION(7, "USART1_TX"),
+ STM32_FUNCTION(9, "TIM8_BKIN2"),
+ STM32_FUNCTION(14, "LCD_B1"),
+ STM32_FUNCTION(15, "DCMI_D9 PSSI_D9 DCMIPP_D9"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(111, "PG15"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOG15"),
+ STM32_FUNCTION(1, "TRACED13"),
+ STM32_FUNCTION(2, "HDP5"),
+ STM32_FUNCTION(4, "LPTIM1_CH2"),
+ STM32_FUNCTION(7, "USART1_RX"),
+ STM32_FUNCTION(9, "TIM8_ETR"),
+ STM32_FUNCTION(14, "LCD_B2"),
+ STM32_FUNCTION(15, "DCMI_D10 PSSI_D10 DCMIPP_D10"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(116, "PH4"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOH4"),
+ STM32_FUNCTION(1, "DBTRGI"),
+ STM32_FUNCTION(2, "DBTRGO"),
+ STM32_FUNCTION(7, "UART7_TX"),
+ STM32_FUNCTION(8, "TIM17_BKIN"),
+ STM32_FUNCTION(10, "TIM5_CH2"),
+ STM32_FUNCTION(11, "LCD_R0"),
+ STM32_FUNCTION(13, "USBH_HS_OVRCUR"),
+ STM32_FUNCTION(14, "ETH1_PTP_AUX_TS"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(117, "PH5"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOH5"),
+ STM32_FUNCTION(1, "DBTRGO"),
+ STM32_FUNCTION(2, "DBTRGI"),
+ STM32_FUNCTION(5, "SAI2_FS_A"),
+ STM32_FUNCTION(8, "TIM2_CH1"),
+ STM32_FUNCTION(9, "UART7_RX"),
+ STM32_FUNCTION(11, "LCD_G1"),
+ STM32_FUNCTION(13, "USBH_HS_VBUSEN"),
+ STM32_FUNCTION(14, "ETH2_PTP_AUX_TS"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(119, "PH7"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOH7"),
+ STM32_FUNCTION(3, "SPI1_MOSI I2S1_SDO"),
+ STM32_FUNCTION(5, "UART4_TX"),
+ STM32_FUNCTION(7, "UART7_RTS"),
+ STM32_FUNCTION(8, "TIM17_CH1"),
+ STM32_FUNCTION(10, "TIM5_CH4"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(120, "PH8"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOH8"),
+ STM32_FUNCTION(3, "SPI1_MISO I2S1_SDI"),
+ STM32_FUNCTION(4, "SPDIFRX1_IN3"),
+ STM32_FUNCTION(5, "UART4_RX"),
+ STM32_FUNCTION(7, "UART7_CTS"),
+ STM32_FUNCTION(10, "TIM5_CH1"),
+ STM32_FUNCTION(11, "I2C3_SMBA"),
+ STM32_FUNCTION(12, "I2C2_SMBA"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(121, "PH9"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOH9"),
+ STM32_FUNCTION(4, "SPI6_NSS"),
+ STM32_FUNCTION(5, "SAI3_MCLK_A"),
+ STM32_FUNCTION(7, "USART6_RX"),
+ STM32_FUNCTION(8, "TIM15_CH1N"),
+ STM32_FUNCTION(11, "ETH1_RGMII_CLK125"),
+ STM32_FUNCTION(12, "ETH1_MII_RX_ER"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(122, "PH10"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOH10"),
+ STM32_FUNCTION(3, "SPI1_SCK I2S1_CK"),
+ STM32_FUNCTION(4, "SPI6_MOSI"),
+ STM32_FUNCTION(5, "SAI3_SCK_A"),
+ STM32_FUNCTION(8, "TIM15_CH1"),
+ STM32_FUNCTION(10, "ETH2_MDC"),
+ STM32_FUNCTION(11, "ETH1_MII_TXD2 ETH1_RGMII_TXD2"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(123, "PH11"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOH11"),
+ STM32_FUNCTION(4, "SPI6_MISO"),
+ STM32_FUNCTION(5, "SAI3_FS_A"),
+ STM32_FUNCTION(8, "TIM15_CH2"),
+ STM32_FUNCTION(10, "ETH2_MDIO"),
+ STM32_FUNCTION(11, "ETH1_MII_TXD3 ETH1_RGMII_TXD3"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(124, "PH12"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOH12"),
+ STM32_FUNCTION(3, "SPI3_NSS I2S3_WS"),
+ STM32_FUNCTION(4, "SPI6_MISO"),
+ STM32_FUNCTION(9, "TIM10_CH1"),
+ STM32_FUNCTION(11, "ETH1_MII_RXD2 ETH1_RGMII_RXD2"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(125, "PH13"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOH13"),
+ STM32_FUNCTION(3, "SPI3_SCK I2S3_CK"),
+ STM32_FUNCTION(4, "SPI6_MOSI"),
+ STM32_FUNCTION(8, "TIM15_BKIN"),
+ STM32_FUNCTION(9, "TIM11_CH1"),
+ STM32_FUNCTION(11, "ETH1_MII_RXD3 ETH1_RGMII_RXD3"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(128, "PI0"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOI0"),
+ STM32_FUNCTION(1, "TRACED14"),
+ STM32_FUNCTION(2, "HDP6"),
+ STM32_FUNCTION(4, "LPTIM1_IN1"),
+ STM32_FUNCTION(5, "SAI4_MCLK_B"),
+ STM32_FUNCTION(7, "USART1_CK"),
+ STM32_FUNCTION(9, "TIM8_BKIN"),
+ STM32_FUNCTION(14, "LCD_B3"),
+ STM32_FUNCTION(15, "DCMI_D11 PSSI_D11 DCMIPP_D11"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(129, "PI1"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOI1"),
+ STM32_FUNCTION(1, "TRACED15"),
+ STM32_FUNCTION(2, "HDP7"),
+ STM32_FUNCTION(9, "TIM8_CH3N"),
+ STM32_FUNCTION(10, "I2C1_SDA"),
+ STM32_FUNCTION(11, "I3C1_SDA"),
+ STM32_FUNCTION(14, "LCD_B4"),
+ STM32_FUNCTION(15, "DCMI_D8 PSSI_D8 DCMIPP_D8"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(132, "PI4"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN) | BIT(STM32_PKG_AO),
+ STM32_FUNCTION(0, "GPIOI4"),
+ STM32_FUNCTION(4, "LPTIM1_CH1"),
+ STM32_FUNCTION(5, "SAI4_FS_B"),
+ STM32_FUNCTION(9, "TIM8_CH3"),
+ STM32_FUNCTION(14, "LCD_B7"),
+ STM32_FUNCTION(15, "PSSI_D15 DCMIPP_D15"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(133, "PI5"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOI5"),
+ STM32_FUNCTION(3, "SPI5_MOSI"),
+ STM32_FUNCTION(4, "SPI1_MOSI I2S1_SDO"),
+ STM32_FUNCTION(6, "UART5_CTS"),
+ STM32_FUNCTION(9, "TIM5_CH2"),
+ STM32_FUNCTION(14, "LCD_DE"),
+ STM32_FUNCTION(15, "DCMI_D1 PSSI_D1 DCMIPP_D1"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(134, "PI6"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOI6"),
+ STM32_FUNCTION(2, "MCO1"),
+ STM32_FUNCTION(7, "USART3_TX"),
+ STM32_FUNCTION(8, "TIM2_ETR"),
+ STM32_FUNCTION(9, "TIM3_CH1"),
+ STM32_FUNCTION(14, "LCD_VSYNC"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(136, "PI8"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOI8"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+};
+
+static const struct stm32_desc_pin stm32mp215_z_pins[] = {
+ STM32_PIN_PKG(
+ PINCTRL_PIN(400, "PZ0"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOZ0"),
+ STM32_FUNCTION(3, "LPTIM3_IN1"),
+ STM32_FUNCTION(4, "SPI6_MOSI"),
+ STM32_FUNCTION(5, "TIM8_CH1"),
+ STM32_FUNCTION(7, "LPUART1_TX"),
+ STM32_FUNCTION(8, "LPTIM5_OUT"),
+ STM32_FUNCTION(9, "I2C3_SDA"),
+ STM32_FUNCTION(11, "LPTIM3_CH2"),
+ STM32_FUNCTION(12, "I3C3_SDA"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(401, "PZ1"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOZ1"),
+ STM32_FUNCTION(3, "LPTIM3_CH1"),
+ STM32_FUNCTION(4, "SPI6_MISO"),
+ STM32_FUNCTION(5, "TIM8_CH2"),
+ STM32_FUNCTION(7, "LPUART1_RX"),
+ STM32_FUNCTION(8, "LPTIM5_ETR"),
+ STM32_FUNCTION(9, "I2C3_SCL"),
+ STM32_FUNCTION(10, "I2C3_SMBA"),
+ STM32_FUNCTION(12, "I3C3_SCL"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+ STM32_PIN_PKG(
+ PINCTRL_PIN(403, "PZ3"),
+ BIT(STM32_PKG_AL) | BIT(STM32_PKG_AM) | BIT(STM32_PKG_AN),
+ STM32_FUNCTION(0, "GPIOZ3"),
+ STM32_FUNCTION(1, "DBTRGI"),
+ STM32_FUNCTION(2, "DBTRGO"),
+ STM32_FUNCTION(3, "LPTIM3_ETR"),
+ STM32_FUNCTION(4, "SPI6_NSS"),
+ STM32_FUNCTION(5, "MDF1_SDI3"),
+ STM32_FUNCTION(7, "LPUART1_CTS"),
+ STM32_FUNCTION(8, "LPTIM4_IN1"),
+ STM32_FUNCTION(9, "I2C3_SDA"),
+ STM32_FUNCTION(11, "LPTIM4_CH2"),
+ STM32_FUNCTION(12, "I3C3_SDA"),
+ STM32_FUNCTION(16, "EVENTOUT"),
+ STM32_FUNCTION(17, "ANALOG")
+ ),
+};
+
+static struct stm32_pinctrl_match_data stm32mp215_match_data = {
+ .pins = stm32mp215_pins,
+ .npins = ARRAY_SIZE(stm32mp215_pins),
+ .io_sync_control = true,
+ .secure_control = true,
+ .rif_control = true,
+};
+
+static struct stm32_pinctrl_match_data stm32mp215_z_match_data = {
+ .pins = stm32mp215_z_pins,
+ .npins = ARRAY_SIZE(stm32mp215_z_pins),
+ .io_sync_control = true,
+ .secure_control = true,
+ .rif_control = true,
+};
+
+static const struct of_device_id stm32mp215_pctrl_match[] = {
+ {
+ .compatible = "st,stm32mp215-pinctrl",
+ .data = &stm32mp215_match_data,
+ },
+ {
+ .compatible = "st,stm32mp215-z-pinctrl",
+ .data = &stm32mp215_z_match_data,
+ },
+ { }
+};
+MODULE_DEVICE_TABLE(of, stm32mp215_pctrl_match);
+
+static const struct dev_pm_ops stm32_pinctrl_dev_pm_ops = {
+ SET_LATE_SYSTEM_SLEEP_PM_OPS(stm32_pinctrl_suspend, stm32_pinctrl_resume)
+};
+
+static struct platform_driver stm32mp215_pinctrl_driver = {
+ .probe = stm32_pctl_probe,
+ .driver = {
+ .name = "stm32mp215-pinctrl",
+ .of_match_table = stm32mp215_pctrl_match,
+ .pm = &stm32_pinctrl_dev_pm_ops,
+ },
+};
+module_platform_driver(stm32mp215_pinctrl_driver);
+
+MODULE_AUTHOR("Alexandre Torgue <alexandre.torgue@foss.st.com>");
+MODULE_DESCRIPTION("STM32MP215 pinctrl driver");
+MODULE_LICENSE("GPL");
--
2.34.1
^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v2 09/15] dt-bindings: pinctrl: stm32: support for stm32mp215 and additional packages
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
` (7 preceding siblings ...)
2025-11-18 16:19 ` [PATCH v2 08/15] pinctrl: stm32: add stm32mp215 pinctrl support Antonio Borneo
@ 2025-11-18 16:19 ` Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 10/15] arm64: dts: st: introduce stm32mp21 pinctrl files Antonio Borneo
` (5 subsequent siblings)
14 siblings, 0 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet
From: Amelie Delaunay <amelie.delaunay@foss.st.com>
Add support for st,stm32mp215-pinctrl and st,stm32mp215-z-pinctrl.
Add packages AM, AN and AO.
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
.../devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
index 27e1efee13481..3bd1ecbcdbe50 100644
--- a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
@@ -27,6 +27,8 @@ properties:
- st,stm32mp135-pinctrl
- st,stm32mp157-pinctrl
- st,stm32mp157-z-pinctrl
+ - st,stm32mp215-pinctrl
+ - st,stm32mp215-z-pinctrl
- st,stm32mp257-pinctrl
- st,stm32mp257-z-pinctrl
@@ -72,6 +74,9 @@ properties:
- AJ
- AK
- AL
+ - AM
+ - AN
+ - AO
patternProperties:
'^gpio@[0-9a-f]*$':
@@ -276,6 +281,8 @@ allOf:
compatible:
contains:
enum:
+ - st,stm32mp215-pinctrl
+ - st,stm32mp215-z-pinctrl
- st,stm32mp257-pinctrl
- st,stm32mp257-z-pinctrl
then:
--
2.34.1
^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v2 10/15] arm64: dts: st: introduce stm32mp21 pinctrl files
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
` (8 preceding siblings ...)
2025-11-18 16:19 ` [PATCH v2 09/15] dt-bindings: pinctrl: stm32: support for stm32mp215 and additional packages Antonio Borneo
@ 2025-11-18 16:19 ` Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 11/15] arm64: dts: st: add interrupt to optee node on stm32mp21 Antonio Borneo
` (4 subsequent siblings)
14 siblings, 0 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet
From: Amelie Delaunay <amelie.delaunay@foss.st.com>
Four packages exist for stm32mp21 dies. As ball-out is different between
them, this patch cover those differences by introducing dedicated pinctrl
dtsi files. Each dtsi pinctrl package file describes the package ball-out
through gpio-ranges.
Available packages are:
STM32MP21xxAL: 10*10 VFBGA361 / 123 GPIOs
STM32MP21xxAM: 14*14 VFBGA289 / 123 GPIOs
STM32MP21xxAN: 11*11 VFBGA273 / 123 GPIOs
STM32MP21xxAO: 8*8 VFBGA225 / 98 GPIOs
It includes also the common file used for pin groups definition.
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi | 6 ++
.../boot/dts/st/stm32mp21xxal-pinctrl.dtsi | 71 +++++++++++++++++++
.../boot/dts/st/stm32mp21xxam-pinctrl.dtsi | 71 +++++++++++++++++++
.../boot/dts/st/stm32mp21xxan-pinctrl.dtsi | 71 +++++++++++++++++++
.../boot/dts/st/stm32mp21xxao-pinctrl.dtsi | 63 ++++++++++++++++
5 files changed, 282 insertions(+)
create mode 100644 arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi
create mode 100644 arch/arm64/boot/dts/st/stm32mp21xxal-pinctrl.dtsi
create mode 100644 arch/arm64/boot/dts/st/stm32mp21xxam-pinctrl.dtsi
create mode 100644 arch/arm64/boot/dts/st/stm32mp21xxan-pinctrl.dtsi
create mode 100644 arch/arm64/boot/dts/st/stm32mp21xxao-pinctrl.dtsi
diff --git a/arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi b/arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi
new file mode 100644
index 0000000000000..7e9b74f3d9d96
--- /dev/null
+++ b/arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi
@@ -0,0 +1,6 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
+/*
+ * Copyright (C) 2024-2025, STMicroelectronics - All Rights Reserved
+ * Author: Amelie Delaunay <amelie.delaunay@foss.st.com> for STMicroelectronics.
+ */
+#include <dt-bindings/pinctrl/stm32-pinfunc.h>
diff --git a/arch/arm64/boot/dts/st/stm32mp21xxal-pinctrl.dtsi b/arch/arm64/boot/dts/st/stm32mp21xxal-pinctrl.dtsi
new file mode 100644
index 0000000000000..7acf8a7e40e62
--- /dev/null
+++ b/arch/arm64/boot/dts/st/stm32mp21xxal-pinctrl.dtsi
@@ -0,0 +1,71 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
+/*
+ * Copyright (C) STMicroelectronics 2024-2025 - All Rights Reserved
+ * Author: Amelie Delaunay <amelie.delaunay@foss.st.com> for STMicroelectronics.
+ */
+
+&pinctrl {
+ st,package = "AL";
+
+ gpioa: gpio@44240000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 0 16>;
+ status = "okay";
+ };
+
+ gpiob: gpio@44250000 {
+ ngpios = <13>;
+ gpio-ranges = <&pinctrl 1 17 3>, <&pinctrl 5 21 3>, <&pinctrl 9 25 7>;
+ status = "okay";
+ };
+
+ gpioc: gpio@44260000 {
+ ngpios = <14>;
+ gpio-ranges = <&pinctrl 0 32 14>;
+ status = "okay";
+ };
+
+ gpiod: gpio@44270000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 48 16>;
+ status = "okay";
+ };
+
+ gpioe: gpio@44280000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 64 16>;
+ status = "okay";
+ };
+
+ gpiof: gpio@44290000 {
+ ngpios = <15>;
+ gpio-ranges = <&pinctrl 0 80 14>, <&pinctrl 15 95 1>;
+ status = "okay";
+ };
+
+ gpiog: gpio@442a0000 {
+ ngpios = <15>;
+ gpio-ranges = <&pinctrl 0 96 6>, <&pinctrl 7 103 9>;
+ status = "okay";
+ };
+
+ gpioh: gpio@442b0000 {
+ ngpios = <9>;
+ gpio-ranges = <&pinctrl 4 116 2>, <&pinctrl 7 119 7>;
+ status = "okay";
+ };
+
+ gpioi: gpio@442c0000 {
+ ngpios = <6>;
+ gpio-ranges = <&pinctrl 0 128 2>, <&pinctrl 4 132 3>, <&pinctrl 8 136 1>;
+ status = "okay";
+ };
+};
+
+&pinctrl_z {
+ gpioz: gpio@46200000 {
+ ngpios = <3>;
+ gpio-ranges = <&pinctrl_z 0 400 2>, <&pinctrl_z 3 403 1>;
+ status = "okay";
+ };
+};
diff --git a/arch/arm64/boot/dts/st/stm32mp21xxam-pinctrl.dtsi b/arch/arm64/boot/dts/st/stm32mp21xxam-pinctrl.dtsi
new file mode 100644
index 0000000000000..2e66028f50a6c
--- /dev/null
+++ b/arch/arm64/boot/dts/st/stm32mp21xxam-pinctrl.dtsi
@@ -0,0 +1,71 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
+/*
+ * Copyright (C) STMicroelectronics 2024-2025 - All Rights Reserved
+ * Author: Amelie Delaunay <amelie.delaunay@foss.st.com> for STMicroelectronics.
+ */
+
+&pinctrl {
+ st,package = "AM";
+
+ gpioa: gpio@44240000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 0 16>;
+ status = "okay";
+ };
+
+ gpiob: gpio@44250000 {
+ ngpios = <13>;
+ gpio-ranges = <&pinctrl 1 17 3>, <&pinctrl 5 21 3>, <&pinctrl 9 25 7>;
+ status = "okay";
+ };
+
+ gpioc: gpio@44260000 {
+ ngpios = <14>;
+ gpio-ranges = <&pinctrl 0 32 14>;
+ status = "okay";
+ };
+
+ gpiod: gpio@44270000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 48 16>;
+ status = "okay";
+ };
+
+ gpioe: gpio@44280000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 64 16>;
+ status = "okay";
+ };
+
+ gpiof: gpio@44290000 {
+ ngpios = <15>;
+ gpio-ranges = <&pinctrl 0 80 14>, <&pinctrl 15 95 1>;
+ status = "okay";
+ };
+
+ gpiog: gpio@442a0000 {
+ ngpios = <15>;
+ gpio-ranges = <&pinctrl 0 96 6>, <&pinctrl 7 103 9>;
+ status = "okay";
+ };
+
+ gpioh: gpio@442b0000 {
+ ngpios = <9>;
+ gpio-ranges = <&pinctrl 4 116 2>, <&pinctrl 7 119 7>;
+ status = "okay";
+ };
+
+ gpioi: gpio@442c0000 {
+ ngpios = <6>;
+ gpio-ranges = <&pinctrl 0 128 2>, <&pinctrl 4 132 3>, <&pinctrl 8 136 1>;
+ status = "okay";
+ };
+};
+
+&pinctrl_z {
+ gpioz: gpio@46200000 {
+ ngpios = <3>;
+ gpio-ranges = <&pinctrl_z 0 400 2>, <&pinctrl_z 3 403 1>;
+ status = "okay";
+ };
+};
diff --git a/arch/arm64/boot/dts/st/stm32mp21xxan-pinctrl.dtsi b/arch/arm64/boot/dts/st/stm32mp21xxan-pinctrl.dtsi
new file mode 100644
index 0000000000000..0e48f411262f1
--- /dev/null
+++ b/arch/arm64/boot/dts/st/stm32mp21xxan-pinctrl.dtsi
@@ -0,0 +1,71 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
+/*
+ * Copyright (C) STMicroelectronics 2024-2025 - All Rights Reserved
+ * Author: Amelie Delaunay <amelie.delaunay@foss.st.com> for STMicroelectronics.
+ */
+
+&pinctrl {
+ st,package = "AN";
+
+ gpioa: gpio@44240000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 0 16>;
+ status = "okay";
+ };
+
+ gpiob: gpio@44250000 {
+ ngpios = <13>;
+ gpio-ranges = <&pinctrl 1 17 3>, <&pinctrl 5 21 3>, <&pinctrl 9 25 7>;
+ status = "okay";
+ };
+
+ gpioc: gpio@44260000 {
+ ngpios = <14>;
+ gpio-ranges = <&pinctrl 0 32 14>;
+ status = "okay";
+ };
+
+ gpiod: gpio@44270000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 48 16>;
+ status = "okay";
+ };
+
+ gpioe: gpio@44280000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 64 16>;
+ status = "okay";
+ };
+
+ gpiof: gpio@44290000 {
+ ngpios = <15>;
+ gpio-ranges = <&pinctrl 0 80 14>, <&pinctrl 15 95 1>;
+ status = "okay";
+ };
+
+ gpiog: gpio@442a0000 {
+ ngpios = <15>;
+ gpio-ranges = <&pinctrl 0 96 6>, <&pinctrl 7 103 9>;
+ status = "okay";
+ };
+
+ gpioh: gpio@442b0000 {
+ ngpios = <9>;
+ gpio-ranges = <&pinctrl 4 116 2>, <&pinctrl 7 119 7>;
+ status = "okay";
+ };
+
+ gpioi: gpio@442c0000 {
+ ngpios = <6>;
+ gpio-ranges = <&pinctrl 0 128 2>, <&pinctrl 4 132 3>, <&pinctrl 8 136 1>;
+ status = "okay";
+ };
+};
+
+&pinctrl_z {
+ gpioz: gpio@46200000 {
+ ngpios = <3>;
+ gpio-ranges = <&pinctrl_z 0 400 2>, <&pinctrl_z 3 403 1>;
+ status = "okay";
+ };
+};
diff --git a/arch/arm64/boot/dts/st/stm32mp21xxao-pinctrl.dtsi b/arch/arm64/boot/dts/st/stm32mp21xxao-pinctrl.dtsi
new file mode 100644
index 0000000000000..0c4ed4a6d6401
--- /dev/null
+++ b/arch/arm64/boot/dts/st/stm32mp21xxao-pinctrl.dtsi
@@ -0,0 +1,63 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
+/*
+ * Copyright (C) STMicroelectronics 2024-2025 - All Rights Reserved
+ * Author: Amelie Delaunay <amelie.delaunay@foss.st.com> for STMicroelectronics.
+ */
+
+&pinctrl {
+ st,package = "AO";
+
+ gpioa: gpio@44240000 {
+ ngpios = <15>;
+ gpio-ranges = <&pinctrl 0 0 12>, <&pinctrl 13 13 3>;
+ status = "okay";
+ };
+
+ gpiob: gpio@44250000 {
+ ngpios = <5>;
+ gpio-ranges = <&pinctrl 11 27 5>;
+ status = "okay";
+ };
+
+ gpioc: gpio@44260000 {
+ ngpios = <14>;
+ gpio-ranges = <&pinctrl 0 32 14>;
+ status = "okay";
+ };
+
+ gpiod: gpio@44270000 {
+ ngpios = <16>;
+ gpio-ranges = <&pinctrl 0 48 16>;
+ status = "okay";
+ };
+
+ gpioe: gpio@44280000 {
+ ngpios = <14>;
+ gpio-ranges = <&pinctrl 0 64 10>, <&pinctrl 11 75 3>, <&pinctrl 15 79 1>;
+ status = "okay";
+ };
+
+ gpiof: gpio@44290000 {
+ ngpios = <15>;
+ gpio-ranges = <&pinctrl 0 80 14>, <&pinctrl 15 95 1>;
+ status = "okay";
+ };
+
+ gpiog: gpio@442a0000 {
+ ngpios = <9>;
+ gpio-ranges = <&pinctrl 0 96 6>, <&pinctrl 7 103 1>, <&pinctrl 11 107 2>;
+ status = "okay";
+ };
+
+ gpioh: gpio@442b0000 {
+ ngpios = <7>;
+ gpio-ranges = <&pinctrl 4 116 2>, <&pinctrl 9 121 5>;
+ status = "okay";
+ };
+
+ gpioi: gpio@442c0000 {
+ ngpios = <3>;
+ gpio-ranges = <&pinctrl 0 128 2>, <&pinctrl 4 132 1>;
+ status = "okay";
+ };
+};
--
2.34.1
^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v2 11/15] arm64: dts: st: add interrupt to optee node on stm32mp21
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
` (9 preceding siblings ...)
2025-11-18 16:19 ` [PATCH v2 10/15] arm64: dts: st: introduce stm32mp21 pinctrl files Antonio Borneo
@ 2025-11-18 16:19 ` Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 12/15] arm64: dts: st: add exti1 and exti2 nodes " Antonio Borneo
` (3 subsequent siblings)
14 siblings, 0 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet
To allow accessing clocks and reset through SCMI, provide the
interrupt property to the optee node.
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp211.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp211.dtsi b/arch/arm64/boot/dts/st/stm32mp211.dtsi
index bf888d60cd4f0..1f234c987dbca 100644
--- a/arch/arm64/boot/dts/st/stm32mp211.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp211.dtsi
@@ -50,6 +50,8 @@ firmware {
optee {
compatible = "linaro,optee-tz";
method = "smc";
+ interrupt-parent = <&intc>;
+ interrupts = <GIC_PPI 15 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>;
};
scmi: scmi {
--
2.34.1
^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v2 12/15] arm64: dts: st: add exti1 and exti2 nodes on stm32mp21
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
` (10 preceding siblings ...)
2025-11-18 16:19 ` [PATCH v2 11/15] arm64: dts: st: add interrupt to optee node on stm32mp21 Antonio Borneo
@ 2025-11-18 16:19 ` Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 13/15] arm64: dts: st: add pinctrl " Antonio Borneo
` (2 subsequent siblings)
14 siblings, 0 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet, Clément Le Goffic
From: Clément Le Goffic <clement.legoffic@foss.st.com>
Update the device-tree stm32mp211.dtsi to add the nodes for exti1
and exti2 interrupt controllers.
Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com>
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp211.dtsi | 150 +++++++++++++++++++++++++
1 file changed, 150 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp211.dtsi b/arch/arm64/boot/dts/st/stm32mp211.dtsi
index 1f234c987dbca..4bdf4b3a39829 100644
--- a/arch/arm64/boot/dts/st/stm32mp211.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp211.dtsi
@@ -112,11 +112,161 @@ usart2: serial@400e0000 {
};
};
+ exti1: interrupt-controller@44220000 {
+ compatible = "st,stm32mp1-exti", "syscon";
+ reg = <0x44220000 0x0 0x400>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ interrupts-extended =
+ <&intc GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>, /* EXTI_0 */
+ <&intc GIC_SPI 269 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 270 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 271 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 273 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 274 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 275 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 276 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 277 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 278 IRQ_TYPE_LEVEL_HIGH>, /* EXTI_10 */
+ <&intc GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 281 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 282 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 283 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH>,
+ <0>, /* EXTI_20 */
+ <&intc GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>,
+ <0>,
+ <0>,
+ <&intc GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>, /* EXTI_30 */
+ <&intc GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
+ <0>,
+ <0>,
+ <0>,
+ <&intc GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>, /* EXTI_40 */
+ <&intc GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>,
+ <0>,
+ <&intc GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>,
+ <0>,
+ <0>,
+ <&intc GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH>,
+ <0>,
+ <0>, /* EXTI_50 */
+ <0>,
+ <0>,
+ <0>,
+ <0>,
+ <0>,
+ <0>,
+ <0>,
+ <0>,
+ <&intc GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>,
+ <0>, /* EXTI_60 */
+ <&intc GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>,
+ <0>,
+ <0>,
+ <&intc GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH>,
+ <0>,
+ <0>,
+ <&intc GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
+ <0>,
+ <&intc GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>, /* EXTI_70 */
+ <0>,
+ <&intc GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>;
+ };
+
syscfg: syscon@44230000 {
compatible = "st,stm32mp21-syscfg", "syscon";
reg = <0x44230000 0x0 0x10000>;
};
+ exti2: interrupt-controller@442d0000 {
+ compatible = "st,stm32mp1-exti", "syscon";
+ reg = <0x442d0000 0x0 0x400>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ interrupts-extended =
+ <&intc GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>, /* EXTI_0 */
+ <&intc GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>, /* EXTI_10 */
+ <&intc GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
+ <0>,
+ <0>,
+ <0>, /* EXTI_20 */
+ <&intc GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
+ <0>,
+ <0>,
+ <0>,
+ <&intc GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>,
+ <0>,
+ <0>,
+ <&intc GIC_SPI 181 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>, /* EXTI_30 */
+ <&intc GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>,
+ <0>,
+ <0>,
+ <0>,
+ <&intc GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
+ <0>,
+ <&intc GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>, /* EXTI_40 */
+ <0>,
+ <0>,
+ <0>,
+ <0>,
+ <0>,
+ <0>,
+ <0>,
+ <0>,
+ <&intc GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>,
+ <0>, /* EXTI_50 */
+ <&intc GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>,
+ <&intc GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>;
+ };
+
intc: interrupt-controller@4ac10000 {
compatible = "arm,gic-400";
reg = <0x4ac10000 0x0 0x1000>,
--
2.34.1
^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v2 13/15] arm64: dts: st: add pinctrl nodes on stm32mp21
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
` (11 preceding siblings ...)
2025-11-18 16:19 ` [PATCH v2 12/15] arm64: dts: st: add exti1 and exti2 nodes " Antonio Borneo
@ 2025-11-18 16:19 ` Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 14/15] arm64: dts: st: add pinctrl to usart2 on stm32mp215f-dk board Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 15/15] arm64: dts: st: add heartbeat LED " Antonio Borneo
14 siblings, 0 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet
Update the device-tree stm32mp211.dtsi to add the nodes for pinctrl.
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp211.dtsi | 142 +++++++++++++++++++++++++
1 file changed, 142 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp211.dtsi b/arch/arm64/boot/dts/st/stm32mp211.dtsi
index 4bdf4b3a39829..fd561a85027c3 100644
--- a/arch/arm64/boot/dts/st/stm32mp211.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp211.dtsi
@@ -3,6 +3,7 @@
* Copyright (C) STMicroelectronics 2025 - All Rights Reserved
* Author: Alexandre Torgue <alexandre.torgue@foss.st.com> for STMicroelectronics.
*/
+#include <dt-bindings/clock/st,stm32mp21-rcc.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
/ {
@@ -205,6 +206,124 @@ syscfg: syscon@44230000 {
reg = <0x44230000 0x0 0x10000>;
};
+ pinctrl: pinctrl@44240000 {
+ bootph-all;
+ compatible = "st,stm32mp215-pinctrl";
+ ranges = <0 0x44240000 0x80400>;
+ interrupt-parent = <&exti1>;
+ st,syscfg = <&exti1 0x60 0xff>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ gpioa: gpio@44240000 {
+ bootph-all;
+ reg = <0x0 0x400>;
+ clocks = <&scmi_clk CK_SCMI_GPIOA>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ st,bank-name = "GPIOA";
+ status = "disabled";
+ };
+
+ gpiob: gpio@44250000 {
+ bootph-all;
+ reg = <0x10000 0x400>;
+ clocks = <&scmi_clk CK_SCMI_GPIOB>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ st,bank-name = "GPIOB";
+ status = "disabled";
+ };
+
+ gpioc: gpio@44260000 {
+ bootph-all;
+ reg = <0x20000 0x400>;
+ clocks = <&scmi_clk CK_SCMI_GPIOC>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ st,bank-name = "GPIOC";
+ status = "disabled";
+ };
+
+ gpiod: gpio@44270000 {
+ bootph-all;
+ reg = <0x30000 0x400>;
+ clocks = <&scmi_clk CK_SCMI_GPIOD>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ st,bank-name = "GPIOD";
+ status = "disabled";
+ };
+
+ gpioe: gpio@44280000 {
+ bootph-all;
+ reg = <0x40000 0x400>;
+ clocks = <&scmi_clk CK_SCMI_GPIOE>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ st,bank-name = "GPIOE";
+ status = "disabled";
+ };
+
+ gpiof: gpio@44290000 {
+ bootph-all;
+ reg = <0x50000 0x400>;
+ clocks = <&scmi_clk CK_SCMI_GPIOF>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ st,bank-name = "GPIOF";
+ status = "disabled";
+ };
+
+ gpiog: gpio@442a0000 {
+ bootph-all;
+ reg = <0x60000 0x400>;
+ clocks = <&scmi_clk CK_SCMI_GPIOG>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ st,bank-name = "GPIOG";
+ status = "disabled";
+ };
+
+ gpioh: gpio@442b0000 {
+ bootph-all;
+ reg = <0x70000 0x400>;
+ clocks = <&scmi_clk CK_SCMI_GPIOH>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ st,bank-name = "GPIOH";
+ status = "disabled";
+ };
+
+ gpioi: gpio@442c0000 {
+ bootph-all;
+ reg = <0x80000 0x400>;
+ clocks = <&scmi_clk CK_SCMI_GPIOI>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ st,bank-name = "GPIOI";
+ status = "disabled";
+ };
+ };
+
exti2: interrupt-controller@442d0000 {
compatible = "st,stm32mp1-exti", "syscon";
reg = <0x442d0000 0x0 0x400>;
@@ -267,6 +386,29 @@ exti2: interrupt-controller@442d0000 {
<&intc GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>;
};
+ pinctrl_z: pinctrl@46200000 {
+ bootph-all;
+ compatible = "st,stm32mp215-z-pinctrl";
+ ranges = <0 0x46200000 0x400>;
+ interrupt-parent = <&exti1>;
+ st,syscfg = <&exti1 0x60 0xff>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ gpioz: gpio@46200000 {
+ bootph-all;
+ reg = <0 0x400>;
+ clocks = <&scmi_clk CK_SCMI_GPIOZ>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ st,bank-name = "GPIOZ";
+ st,bank-ioport = <11>;
+ status = "disabled";
+ };
+ };
+
intc: interrupt-controller@4ac10000 {
compatible = "arm,gic-400";
reg = <0x4ac10000 0x0 0x1000>,
--
2.34.1
^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v2 14/15] arm64: dts: st: add pinctrl to usart2 on stm32mp215f-dk board
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
` (12 preceding siblings ...)
2025-11-18 16:19 ` [PATCH v2 13/15] arm64: dts: st: add pinctrl " Antonio Borneo
@ 2025-11-18 16:19 ` Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 15/15] arm64: dts: st: add heartbeat LED " Antonio Borneo
14 siblings, 0 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet
From: Amelie Delaunay <amelie.delaunay@foss.st.com>
Add the pinctrl properties to the existing node usart2 on the board
stm32mp215f-dk.
While there, add also the boot phase tags to usart2 node.
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi | 32 +++++++++++++++++++
arch/arm64/boot/dts/st/stm32mp215f-dk.dts | 17 ++++++++++
2 files changed, 49 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi b/arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi
index 7e9b74f3d9d96..01d64a1f0760f 100644
--- a/arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi
@@ -4,3 +4,35 @@
* Author: Amelie Delaunay <amelie.delaunay@foss.st.com> for STMicroelectronics.
*/
#include <dt-bindings/pinctrl/stm32-pinfunc.h>
+
+&pinctrl {
+ usart2_pins_a: usart2-0 {
+ pins1 {
+ pinmux = <STM32_PINMUX('A', 4, AF6)>; /* USART2_TX */
+ bias-disable;
+ drive-push-pull;
+ slew-rate = <0>;
+ };
+ pins2 {
+ pinmux = <STM32_PINMUX('A', 8, AF8)>; /* USART2_RX */
+ bias-disable;
+ };
+ };
+
+ usart2_idle_pins_a: usart2-idle-0 {
+ pins1 {
+ pinmux = <STM32_PINMUX('A', 4, ANALOG)>; /* USART2_TX */
+ };
+ pins2 {
+ pinmux = <STM32_PINMUX('A', 8, AF8)>; /* USART2_RX */
+ bias-disable;
+ };
+ };
+
+ usart2_sleep_pins_a: usart2-sleep-0 {
+ pins {
+ pinmux = <STM32_PINMUX('A', 4, ANALOG)>, /* USART2_TX */
+ <STM32_PINMUX('A', 8, ANALOG)>; /* USART2_RX */
+ };
+ };
+};
diff --git a/arch/arm64/boot/dts/st/stm32mp215f-dk.dts b/arch/arm64/boot/dts/st/stm32mp215f-dk.dts
index 7bdaeaa5ab0fb..8571dcf427fc4 100644
--- a/arch/arm64/boot/dts/st/stm32mp215f-dk.dts
+++ b/arch/arm64/boot/dts/st/stm32mp215f-dk.dts
@@ -8,6 +8,8 @@
#include "stm32mp215.dtsi"
#include "stm32mp21xf.dtsi"
+#include "stm32mp21-pinctrl.dtsi"
+#include "stm32mp21xxan-pinctrl.dtsi"
/ {
model = "STMicroelectronics STM32MP215F-DK Discovery Board";
@@ -45,5 +47,20 @@ &arm_wdt {
};
&usart2 {
+ bootph-all;
+ pinctrl-names = "default", "idle", "sleep";
+ pinctrl-0 = <&usart2_pins_a>;
+ pinctrl-1 = <&usart2_idle_pins_a>;
+ pinctrl-2 = <&usart2_sleep_pins_a>;
status = "okay";
};
+
+&usart2_pins_a {
+ bootph-all;
+ pins1 {
+ bootph-all;
+ };
+ pins2 {
+ bootph-all;
+ };
+};
--
2.34.1
^ permalink raw reply related [flat|nested] 20+ messages in thread
* [PATCH v2 15/15] arm64: dts: st: add heartbeat LED on stm32mp215f-dk board
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
` (13 preceding siblings ...)
2025-11-18 16:19 ` [PATCH v2 14/15] arm64: dts: st: add pinctrl to usart2 on stm32mp215f-dk board Antonio Borneo
@ 2025-11-18 16:19 ` Antonio Borneo
14 siblings, 0 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-18 16:19 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel
Cc: Antonio Borneo, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet
From: Pascal Paillet <p.paillet@foss.st.com>
Add heartbeat LED on stm32mp215f-dk.
Signed-off-by: Pascal Paillet <p.paillet@foss.st.com>
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
arch/arm64/boot/dts/st/stm32mp215f-dk.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm64/boot/dts/st/stm32mp215f-dk.dts b/arch/arm64/boot/dts/st/stm32mp215f-dk.dts
index 8571dcf427fc4..6d10b0641d2bf 100644
--- a/arch/arm64/boot/dts/st/stm32mp215f-dk.dts
+++ b/arch/arm64/boot/dts/st/stm32mp215f-dk.dts
@@ -6,6 +6,8 @@
/dts-v1/;
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
#include "stm32mp215.dtsi"
#include "stm32mp21xf.dtsi"
#include "stm32mp21-pinctrl.dtsi"
@@ -23,6 +25,18 @@ chosen {
stdout-path = "serial0:115200n8";
};
+ gpio-leds {
+ compatible = "gpio-leds";
+
+ led-blue {
+ function = LED_FUNCTION_HEARTBEAT;
+ color = <LED_COLOR_ID_BLUE>;
+ gpios = <&gpioz 3 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "heartbeat";
+ default-state = "off";
+ };
+ };
+
memory@80000000 {
device_type = "memory";
reg = <0x0 0x80000000 0x0 0x80000000>;
--
2.34.1
^ permalink raw reply related [flat|nested] 20+ messages in thread
* Re: [PATCH v2 02/15] dt-bindings: pinctrl: stm32: use strings for enum property 'st,package'
2025-11-18 16:19 ` [PATCH v2 02/15] dt-bindings: pinctrl: stm32: use strings for enum " Antonio Borneo
@ 2025-11-19 7:27 ` Krzysztof Kozlowski
2025-11-19 14:16 ` Linus Walleij
1 sibling, 0 replies; 20+ messages in thread
From: Krzysztof Kozlowski @ 2025-11-19 7:27 UTC (permalink / raw)
To: Antonio Borneo
Cc: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Maxime Coquelin, Alexandre Torgue, linux-gpio, devicetree,
linux-stm32, linux-arm-kernel, linux-kernel,
Clément Le Goffic, Amelie Delaunay, Pascal Paillet
On Tue, Nov 18, 2025 at 05:19:23PM +0100, Antonio Borneo wrote:
> The property 'st,package' reports the SoC package used in the
> board DT and is used to inform the driver about which pins are
> available for use by the pinctrl driver.
> It has historically been declared as an uint32 enum, where each
> value is a power of 2.
>
> Deprecate the use of the numeric value and replace it with more
> readable string values.
The "SoC package" is defined by top-level compatible or by soc info
driver. It is not the property of pinctrl, therefore if ever touching
this, you should deprecate entire property instead of growing it.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH v2 02/15] dt-bindings: pinctrl: stm32: use strings for enum property 'st,package'
2025-11-18 16:19 ` [PATCH v2 02/15] dt-bindings: pinctrl: stm32: use strings for enum " Antonio Borneo
2025-11-19 7:27 ` Krzysztof Kozlowski
@ 2025-11-19 14:16 ` Linus Walleij
2025-11-20 9:50 ` Antonio Borneo
1 sibling, 1 reply; 20+ messages in thread
From: Linus Walleij @ 2025-11-19 14:16 UTC (permalink / raw)
To: Antonio Borneo
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
Alexandre Torgue, linux-gpio, devicetree, linux-stm32,
linux-arm-kernel, linux-kernel, Clément Le Goffic,
Amelie Delaunay, Pascal Paillet
On Tue, Nov 18, 2025 at 5:20 PM Antonio Borneo
<antonio.borneo@foss.st.com> wrote:
> The property 'st,package' reports the SoC package used in the
> board DT and is used to inform the driver about which pins are
> available for use by the pinctrl driver.
> It has historically been declared as an uint32 enum, where each
> value is a power of 2.
>
> Deprecate the use of the numeric value and replace it with more
> readable string values.
>
> Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
I think Krzysztof is right about this, deprecate the property and
(re-)introduce it on the top level in:
Documentation/devicetree/bindings/arm/stm32/stm32.yaml
It may be a bit quirky to get to this property from the pin control
Linux driver, but it is the right thing to do.
The Vexpress has some inspirational top-level custom properties:
Documentation/devicetree/bindings/arm/arm,vexpress-juno.yaml
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH v2 05/15] pinctrl: stm32: add new package to stm32mp257 pinctrl support
2025-11-18 16:19 ` [PATCH v2 05/15] pinctrl: stm32: add new package to stm32mp257 pinctrl support Antonio Borneo
@ 2025-11-20 4:25 ` kernel test robot
0 siblings, 0 replies; 20+ messages in thread
From: kernel test robot @ 2025-11-20 4:25 UTC (permalink / raw)
To: Antonio Borneo, Linus Walleij, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Maxime Coquelin, Alexandre Torgue, linux-gpio,
devicetree, linux-stm32, linux-arm-kernel, linux-kernel
Cc: oe-kbuild-all, Antonio Borneo, Clément Le Goffic,
Amelie Delaunay, Pascal Paillet
Hi Antonio,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 61cbe48d9d1ff277bc54051fbab8b733b2e64ccb]
url: https://github.com/intel-lab-lkp/linux/commits/Antonio-Borneo/pinctrl-stm32-accept-string-value-for-property-st-package/20251119-011734
base: 61cbe48d9d1ff277bc54051fbab8b733b2e64ccb
patch link: https://lore.kernel.org/r/20251118161936.1085477-6-antonio.borneo%40foss.st.com
patch subject: [PATCH v2 05/15] pinctrl: stm32: add new package to stm32mp257 pinctrl support
config: microblaze-randconfig-r111-20251120 (https://download.01.org/0day-ci/archive/20251120/202511200853.efuVxuoM-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251120/202511200853.efuVxuoM-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511200853.efuVxuoM-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/pinctrl/stm32/pinctrl-stm32.c:143:10: sparse: sparse: Initializer entry defined twice
drivers/pinctrl/stm32/pinctrl-stm32.c:144:10: sparse: also defined here
vim +143 drivers/pinctrl/stm32/pinctrl-stm32.c
f263343bb793fa Antonio Borneo 2025-11-18 130
f263343bb793fa Antonio Borneo 2025-11-18 131 static const char * const stm32_pkgs[] = {
f263343bb793fa Antonio Borneo 2025-11-18 132 /*
f263343bb793fa Antonio Borneo 2025-11-18 133 * Default dummy value, as match_string() doesn't accepts NULL.
f263343bb793fa Antonio Borneo 2025-11-18 134 * Also not an empty string because it will match the old numeric
f263343bb793fa Antonio Borneo 2025-11-18 135 * values <= 0x00ffffff.
f263343bb793fa Antonio Borneo 2025-11-18 136 */
f263343bb793fa Antonio Borneo 2025-11-18 137 [0 ... (STM32_PKG_MAX - 1)] = "x",
f263343bb793fa Antonio Borneo 2025-11-18 138
f263343bb793fa Antonio Borneo 2025-11-18 139 [STM32_PKG_AA] = "AA",
f263343bb793fa Antonio Borneo 2025-11-18 140 [STM32_PKG_AB] = "AB",
f263343bb793fa Antonio Borneo 2025-11-18 141 [STM32_PKG_AC] = "AC",
f263343bb793fa Antonio Borneo 2025-11-18 142 [STM32_PKG_AD] = "AD",
f263343bb793fa Antonio Borneo 2025-11-18 @143 [STM32_PKG_AI] = "AI",
66cbedfcc7caae Clément Le Goffic 2025-11-18 144 [STM32_PKG_AI] = "AJ",
f263343bb793fa Antonio Borneo 2025-11-18 145 [STM32_PKG_AK] = "AK",
f263343bb793fa Antonio Borneo 2025-11-18 146 [STM32_PKG_AL] = "AL",
f263343bb793fa Antonio Borneo 2025-11-18 147 };
f263343bb793fa Antonio Borneo 2025-11-18 148
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH v2 02/15] dt-bindings: pinctrl: stm32: use strings for enum property 'st,package'
2025-11-19 14:16 ` Linus Walleij
@ 2025-11-20 9:50 ` Antonio Borneo
0 siblings, 0 replies; 20+ messages in thread
From: Antonio Borneo @ 2025-11-20 9:50 UTC (permalink / raw)
To: Linus Walleij, Krzysztof Kozlowski
Cc: Rob Herring, Conor Dooley, Maxime Coquelin, Alexandre Torgue,
linux-gpio, devicetree, linux-stm32, linux-arm-kernel,
linux-kernel, Clément Le Goffic, Amelie Delaunay,
Pascal Paillet
On Wed, 2025-11-19 at 15:16 +0100, Linus Walleij wrote:
> On Tue, Nov 18, 2025 at 5:20 PM Antonio Borneo
> <antonio.borneo@foss.st.com> wrote:
>
> > The property 'st,package' reports the SoC package used in the
> > board DT and is used to inform the driver about which pins are
> > available for use by the pinctrl driver.
> > It has historically been declared as an uint32 enum, where each
> > value is a power of 2.
> >
> > Deprecate the use of the numeric value and replace it with more
> > readable string values.
> >
> > Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
>
> I think Krzysztof is right about this, deprecate the property and
> (re-)introduce it on the top level in:
> Documentation/devicetree/bindings/arm/stm32/stm32.yaml
>
Yes, I agree with Krzysztof comment. This is not a property that belongs to pinctrl.
I will deprecate it in the existing bindings.
> It may be a bit quirky to get to this property from the pin control
> Linux driver, but it is the right thing to do.
>
> The Vexpress has some inspirational top-level custom properties:
> Documentation/devicetree/bindings/arm/arm,vexpress-juno.yaml
I was looking for some top-level custom property, but I've missed this. Thanks for the hint.
Best Regards,
Antonio
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2025-11-20 9:51 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 01/15] pinctrl: stm32: accept string value for property 'st,package' Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 02/15] dt-bindings: pinctrl: stm32: use strings for enum " Antonio Borneo
2025-11-19 7:27 ` Krzysztof Kozlowski
2025-11-19 14:16 ` Linus Walleij
2025-11-20 9:50 ` Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 03/15] arm: dts: stm32: update property 'st,package' to new bindings Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 04/15] arm64: dts: st: " Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 05/15] pinctrl: stm32: add new package to stm32mp257 pinctrl support Antonio Borneo
2025-11-20 4:25 ` kernel test robot
2025-11-18 16:19 ` [PATCH v2 06/15] dt-bindings: " Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 07/15] arm64: dts: st: add new package file for stm32mp25 pinctrl Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 08/15] pinctrl: stm32: add stm32mp215 pinctrl support Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 09/15] dt-bindings: pinctrl: stm32: support for stm32mp215 and additional packages Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 10/15] arm64: dts: st: introduce stm32mp21 pinctrl files Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 11/15] arm64: dts: st: add interrupt to optee node on stm32mp21 Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 12/15] arm64: dts: st: add exti1 and exti2 nodes " Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 13/15] arm64: dts: st: add pinctrl " Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 14/15] arm64: dts: st: add pinctrl to usart2 on stm32mp215f-dk board Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 15/15] arm64: dts: st: add heartbeat LED " Antonio Borneo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).