Skip to contentSkip to conversation

dt-bindings: arm: stm32: Add compatible string for DH electronics STM32MP13xx DHCOR DHSBC board

PATCH Superseded Marek Vasut 4 participants 25 messages Apr 22, 2024 – Apr 25, 2024

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/20 dt-bindings: arm: stm32: Add compatible string for DH electronics STM32MP13xx DHCOR DHSBC board

Add DT compatible string for DH electronics STM32MP13xx DHCOR SoM and DHSBC carrier board. This stm32mp135f-dhcor-dhsbc board is a stack of DHCOR SoM based on STM32MP135F SoC (900MHz / crypto capabilities) populated on DHSBC carrier board.

The SoM contains the following peripherals:
- STPMIC (power delivery)
- 512MB DDR3L memory
- eMMC and SDIO WiFi module

The DHSBC carrier board contains the following peripherals:
- Two RGMII Ethernet ports
- USB-A Host port, USB-C peripheral port, USB-C power supply plug
- Expansion connector

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/stm32/stm32.yaml +6 -0
index bc2f43330ae42..7f61223b8ef24 100644
@@ -59,6 +59,12 @@ properties:
               - prt,prtt1s   # Protonic PRTT1S
           - const: st,stm32mp151
 
+      - description: DH STM32MP135 DHCOR SoM based Boards
+        items:
+          - const: dh,stm32mp135f-dhcor-dhsbc
+          - const: dh,stm32mp131a-dhcor-som
+          - const: st,stm32mp135
+
       - description: DH STM32MP151 DHCOR SoM based Boards
         items:
           - const: dh,stm32mp151a-dhcor-testbench
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/20 ARM: dts: stm32: Add alternate pinmux for MP13 ADC pins

Add another mux option for ADC pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +6 -0
index 27e0c3826789d..03ded41539062 100644
@@ -6,6 +6,12 @@
 #include <dt-bindings/pinctrl/stm32-pinfunc.h>
 
 &pinctrl {
+	adc1_pins_a: adc1-pins-0 {
+		pins {
+			pinmux = <STM32_PINMUX('A', 3, ANALOG)>; /* ADC1 in12 */
+		};
+	};
+
 	adc1_usb_cc_pins_a: adc1-usb-cc-pins-0 {
 		pins {
 			pinmux = <STM32_PINMUX('F', 12, ANALOG)>, /* ADC1 in6 */
Signature · 1 line
2.43.0
#2 lore raw

PATCH 3/20 ARM: dts: stm32: Add alternate pinmux for MP13 ADC CC pins

In reply to Marek Vasut

Add another mux option for ADC CC pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +7 -0
index 03ded41539062..396fb6eee8412 100644
@@ -19,6 +19,13 @@ pins {
 		};
 	};
 
+	adc1_usb_cc_pins_b: adc1-usb-cc-pins-1 {
+		pins {
+			pinmux = <STM32_PINMUX('A', 5, ANALOG)>, /* ADC1_INP2 */
+				 <STM32_PINMUX('F', 13, ANALOG)>; /* ADC1_INP11 */
+		};
+	};
+
 	i2c1_pins_a: i2c1-0 {
 		pins {
 			pinmux = <STM32_PINMUX('D', 12, AF5)>, /* I2C1_SCL */
Signature · 1 line
2.43.0
#3 lore raw

PATCH 4/20 ARM: dts: stm32: Add alternate pinmux for MP13 ETH1 pins

In reply to Marek Vasut

Add another mux option for ETH1 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 46 +++++++++++++++++++++
 1 file changed, 46 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +46 -0
index 396fb6eee8412..c709d64edcc2d 100644
@@ -26,6 +26,52 @@ pins {
 		};
 	};
 
+	eth1_rgmii_pins_a: eth1-rgmii-0 {
+		pins1 {
+			pinmux = <STM32_PINMUX('G', 13, AF11)>, /* ETH_RGMII_TXD0 */
+				 <STM32_PINMUX('G', 14, AF11)>, /* ETH_RGMII_TXD1 */
+				 <STM32_PINMUX('C', 2, AF11)>, /* ETH_RGMII_TXD2 */
+				 <STM32_PINMUX('E', 5, AF10)>, /* ETH_RGMII_TXD3 */
+				 <STM32_PINMUX('B', 11, AF11)>, /* ETH_RGMII_TX_CTL */
+				 <STM32_PINMUX('C', 1, AF11)>, /* ETH_RGMII_GTX_CLK */
+				 <STM32_PINMUX('A', 2, AF11)>, /* ETH_MDIO */
+				 <STM32_PINMUX('G', 2, AF11)>; /* ETH_MDC */
+			bias-disable;
+			drive-push-pull;
+			slew-rate = <2>;
+		};
+
+		pins2 {
+			pinmux = <STM32_PINMUX('C', 4, AF11)>, /* ETH_RGMII_RXD0 */
+				 <STM32_PINMUX('C', 5, AF11)>, /* ETH_RGMII_RXD1 */
+				 <STM32_PINMUX('B', 0, AF11)>, /* ETH_RGMII_RXD2 */
+				 <STM32_PINMUX('B', 1, AF11)>, /* ETH_RGMII_RXD3 */
+				 <STM32_PINMUX('A', 7, AF11)>, /* ETH_RGMII_RX_CTL */
+				 <STM32_PINMUX('D', 7, AF10)>; /* ETH_RGMII_RX_CLK */
+			bias-disable;
+		};
+
+	};
+
+	eth1_rgmii_sleep_pins_a: eth1-rgmii-sleep-0 {
+		pins1 {
+			pinmux = <STM32_PINMUX('G', 13, ANALOG)>, /* ETH_RGMII_TXD0 */
+				 <STM32_PINMUX('G', 14, ANALOG)>, /* ETH_RGMII_TXD1 */
+				 <STM32_PINMUX('C', 2, ANALOG)>, /* ETH_RGMII_TXD2 */
+				 <STM32_PINMUX('E', 5, ANALOG)>, /* ETH_RGMII_TXD3 */
+				 <STM32_PINMUX('B', 11, ANALOG)>, /* ETH_RGMII_TX_CTL */
+				 <STM32_PINMUX('C', 1, ANALOG)>, /* ETH_RGMII_GTX_CLK */
+				 <STM32_PINMUX('A', 2, ANALOG)>, /* ETH_MDIO */
+				 <STM32_PINMUX('G', 2, ANALOG)>, /* ETH_MDC */
+				 <STM32_PINMUX('C', 4, ANALOG)>, /* ETH_RGMII_RXD0 */
+				 <STM32_PINMUX('C', 5, ANALOG)>, /* ETH_RGMII_RXD1 */
+				 <STM32_PINMUX('B', 0, ANALOG)>, /* ETH_RGMII_RXD1 */
+				 <STM32_PINMUX('B', 1, ANALOG)>, /* ETH_RGMII_RXD1 */
+				 <STM32_PINMUX('A', 7, ANALOG)>, /* ETH_RGMII_RX_CTL */
+				 <STM32_PINMUX('D', 7, ANALOG)>; /* ETH_RGMII_RX_CLK */
+		};
+	};
+
 	i2c1_pins_a: i2c1-0 {
 		pins {
 			pinmux = <STM32_PINMUX('D', 12, AF5)>, /* I2C1_SCL */
Signature · 1 line
2.43.0
#4 lore raw

PATCH 5/20 ARM: dts: stm32: Add alternate pinmux for MP13 ETH2 pins

In reply to Marek Vasut

Add another mux option for ETH2 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 45 +++++++++++++++++++++
 1 file changed, 45 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +45 -0
index c709d64edcc2d..899f0f98e1a65 100644
@@ -72,6 +72,51 @@ pins1 {
 		};
 	};
 
+	eth2_rgmii_pins_a: eth2-rgmii-0 {
+		pins1 {
+			pinmux = <STM32_PINMUX('F', 7, AF11)>, /* ETH_RGMII_TXD0 */
+				 <STM32_PINMUX('G', 11, AF10)>, /* ETH_RGMII_TXD1 */
+				 <STM32_PINMUX('G', 1, AF10)>, /* ETH_RGMII_TXD2 */
+				 <STM32_PINMUX('E', 6, AF11)>, /* ETH_RGMII_TXD3 */
+				 <STM32_PINMUX('F', 6, AF11)>, /* ETH_RGMII_TX_CTL */
+				 <STM32_PINMUX('G', 3, AF10)>, /* ETH_RGMII_GTX_CLK */
+				 <STM32_PINMUX('B', 6, AF11)>, /* ETH_MDIO */
+				 <STM32_PINMUX('G', 5, AF10)>; /* ETH_MDC */
+			bias-disable;
+			drive-push-pull;
+			slew-rate = <2>;
+		};
+
+		pins2 {
+			pinmux = <STM32_PINMUX('F', 4, AF11)>, /* ETH_RGMII_RXD0 */
+				 <STM32_PINMUX('E', 2, AF10)>, /* ETH_RGMII_RXD1 */
+				 <STM32_PINMUX('H', 6, AF12)>, /* ETH_RGMII_RXD2 */
+				 <STM32_PINMUX('A', 8, AF11)>, /* ETH_RGMII_RXD3 */
+				 <STM32_PINMUX('A', 12, AF11)>, /* ETH_RGMII_RX_CTL */
+				 <STM32_PINMUX('H', 11, AF11)>; /* ETH_RGMII_RX_CLK */
+			bias-disable;
+		};
+	};
+
+	eth2_rgmii_sleep_pins_a: eth2-rgmii-sleep-0 {
+		pins1 {
+			pinmux = <STM32_PINMUX('F', 7, ANALOG)>, /* ETH_RGMII_TXD0 */
+				 <STM32_PINMUX('G', 11, ANALOG)>, /* ETH_RGMII_TXD1 */
+				 <STM32_PINMUX('G', 11, ANALOG)>, /* ETH_RGMII_TXD2 */
+				 <STM32_PINMUX('G', 11, ANALOG)>, /* ETH_RGMII_TXD3 */
+				 <STM32_PINMUX('G', 8, ANALOG)>, /* ETH_RGMII_TX_CTL */
+				 <STM32_PINMUX('F', 6, ANALOG)>, /* ETH_RGMII_GTX_CLK */
+				 <STM32_PINMUX('B', 2, ANALOG)>, /* ETH_MDIO */
+				 <STM32_PINMUX('G', 5, ANALOG)>, /* ETH_MDC */
+				 <STM32_PINMUX('F', 4, ANALOG)>, /* ETH_RGMII_RXD0 */
+				 <STM32_PINMUX('E', 2, ANALOG)>, /* ETH_RGMII_RXD1 */
+				 <STM32_PINMUX('E', 2, ANALOG)>, /* ETH_RGMII_RXD2 */
+				 <STM32_PINMUX('E', 2, ANALOG)>, /* ETH_RGMII_RXD3 */
+				 <STM32_PINMUX('A', 12, ANALOG)>, /* ETH_RGMII_RX_CTL */
+				 <STM32_PINMUX('H', 11, ANALOG)>; /* ETH_RGMII_RX_CLK */
+		};
+	};
+
 	i2c1_pins_a: i2c1-0 {
 		pins {
 			pinmux = <STM32_PINMUX('D', 12, AF5)>, /* I2C1_SCL */
Signature · 1 line
2.43.0
#5 lore raw

PATCH 6/20 ARM: dts: stm32: Add alternate pinmux for MP13 I2C5 pins

In reply to Marek Vasut

Add another mux option for I2C5 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +17 -0
index 899f0f98e1a65..cfbae71efc729 100644
@@ -151,6 +151,23 @@ pins {
 		};
 	};
 
+	i2c5_pins_b: i2c5-1 {
+		pins {
+			pinmux = <STM32_PINMUX('D', 1, AF4)>, /* I2C5_SCL */
+				 <STM32_PINMUX('E', 13, AF4)>; /* I2C5_SDA */
+			bias-disable;
+			drive-open-drain;
+			slew-rate = <0>;
+		};
+	};
+
+	i2c5_sleep_pins_b: i2c5-sleep-1 {
+		pins {
+			pinmux = <STM32_PINMUX('D', 1, ANALOG)>, /* I2C5_SCL */
+				 <STM32_PINMUX('E', 13, ANALOG)>; /* I2C5_SDA */
+		};
+	};
+
 	mcp23017_pins_a: mcp23017-0 {
 		pins {
 			pinmux = <STM32_PINMUX('G', 12, GPIO)>;
Signature · 1 line
2.43.0
#6 lore raw

PATCH 7/20 ARM: dts: stm32: Add alternate pinmux for MP13 MCAN1 pins

In reply to Marek Vasut

Add another mux option for MCAN1 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +20 -0
index cfbae71efc729..b38174504fffa 100644
@@ -168,6 +168,26 @@ pins {
 		};
 	};
 
+	m_can1_pins_a: m-can1-0 {
+		pins1 {
+			pinmux = <STM32_PINMUX('G', 10, AF9)>; /* CAN1_TX */
+			slew-rate = <1>;
+			drive-push-pull;
+			bias-disable;
+		};
+		pins2 {
+			pinmux = <STM32_PINMUX('D', 0, AF9)>; /* CAN1_RX */
+			bias-disable;
+		};
+	};
+
+	m_can1_sleep_pins_a: m_can1-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('G', 10, ANALOG)>, /* CAN1_TX */
+				 <STM32_PINMUX('D', 0, ANALOG)>; /* CAN1_RX */
+		};
+	};
+
 	mcp23017_pins_a: mcp23017-0 {
 		pins {
 			pinmux = <STM32_PINMUX('G', 12, GPIO)>;
Signature · 1 line
2.43.0
#7 lore raw

PATCH 8/20 ARM: dts: stm32: Add alternate pinmux for MP13 MCAN2 pins

In reply to Marek Vasut

Add another mux option for MCAN2 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +20 -0
index b38174504fffa..b58bf6c00244c 100644
@@ -188,6 +188,26 @@ pins {
 		};
 	};
 
+	m_can2_pins_a: m-can2-0 {
+		pins1 {
+			pinmux = <STM32_PINMUX('G', 0, AF9)>; /* CAN2_TX */
+			slew-rate = <1>;
+			drive-push-pull;
+			bias-disable;
+		};
+		pins2 {
+			pinmux = <STM32_PINMUX('E', 0, AF9)>; /* CAN2_RX */
+			bias-disable;
+		};
+	};
+
+	m_can2_sleep_pins_a: m_can2-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('G', 0, ANALOG)>, /* CAN2_TX */
+				 <STM32_PINMUX('E', 0, ANALOG)>; /* CAN2_RX */
+		};
+	};
+
 	mcp23017_pins_a: mcp23017-0 {
 		pins {
 			pinmux = <STM32_PINMUX('G', 12, GPIO)>;
Signature · 1 line
2.43.0
#8 lore raw

PATCH 9/20 ARM: dts: stm32: Add alternate pinmux for MP13 PWM5 pins

In reply to Marek Vasut

Add another mux option for PWM5 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +15 -0
index b58bf6c00244c..d19408f19f97a 100644
@@ -245,6 +245,21 @@ pins {
 		};
 	};
 
+	pwm5_pins_a: pwm5-0 {
+		pins {
+			pinmux = <STM32_PINMUX('H', 12, AF2)>; /* TIM5_CH3 */
+			bias-pull-down;
+			drive-push-pull;
+			slew-rate = <0>;
+		};
+	};
+
+	pwm5_sleep_pins_a: pwm5-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('H', 12, ANALOG)>; /* TIM5_CH3 */
+		};
+	};
+
 	pwm8_pins_a: pwm8-0 {
 		pins {
 			pinmux = <STM32_PINMUX('E', 5, AF3)>; /* TIM8_CH3 */
Signature · 1 line
2.43.0
#9 lore raw

PATCH 10/20 ARM: dts: stm32: Add alternate pinmux for MP13 PWM13 pins

In reply to Marek Vasut

Add another mux option for PWM13 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +15 -0
index d19408f19f97a..cf070fbd7f708 100644
@@ -275,6 +275,21 @@ pins {
 		};
 	};
 
+	pwm13_pins_a: pwm13-0 {
+		pins {
+			pinmux = <STM32_PINMUX('A', 6, AF9)>; /* TIM13_CH1 */
+			bias-pull-down;
+			drive-push-pull;
+			slew-rate = <0>;
+		};
+	};
+
+	pwm13_sleep_pins_a: pwm13-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('A', 6, ANALOG)>; /* TIM13_CH1 */
+		};
+	};
+
 	pwm14_pins_a: pwm14-0 {
 		pins {
 			pinmux = <STM32_PINMUX('F', 9, AF9)>; /* TIM14_CH1 */
Signature · 1 line
2.43.0
#10 lore raw

PATCH 11/20 ARM: dts: stm32: Add alternate pinmux for MP13 QSPI pins

In reply to Marek Vasut

Add another mux option for QSPI pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 51 +++++++++++++++++++++
 1 file changed, 51 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +51 -0
index cf070fbd7f708..77a222903de84 100644
@@ -305,6 +305,57 @@ pins {
 		};
 	};
 
+	qspi_clk_pins_a: qspi-clk-0 {
+		pins {
+			pinmux = <STM32_PINMUX('F', 10, AF9)>; /* QSPI_CLK */
+			bias-disable;
+			drive-push-pull;
+			slew-rate = <3>;
+		};
+	};
+
+	qspi_clk_sleep_pins_a: qspi-clk-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('F', 10, ANALOG)>; /* QSPI_CLK */
+		};
+	};
+
+	qspi_bk1_pins_a: qspi-bk1-0 {
+		pins {
+			pinmux = <STM32_PINMUX('F', 8, AF10)>, /* QSPI_BK1_IO0 */
+				 <STM32_PINMUX('F', 9, AF10)>, /* QSPI_BK1_IO1 */
+				 <STM32_PINMUX('D', 11, AF9)>, /* QSPI_BK1_IO2 */
+				 <STM32_PINMUX('H', 7, AF13)>; /* QSPI_BK1_IO3 */
+			bias-disable;
+			drive-push-pull;
+			slew-rate = <1>;
+		};
+	};
+
+	qspi_bk1_sleep_pins_a: qspi-bk1-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('F', 8, ANALOG)>, /* QSPI_BK1_IO0 */
+				 <STM32_PINMUX('F', 9, ANALOG)>, /* QSPI_BK1_IO1 */
+				 <STM32_PINMUX('D', 11, ANALOG)>, /* QSPI_BK1_IO2 */
+				 <STM32_PINMUX('H', 7, ANALOG)>; /* QSPI_BK1_IO3 */
+		};
+	};
+
+	qspi_cs1_pins_a: qspi-cs1-0 {
+		pins {
+			pinmux = <STM32_PINMUX('B', 2, AF9)>; /* QSPI_BK1_NCS */
+			bias-pull-up;
+			drive-push-pull;
+			slew-rate = <1>;
+		};
+	};
+
+	qspi_cs1_sleep_pins_a: qspi-cs1-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('B', 2, ANALOG)>; /* QSPI_BK1_NCS */
+		};
+	};
+
 	sdmmc1_b4_pins_a: sdmmc1-b4-0 {
 		pins {
 			pinmux = <STM32_PINMUX('C', 8, AF12)>, /* SDMMC1_D0 */
Signature · 1 line
2.43.0
#11 lore raw

PATCH 12/20 ARM: dts: stm32: Add alternate pinmux for MP13 SAI1 pins

In reply to Marek Vasut

Add another mux option for SAI1 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 32 +++++++++++++++++++++
 1 file changed, 32 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +32 -0
index 77a222903de84..f2b41104a589f 100644
@@ -356,6 +356,38 @@ pins {
 		};
 	};
 
+	sai1a_pins_a: sai1a-0 {
+		pins {
+			pinmux = <STM32_PINMUX('A', 4, AF12)>, /* SAI1_SCK_A */
+				 <STM32_PINMUX('D', 6, AF6)>, /* SAI1_SD_A */
+				 <STM32_PINMUX('E', 11, AF6)>; /* SAI1_FS_A */
+			slew-rate = <0>;
+			drive-push-pull;
+			bias-disable;
+		};
+	};
+
+	sai1a_sleep_pins_a: sai1a-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('A', 4, ANALOG)>, /* SAI1_SCK_A */
+				 <STM32_PINMUX('D', 6, ANALOG)>, /* SAI1_SD_A */
+				 <STM32_PINMUX('E', 11, ANALOG)>; /* SAI1_FS_A */
+		};
+	};
+
+	sai1b_pins_a: sai1b-0 {
+		pins {
+			pinmux = <STM32_PINMUX('A', 0, AF6)>; /* SAI1_SD_B */
+			bias-disable;
+		};
+	};
+
+	sai1b_sleep_pins_a: sai1b-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('A', 0, ANALOG)>; /* SAI1_SD_B */
+		};
+	};
+
 	sdmmc1_b4_pins_a: sdmmc1-b4-0 {
 		pins {
 			pinmux = <STM32_PINMUX('C', 8, AF12)>, /* SDMMC1_D0 */
Signature · 1 line
2.43.0
#12 lore raw

PATCH 13/20 ARM: dts: stm32: Add alternate pinmux for MP13 SDMMC2 D4..D7 pins

In reply to Marek Vasut

Add another mux option for SDMMC2 D4..D7 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +21 -0
index f2b41104a589f..c6967e82b5d2e 100644
@@ -490,6 +490,27 @@ pins {
 		};
 	};
 
+	sdmmc2_d47_pins_a: sdmmc2-d47-0 {
+		pins {
+			pinmux = <STM32_PINMUX('F', 0, AF10)>, /* SDMMC2_D4 */
+				 <STM32_PINMUX('B', 9, AF10)>, /* SDMMC2_D5 */
+				 <STM32_PINMUX('C', 6, AF10)>, /* SDMMC2_D6 */
+				 <STM32_PINMUX('C', 7, AF10)>; /* SDMMC2_D7 */
+			slew-rate = <1>;
+			drive-push-pull;
+			bias-pull-up;
+		};
+	};
+
+	sdmmc2_d47_sleep_pins_a: sdmmc2-d47-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('F', 0, ANALOG)>, /* SDMMC2_D4 */
+				 <STM32_PINMUX('B', 9, ANALOG)>, /* SDMMC2_D5 */
+				 <STM32_PINMUX('C', 6, ANALOG)>, /* SDMMC2_D6 */
+				 <STM32_PINMUX('C', 7, ANALOG)>; /* SDMMC2_D7 */
+		};
+	};
+
 	spi5_pins_a: spi5-0 {
 		pins1 {
 			pinmux = <STM32_PINMUX('H', 7, AF6)>, /* SPI5_SCK */
Signature · 1 line
2.43.0
#13 lore raw

PATCH 14/20 ARM: dts: stm32: Add alternate pinmux for MP13 SPI2 pins

In reply to Marek Vasut

Add another mux option for SPI2 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 23 +++++++++++++++++++++
 1 file changed, 23 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +23 -0
index c6967e82b5d2e..17acd2850d381 100644
@@ -511,6 +511,29 @@ pins {
 		};
 	};
 
+	spi2_pins_a: spi2-0 {
+		pins1 {
+			pinmux = <STM32_PINMUX('B', 10, AF6)>, /* SPI2_SCK */
+				 <STM32_PINMUX('H', 10, AF6)>; /* SPI2_MOSI */
+			bias-disable;
+			drive-push-pull;
+			slew-rate = <1>;
+		};
+
+		pins2 {
+			pinmux = <STM32_PINMUX('B', 5, AF5)>; /* SPI2_MISO */
+			bias-disable;
+		};
+	};
+
+	spi2_sleep_pins_a: spi2-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('B', 10, ANALOG)>, /* SPI2_SCK */
+				 <STM32_PINMUX('B', 5, ANALOG)>, /* SPI2_MISO */
+				 <STM32_PINMUX('H', 10, ANALOG)>; /* SPI2_MOSI */
+		};
+	};
+
 	spi5_pins_a: spi5-0 {
 		pins1 {
 			pinmux = <STM32_PINMUX('H', 7, AF6)>, /* SPI5_SCK */
Signature · 1 line
2.43.0
#14 lore raw

PATCH 15/20 ARM: dts: stm32: Add alternate pinmux for MP13 SPI3 pins

In reply to Marek Vasut

Add another mux option for SPI3 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 23 +++++++++++++++++++++
 1 file changed, 23 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +23 -0
index 17acd2850d381..7abd227e69f4b 100644
@@ -534,6 +534,29 @@ pins {
 		};
 	};
 
+	spi3_pins_a: spi3-0 {
+		pins1 {
+			pinmux = <STM32_PINMUX('H', 13, AF6)>, /* SPI3_SCK */
+				 <STM32_PINMUX('F', 1, AF5)>; /* SPI3_MOSI */
+			bias-disable;
+			drive-push-pull;
+			slew-rate = <1>;
+		};
+
+		pins2 {
+			pinmux = <STM32_PINMUX('D', 4, AF5)>; /* SPI3_MISO */
+			bias-disable;
+		};
+	};
+
+	spi3_sleep_pins_a: spi3-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('H', 13, ANALOG)>, /* SPI3_SCK */
+				 <STM32_PINMUX('D', 4, ANALOG)>, /* SPI3_MISO */
+				 <STM32_PINMUX('F', 1, ANALOG)>; /* SPI3_MOSI */
+		};
+	};
+
 	spi5_pins_a: spi5-0 {
 		pins1 {
 			pinmux = <STM32_PINMUX('H', 7, AF6)>, /* SPI5_SCK */
Signature · 1 line
2.43.0
#15 lore raw

PATCH 16/20 ARM: dts: stm32: Add alternate pinmux for MP13 USART1 pins

In reply to Marek Vasut

Add another mux option for USART1 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 30 +++++++++++++++++++++
 1 file changed, 30 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +30 -0
index 7abd227e69f4b..dae015a0ddf86 100644
@@ -688,6 +688,36 @@ pins {
 		};
 	};
 
+	usart1_pins_b: usart1-1 {
+		pins1 {
+			pinmux = <STM32_PINMUX('C', 0, AF7)>; /* USART1_TX */
+			bias-disable;
+			drive-push-pull;
+			slew-rate = <0>;
+		};
+		pins2 {
+			pinmux = <STM32_PINMUX('D', 14, AF7)>; /* USART1_RX */
+			bias-pull-up;
+		};
+	};
+
+	usart1_idle_pins_b: usart1-idle-1 {
+		pins1 {
+			pinmux = <STM32_PINMUX('C', 0, ANALOG)>; /* USART1_TX */
+		};
+		pins2 {
+			pinmux = <STM32_PINMUX('D', 14, AF7)>; /* USART1_RX */
+			bias-pull-up;
+		};
+	};
+
+	usart1_sleep_pins_b: usart1-sleep-1 {
+		pins {
+			pinmux = <STM32_PINMUX('C', 0, ANALOG)>, /* USART1_TX */
+				 <STM32_PINMUX('D', 14, ANALOG)>; /* USART1_RX */
+		};
+	};
+
 	usart2_pins_a: usart2-0 {
 		pins1 {
 			pinmux = <STM32_PINMUX('H', 12, AF1)>, /* USART2_TX */
Signature · 1 line
2.43.0
#16 lore raw

PATCH 17/20 ARM: dts: stm32: Add alternate pinmux for MP13 USART2 pins

In reply to Marek Vasut

Add another mux option for USART2 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 41 +++++++++++++++++++++
 1 file changed, 41 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +41 -0
index dae015a0ddf86..65f91265a4d4a 100644
@@ -758,4 +758,45 @@ pins {
 				 <STM32_PINMUX('E', 11, ANALOG)>; /* USART2_CTS_NSS */
 		};
 	};
+
+	usart2_pins_b: usart2-0 {
+		pins1 {
+			pinmux = <STM32_PINMUX('F', 11, AF1)>, /* USART2_TX */
+				 <STM32_PINMUX('A', 1, AF7)>; /* USART2_RTS */
+			bias-disable;
+			drive-push-pull;
+			slew-rate = <0>;
+		};
+		pins2 {
+			pinmux = <STM32_PINMUX('D', 15, AF1)>, /* USART2_RX */
+				 <STM32_PINMUX('E', 15, AF3)>; /* USART2_CTS_NSS */
+			bias-disable;
+		};
+	};
+
+	usart2_idle_pins_b: usart2-idle-0 {
+		pins1 {
+			pinmux = <STM32_PINMUX('F', 11, ANALOG)>, /* USART2_TX */
+				 <STM32_PINMUX('E', 15, ANALOG)>; /* USART2_CTS_NSS */
+		};
+		pins2 {
+			pinmux = <STM32_PINMUX('A', 1, AF7)>; /* USART2_RTS */
+			bias-disable;
+			drive-push-pull;
+			slew-rate = <0>;
+		};
+		pins3 {
+			pinmux = <STM32_PINMUX('D', 15, AF1)>; /* USART2_RX */
+			bias-disable;
+		};
+	};
+
+	usart2_sleep_pins_b: usart2-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('F', 11, ANALOG)>, /* USART2_TX */
+				 <STM32_PINMUX('A', 1, ANALOG)>, /* USART2_RTS */
+				 <STM32_PINMUX('D', 15, ANALOG)>, /* USART2_RX */
+				 <STM32_PINMUX('E', 15, ANALOG)>; /* USART2_CTS_NSS */
+		};
+	};
 };
Signature · 1 line
2.43.0
#17 lore raw

PATCH 18/20 ARM: dts: stm32: Add alternate pinmux for MP13 UART4 pins

In reply to Marek Vasut

Add another mux option for UART4 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 30 +++++++++++++++++++++
 1 file changed, 30 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +30 -0
index 65f91265a4d4a..7014c7a6d23e6 100644
@@ -617,6 +617,36 @@ pins {
 		};
 	};
 
+	uart4_pins_b: uart4-1 {
+		pins1 {
+			pinmux = <STM32_PINMUX('A', 9, AF8)>; /* UART4_TX */
+			bias-disable;
+			drive-push-pull;
+			slew-rate = <0>;
+		};
+		pins2 {
+			pinmux = <STM32_PINMUX('D', 8, AF8)>; /* UART4_RX */
+			bias-pull-up;
+		};
+	};
+
+	uart4_idle_pins_b: uart4-idle-1 {
+		pins1 {
+			pinmux = <STM32_PINMUX('A', 9, ANALOG)>; /* UART4_TX */
+		};
+		pins2 {
+			pinmux = <STM32_PINMUX('D', 8, AF8)>; /* UART4_RX */
+			bias-pull-up;
+		};
+	};
+
+	uart4_sleep_pins_b: uart4-sleep-1 {
+		pins {
+			pinmux = <STM32_PINMUX('A', 9, ANALOG)>, /* UART4_TX */
+				 <STM32_PINMUX('D', 8, ANALOG)>; /* UART4_RX */
+		};
+	};
+
 	uart8_pins_a: uart8-0 {
 		pins1 {
 			pinmux = <STM32_PINMUX('E', 1, AF8)>; /* UART8_TX */
Signature · 1 line
2.43.0
#18 lore raw

PATCH 19/20 ARM: dts: stm32: Add alternate pinmux for MP13 UART7 pins

In reply to Marek Vasut

Add another mux option for UART7 pins, this is used on DH electronics STM32MP13xx DHCOR DHSBC board.

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi | 41 +++++++++++++++++++++
 1 file changed, 41 insertions(+)
arch/arm/boot/dts/st/stm32mp13-pinctrl.dtsi +41 -0
index 7014c7a6d23e6..c01d39f03ea41 100644
@@ -647,6 +647,47 @@ pins {
 		};
 	};
 
+	uart7_pins_a: uart7-0 {
+		pins1 {
+			pinmux = <STM32_PINMUX('H', 2, AF8)>, /* UART7_TX */
+				 <STM32_PINMUX('B', 12, AF7)>; /* UART7_RTS */
+			bias-disable;
+			drive-push-pull;
+			slew-rate = <0>;
+		};
+		pins2 {
+			pinmux = <STM32_PINMUX('E', 10, AF7)>, /* UART7_RX */
+				 <STM32_PINMUX('G', 7, AF8)>; /* UART7_CTS_NSS */
+			bias-disable;
+		};
+	};
+
+	uart7_idle_pins_a: uart7-idle-0 {
+		pins1 {
+			pinmux = <STM32_PINMUX('H', 2, ANALOG)>, /* UART7_TX */
+				 <STM32_PINMUX('G', 7, ANALOG)>; /* UART7_CTS_NSS */
+		};
+		pins2 {
+			pinmux = <STM32_PINMUX('B', 12, AF7)>; /* UART7_RTS */
+			bias-disable;
+			drive-push-pull;
+			slew-rate = <0>;
+		};
+		pins3 {
+			pinmux = <STM32_PINMUX('E', 10, AF7)>; /* UART7_RX */
+			bias-disable;
+		};
+	};
+
+	uart7_sleep_pins_a: uart7-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('H', 2, ANALOG)>, /* UART7_TX */
+				 <STM32_PINMUX('B', 12, ANALOG)>, /* UART7_RTS */
+				 <STM32_PINMUX('E', 10, ANALOG)>, /* UART7_RX */
+				 <STM32_PINMUX('G', 7, ANALOG)>; /* UART7_CTS_NSS */
+		};
+	};
+
 	uart8_pins_a: uart8-0 {
 		pins1 {
 			pinmux = <STM32_PINMUX('E', 1, AF8)>; /* UART8_TX */
Signature · 1 line
2.43.0
#19 lore raw

PATCH 20/20 ARM: dts: stm32: Add support for STM32MP13xx DHCOR SoM and DHSBC board

In reply to Marek Vasut

This stm32mp135f-dhcor-dhsbc board is a stack of DHCOR SoM based on STM32MP135F SoC (900MHz / crypto capabilities) populated on DHSBC carrier board.

The SoM contains the following peripherals:
- STPMIC (power delivery)
- 512MB DDR3L memory
- eMMC and SDIO WiFi module

The DHSBC carrier board contains the following peripherals:
- Two RGMII Ethernet ports
- USB-A Host port, USB-C peripheral port, USB-C power supply plug
- Expansion connector

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/Makefile                 |   1 +
 .../boot/dts/st/stm32mp135f-dhcor-dhsbc.dts   | 321 ++++++++++++++++++
 .../boot/dts/st/stm32mp13xx-dhcor-som.dtsi    | 308 +++++++++++++++++
 3 files changed, 630 insertions(+)
 create mode 100644 arch/arm/boot/dts/st/stm32mp135f-dhcor-dhsbc.dts
 create mode 100644 arch/arm/boot/dts/st/stm32mp13xx-dhcor-som.dtsi
arch/arm/boot/dts/st/Makefile +1 -0
index 9fedd6776208e..db9718059ae2f 100644
@@ -29,6 +29,7 @@ dtb-$(CONFIG_ARCH_STM32) += \
 	stm32h743i-eval.dtb \
 	stm32h743i-disco.dtb \
 	stm32h750i-art-pi.dtb \
+	stm32mp135f-dhsom-dhsbc.dtb \
 	stm32mp135f-dk.dtb \
 	stm32mp151a-prtt1a.dtb \
 	stm32mp151a-prtt1c.dtb \
arch/arm/boot/dts/st/stm32mp135f-dhcor-dhsbc.dts new file +321 -0

321 lines not on this page · raw message

arch/arm/boot/dts/st/stm32mp13xx-dhcor-som.dtsi new file +308 -0

308 lines not on this page · raw message

Signature · 1 line
2.43.0
#20 lore raw
In reply to Marek Vasut
Quoted 42 lines · Marek Vasut

Add DT compatible string for DH electronics STM32MP13xx DHCOR SoM and DHSBC carrier board. This stm32mp135f-dhcor-dhsbc board is a stack of DHCOR SoM based on STM32MP135F SoC (900MHz / crypto capabilities) populated on DHSBC carrier board.

The SoM contains the following peripherals:
- STPMIC (power delivery)
- 512MB DDR3L memory
- eMMC and SDIO WiFi module

The DHSBC carrier board contains the following peripherals:
- Two RGMII Ethernet ports
- USB-A Host port, USB-C peripheral port, USB-C power supply plug
- Expansion connector

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/stm32/stm32.yaml +0 -0
index bc2f43330ae42..7f61223b8ef24 100644

Documentation/devicetree/bindings/arm/stm32/stm32.yaml properties: · line 66

Quoted 8 lines
Documentation/devicetree/bindings/arm/stm32/stm32.yaml +5 -0
@@ -59,6 +59,12 @@ properties:
               - prt,prtt1s   # Protonic PRTT1S
           - const: st,stm32mp151
 
+      - description: DH STM32MP135 DHCOR SoM based Boards
+        items:
+          - const: dh,stm32mp135f-dhcor-dhsbc
+          - const: dh,stm32mp131a-dhcor-som
+          - const: st,stm32mp135

The entries look ordered by last compatible, so this breaks the order.

Best regards,
Krzysztof

#21 lore raw
Quoted 46 lines · Krzysztof Kozlowski
Quoted 45 lines · Marek Vasut

Add DT compatible string for DH electronics STM32MP13xx DHCOR SoM and DHSBC carrier board. This stm32mp135f-dhcor-dhsbc board is a stack of DHCOR SoM based on STM32MP135F SoC (900MHz / crypto capabilities) populated on DHSBC carrier board.

The SoM contains the following peripherals:
- STPMIC (power delivery)
- 512MB DDR3L memory
- eMMC and SDIO WiFi module

The DHSBC carrier board contains the following peripherals:
- Two RGMII Ethernet ports
- USB-A Host port, USB-C peripheral port, USB-C power supply plug
- Expansion connector

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
  Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 6 ++++++
  1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/stm32/stm32.yaml +0 -0
index bc2f43330ae42..7f61223b8ef24 100644
@@ -59,6 +59,12 @@ properties:
                - prt,prtt1s   # Protonic PRTT1S
            - const: st,stm32mp151
 
Quoted 7 lines

Documentation/devicetree/bindings/arm/stm32/stm32.yaml properties: · line 66

Quoted 5 lines
Documentation/devicetree/bindings/arm/stm32/stm32.yaml +5 -0
+      - description: DH STM32MP135 DHCOR SoM based Boards
+        items:
+          - const: dh,stm32mp135f-dhcor-dhsbc
+          - const: dh,stm32mp131a-dhcor-som
+          - const: st,stm32mp135

The entries look ordered by last compatible, so this breaks the order.

And uh ... I will not do last minute changes before sending out large series next time, sorry.

I'll wait for Alex to see if 02..19 better be squashed or separate, and then fix this up and send V2.

Thanks

maintainer
#23 lore raw
In reply to Marek Vasut
Quoted 42 lines · Marek Vasut

Add DT compatible string for DH electronics STM32MP13xx DHCOR SoM and DHSBC carrier board. This stm32mp135f-dhcor-dhsbc board is a stack of DHCOR SoM based on STM32MP135F SoC (900MHz / crypto capabilities) populated on DHSBC carrier board.

The SoM contains the following peripherals:
- STPMIC (power delivery)
- 512MB DDR3L memory
- eMMC and SDIO WiFi module

The DHSBC carrier board contains the following peripherals:
- Two RGMII Ethernet ports
- USB-A Host port, USB-C peripheral port, USB-C power supply plug
- Expansion connector

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/stm32/stm32.yaml +0 -0
index bc2f43330ae42..7f61223b8ef24 100644

Documentation/devicetree/bindings/arm/stm32/stm32.yaml properties: · line 65

Quoted 7 lines
Documentation/devicetree/bindings/arm/stm32/stm32.yaml +4 -0
@@ -59,6 +59,12 @@ properties:
               - prt,prtt1s   # Protonic PRTT1S
           - const: st,stm32mp151
 
+      - description: DH STM32MP135 DHCOR SoM based Boards
+        items:
+          - const: dh,stm32mp135f-dhcor-dhsbc
+          - const: dh,stm32mp131a-dhcor-som

Either this or your dts is wrong. Either way, please test your dts files against the schemas.

Quoted 8 lines
Documentation/devicetree/bindings/arm/stm32/stm32.yaml +2 -0
+          - const: st,stm32mp135
+
       - description: DH STM32MP151 DHCOR SoM based Boards
         items:
           - const: dh,stm32mp151a-dhcor-testbench
Signature · 1 line
2.43.0
#24 lore raw
Quoted 46 lines · Rob Herring
Quoted 45 lines · Marek Vasut

Add DT compatible string for DH electronics STM32MP13xx DHCOR SoM and DHSBC carrier board. This stm32mp135f-dhcor-dhsbc board is a stack of DHCOR SoM based on STM32MP135F SoC (900MHz / crypto capabilities) populated on DHSBC carrier board.

The SoM contains the following peripherals:
- STPMIC (power delivery)
- 512MB DDR3L memory
- eMMC and SDIO WiFi module

The DHSBC carrier board contains the following peripherals:
- Two RGMII Ethernet ports
- USB-A Host port, USB-C peripheral port, USB-C power supply plug
- Expansion connector

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
  Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 6 ++++++
  1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/stm32/stm32.yaml +0 -0
index bc2f43330ae42..7f61223b8ef24 100644
@@ -59,6 +59,12 @@ properties:
                - prt,prtt1s   # Protonic PRTT1S
            - const: st,stm32mp151
 
Quoted 7 lines

Documentation/devicetree/bindings/arm/stm32/stm32.yaml properties: · line 65

Quoted 4 lines
Documentation/devicetree/bindings/arm/stm32/stm32.yaml +4 -0
+      - description: DH STM32MP135 DHCOR SoM based Boards
+        items:
+          - const: dh,stm32mp135f-dhcor-dhsbc
+          - const: dh,stm32mp131a-dhcor-som

Either this or your dts is wrong. Either way, please test your dts files against the schemas.

Yes, I know ... last minute change went wrong, sorry.

maintainer
#22 lore raw
In reply to Marek Vasut

Hi Marek

Quoted 54 lines · Marek Vasut
Quoted 38 lines · Krzysztof Kozlowski
Quoted 37 lines · Marek Vasut

Add DT compatible string for DH electronics STM32MP13xx DHCOR SoM and DHSBC carrier board. This stm32mp135f-dhcor-dhsbc board is a stack of DHCOR SoM based on STM32MP135F SoC (900MHz / crypto capabilities) populated on DHSBC carrier board.

The SoM contains the following peripherals:
- STPMIC (power delivery)
- 512MB DDR3L memory
- eMMC and SDIO WiFi module

The DHSBC carrier board contains the following peripherals:
- Two RGMII Ethernet ports
- USB-A Host port, USB-C peripheral port, USB-C power supply plug
- Expansion connector

---
Cc: "Leonard Göhrs" <[email protected]>
Cc: Ahmad Fatoum <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Dario Binacchi <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sean Nyekjaer <[email protected]>
Cc: Steffen Trumtrar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
  Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 6 ++++++

  1 file changed, 6 insertions(+)
Quoted 14 lines
Quoted 5 lines
Documentation/devicetree/bindings/arm/stm32/stm32.yaml +0 -0
index bc2f43330ae42..7f61223b8ef24 100644
@@ -59,6 +59,12 @@ properties:
Quoted 7 lines

                - prt,prtt1s   # Protonic PRTT1S
            - const: st,stm32mp151
+      - description: DH STM32MP135 DHCOR SoM based Boards +        items:
+          - const: dh,stm32mp135f-dhcor-dhsbc
+          - const: dh,stm32mp131a-dhcor-som
+          - const: st,stm32mp135

The entries look ordered by last compatible, so this breaks the order.

Quoted 3 lines

And uh ... I will not do last minute changes before sending out large series next time, sorry.

I'll wait for Alex to see if 02..19 better be squashed or separate, and then fix this up and send V2.

Yes I would prefer that you squash pins definition patches.

Thanks
Alex

Quoted 2 lines

Thanks