Skip to contentSkip to conversation

dt-bindings: vendor-prefixes: Add Ultratronik

PATCH Superseded Goran Rađenović 3 participants 10 messages May 5, 2025 – May 12, 2025 1 message not in the archive

Subsystems (3)

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Goran Rađenović

author maintainer
#1 lore raw

PATCH v5 1/4 dt-bindings: vendor-prefixes: Add Ultratronik

Ultratronik GmbH is a German electronics company:
https://www.ultratronik-ems.de/

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 86f6a19b28ae..e9f534c21bf5 100644
@@ -1607,6 +1607,8 @@ patternProperties:
     description: Universal Scientific Industrial Co., Ltd.
   "^usr,.*":
     description: U.S. Robotics Corporation
+  "^ultratronik,.*":
+    description: Ultratronik GmbH
   "^utoo,.*":
     description: Aigo Digital Technology Co., Ltd.
   "^v3,.*":
Signature · 1 line
2.43.0
author maintainer
#2 lore raw

PATCH v5 2/4 dt-bindings: arm: stm32: Document Ultratronik's Fly board DT binding

In reply to a message not in the archive

This commit documents ultra-fly-sbc devicetree binding based on STM32MP157 SoC.

---
 Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/stm32/stm32.yaml +5 -0
index 5fee2f38ff25..65c4dcdbdf1d 100644
@@ -184,6 +184,11 @@ properties:
           - const: phytec,phycore-stm32mp157c-som
           - const: st,stm32mp157
 
+      - description: Ultratronik STM32MP1 SBC based Boards
+        items:
+          - const: ultratronik,stm32mp157c-ultra-fly-sbc
+          - const: st,stm32mp157
+
       - description: ST STM32MP257 based Boards
         items:
           - enum:
Signature · 1 line
2.43.0
author maintainer
#3 lore raw

PATCH v5 3/4 MAINTAINERS: Add entry for ULTRATRONIK BOARD SUPPORT

In reply to a message not in the archive

Add a new MAINTAINERS section for the ULTRATRONIK BOARD SUPPORT, covering the stm32mp157c-ultra-fly-sbc.dts board support file.

This ensures that maintainers of this board are properly listed and can be notified for any relevant changes.

---
 MAINTAINERS | 6 ++++++
 1 file changed, 6 insertions(+)
MAINTAINERS +6 -0
index 69511c3b2b76..e393155d8946 100644
@@ -24842,6 +24842,12 @@ S:	Maintained
 F:	drivers/usb/common/ulpi.c
 F:	include/linux/ulpi/
 
+ULTRATRONIK BOARD SUPPORT
+M:	Goran Rađenović <[email protected]>
+M:	Börge Strümpfel <[email protected]>
+S:	Maintained
+F:	arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts
+
 UNICODE SUBSYSTEM
 M:	Gabriel Krisman Bertazi <[email protected]>
 L:	[email protected]
Signature · 1 line
2.43.0
author maintainer
#4 lore raw

PATCH v5 4/4 ARM: dts: stm32: add initial support for stm32mp157-ultra-fly-sbc board

In reply to a message not in the archive

Add support for Ultratronik's stm32mp157c fly board. This board embeds a STM32MP157c SOC and 1GB of DDR3. Several connections are available on this boards: 2*USB2.0, 1*USB2.0 MiniUSB, Debug UART, 1*UART, 1*USART, SDcard, RJ45, ...

This patch enables basic support for a kernel boot - SD-card or eMMC.

---
 arch/arm/boot/dts/st/Makefile                 |    3 +-
 .../boot/dts/st/stm32mp157c-ultra-fly-sbc.dts | 1155 +++++++++++++++++
 2 files changed, 1157 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts
arch/arm/boot/dts/st/Makefile +2 -1
index 60d55516f723..081c5980c905 100644
@@ -70,7 +70,8 @@ dtb-$(CONFIG_ARCH_STM32) += \
 	stm32mp157c-lxa-tac-gen2.dtb \
 	stm32mp157c-odyssey.dtb \
 	stm32mp157c-osd32mp1-red.dtb \
-	stm32mp157c-phycore-stm32mp1-3.dtb
+	stm32mp157c-phycore-stm32mp1-3.dtb \
+	stm32mp157c-ultra-fly-sbc.dtb
 dtb-$(CONFIG_ARCH_U8500) += \
 	ste-snowball.dtb \
 	ste-hrefprev60-stuib.dtb \
arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts new file +1155 -0

1,155 lines not on this page · raw message

Signature · 1 line
2.43.0
#5 lore raw

Re: [PATCH v5 4/4] ARM: dts: stm32: add initial support for stm32mp157-ultra-fly-sbc board

arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts line 192

Quoted 7 lines

+&ethernet0 {

arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts new file +6 -0
+	status = "okay";
+	pinctrl-0 = <&ethernet0_ux_rgmii_pins_a>;
+	pinctrl-1 = <&ethernet0_ux_rgmii_pins_sleep_a>;
+	pinctrl-names = "default", "sleep";
+	phy-mode = "rgmii-id";
+	max-speed = <1000>;

max-speed is probably pointless, rgmii cannot do more than 1G.

arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts line 202

Quoted 10 lines
arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts new file +10 -0
+	phy-handle = <&phy1>;
+
+	mdio {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "snps,dwmac-mdio";
+		phy1: ethernet-phy@1 {
+			reg = <1>;
+			interrupt-parent = <&gpiod>;
+			interrupts = <0 IRQ_TYPE_EDGE_FALLING>;

PHY interrupts are 99% time level, not edge.

Andrew

author maintainer
#6 lore raw

Re: [PATCH v5 4/4] ARM: dts: stm32: add initial support for stm32mp157-ultra-fly-sbc board

Hi Andrew,

thank You very much for Your comments.

Quoted 9 lines · Andrew Lunn

arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts line 192

Quoted 7 lines

+&ethernet0 {

arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts new file +6 -0
+	status = "okay";
+	pinctrl-0 = <&ethernet0_ux_rgmii_pins_a>;
+	pinctrl-1 = <&ethernet0_ux_rgmii_pins_sleep_a>;
+	pinctrl-names = "default", "sleep";
+	phy-mode = "rgmii-id";
+	max-speed = <1000>;

max-speed is probably pointless, rgmii cannot do more than 1G.

Agreed. I'll drop the max-speed property in the next revision.

Quoted 4 lines
Quoted 4 lines
arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts new file +4 -0
+	phy-handle = <&phy1>;
+
+	mdio {
+		#address-cells = <1>;
Quoted 8 lines

arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts line 202

Quoted 6 lines
arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts new file +6 -0
+		#size-cells = <0>;
+		compatible = "snps,dwmac-mdio";
+		phy1: ethernet-phy@1 {
+			reg = <1>;
+			interrupt-parent = <&gpiod>;
+			interrupts = <0 IRQ_TYPE_EDGE_FALLING>;

PHY interrupts are 99% time level, not edge.

That is correct, but I am facing strange behavior, when I set IRQ_TYPE_LEVEL_LOW. My board stops booting at:

[    2.343233] Waiting for root device /dev/mmcblk0p4...
[   12.638818] platform 5a006000.usbphyc: deferred probe pending
[   12.643192] platform 49000000.usb-otg: deferred probe pending
[   12.649029] platform 48003000.adc: deferred probe pending
[   12.654277] platform 5800d000.usb: deferred probe pending
[   12.659744] platform 5800c000.usb: deferred probe pending
[   12.665089] amba 58005000.mmc: deferred probe pending
[   12.670239] amba 58007000.mmc: deferred probe pending
[   12.675185] platform 50025000.vrefbuf: deferred probe pending

I must investigate this. If You have any idea, You are welcome to share it.

Quoted 1 line

Andrew

#7 lore raw

Re: [PATCH v5 4/4] ARM: dts: stm32: add initial support for stm32mp157-ultra-fly-sbc board

Quoted 27 lines
Quoted 4 lines
Quoted 4 lines
arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts new file +4 -0
+	phy-handle = <&phy1>;
+
+	mdio {
+		#address-cells = <1>;
Quoted 8 lines

arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts line 202

Quoted 6 lines
arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts new file +6 -0
+		#size-cells = <0>;
+		compatible = "snps,dwmac-mdio";
+		phy1: ethernet-phy@1 {
+			reg = <1>;
+			interrupt-parent = <&gpiod>;
+			interrupts = <0 IRQ_TYPE_EDGE_FALLING>;

PHY interrupts are 99% time level, not edge.

That is correct, but I am facing strange behavior, when I set IRQ_TYPE_LEVEL_LOW.
My board stops booting at:

[    2.343233] Waiting for root device /dev/mmcblk0p4...
[   12.638818] platform 5a006000.usbphyc: deferred probe pending
[   12.643192] platform 49000000.usb-otg: deferred probe pending
[   12.649029] platform 48003000.adc: deferred probe pending
[   12.654277] platform 5800d000.usb: deferred probe pending
[   12.659744] platform 5800c000.usb: deferred probe pending
[   12.665089] amba 58005000.mmc: deferred probe pending
[   12.670239] amba 58007000.mmc: deferred probe pending
[   12.675185] platform 50025000.vrefbuf: deferred probe pending
Quoted 1 line

I must investigate this. If You have any idea, You are welcome to share it.

Could be an interrupt storm. The interrupt is not getting cleared because of something missing in the PHY driver, so it just fires again and again.

Andrew

author maintainer
#8 lore raw

Re: [PATCH v5 4/4] ARM: dts: stm32: add initial support for stm32mp157-ultra-fly-sbc board

Hi Andrew,

thank You once again for helpful hint.

Quoted 25 lines · Andrew Lunn
Quoted 25 lines
Quoted 11 lines

arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts line 202

Quoted 10 lines
arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts new file +10 -0
+	phy-handle = <&phy1>;
+
+	mdio {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "snps,dwmac-mdio";
+		phy1: ethernet-phy@1 {
+			reg = <1>;
+			interrupt-parent = <&gpiod>;
+			interrupts = <0 IRQ_TYPE_EDGE_FALLING>;

PHY interrupts are 99% time level, not edge.

That is correct, but I am facing strange behavior, when I set IRQ_TYPE_LEVEL_LOW.
My board stops booting at:

[    2.343233] Waiting for root device /dev/mmcblk0p4...
[   12.638818] platform 5a006000.usbphyc: deferred probe pending
[   12.643192] platform 49000000.usb-otg: deferred probe pending
[   12.649029] platform 48003000.adc: deferred probe pending
[   12.654277] platform 5800d000.usb: deferred probe pending
[   12.659744] platform 5800c000.usb: deferred probe pending
[   12.665089] amba 58005000.mmc: deferred probe pending
[   12.670239] amba 58007000.mmc: deferred probe pending
[   12.675185] platform 50025000.vrefbuf: deferred probe pending
Quoted 4 lines
Quoted 1 line

I must investigate this. If You have any idea, You are welcome to share it.

Could be an interrupt storm. The interrupt is not getting cleared because of something missing in the PHY driver, so it just fires again and again.

After a brief investigation, I tend to agree with your assessment that the issue lies in the driver—likely the stmmac driver — which is outside the scope of my changes.

Therefore, I would suggest keeping IRQ_TYPE_EDGE_FALLING for now, or alternatively not using a hardware IRQ at all and falling back to polling, as done in stm32mp15xx-dkx.dtsi.

Best regards,
Goran

#9 lore raw

Re: [PATCH v5 4/4] ARM: dts: stm32: add initial support for stm32mp157-ultra-fly-sbc board

Quoted 35 lines · Goran Radenovic

Hi Andrew,

thank You once again for helpful hint.

Quoted 25 lines · Andrew Lunn
Quoted 25 lines
Quoted 11 lines

arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts line 202

Quoted 10 lines
arch/arm/boot/dts/st/stm32mp157c-ultra-fly-sbc.dts new file +10 -0
+	phy-handle = <&phy1>;
+
+	mdio {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "snps,dwmac-mdio";
+		phy1: ethernet-phy@1 {
+			reg = <1>;
+			interrupt-parent = <&gpiod>;
+			interrupts = <0 IRQ_TYPE_EDGE_FALLING>;

PHY interrupts are 99% time level, not edge.

That is correct, but I am facing strange behavior, when I set IRQ_TYPE_LEVEL_LOW.
My board stops booting at:

[    2.343233] Waiting for root device /dev/mmcblk0p4...
[   12.638818] platform 5a006000.usbphyc: deferred probe pending
[   12.643192] platform 49000000.usb-otg: deferred probe pending
[   12.649029] platform 48003000.adc: deferred probe pending
[   12.654277] platform 5800d000.usb: deferred probe pending
[   12.659744] platform 5800c000.usb: deferred probe pending
[   12.665089] amba 58005000.mmc: deferred probe pending
[   12.670239] amba 58007000.mmc: deferred probe pending
[   12.675185] platform 50025000.vrefbuf: deferred probe pending
Quoted 4 lines
Quoted 1 line

I must investigate this. If You have any idea, You are welcome to share it.

Could be an interrupt storm. The interrupt is not getting cleared because of something missing in the PHY driver, so it just fires again and again.

Quoted 7 lines

After a brief investigation, I tend to agree with your assessment that the issue lies in the driver—likely the stmmac driver — which is outside the scope of my changes.

Therefore, I would suggest keeping IRQ_TYPE_EDGE_FALLING for now, or alternatively not using a hardware IRQ at all and falling back to polling, as done in stm32mp15xx-dkx.dtsi.

Since edge is wrong, please use polling.

Andrew

maintainer
#10 lore raw

Re: [PATCH v5 4/4] ARM: dts: stm32: add initial support for stm32mp157-ultra-fly-sbc board

In reply to Goran Radenovic

Hi Goran

Quoted 30 lines · Goran Radenovic

Hi Andrew,

thank You once again for helpful hint.

Quoted 25 lines · Andrew Lunn
Quoted 25 lines
Quoted 11 lines
Quoted 10 lines

+    phy-handle = <&phy1>;
+
+    mdio {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        compatible = "snps,dwmac-mdio";
+        phy1: ethernet-phy@1 {
+            reg = <1>;
+            interrupt-parent = <&gpiod>;
+            interrupts = <0 IRQ_TYPE_EDGE_FALLING>;

PHY interrupts are 99% time level, not edge.

That is correct, but I am facing strange behavior, when I set IRQ_TYPE_LEVEL_LOW.
My board stops booting at:

[    2.343233] Waiting for root device /dev/mmcblk0p4... [   12.638818] platform 5a006000.usbphyc: deferred probe pending [   12.643192] platform 49000000.usb-otg: deferred probe pending [   12.649029] platform 48003000.adc: deferred probe pending [   12.654277] platform 5800d000.usb: deferred probe pending [   12.659744] platform 5800c000.usb: deferred probe pending [   12.665089] amba 58005000.mmc: deferred probe pending [   12.670239] amba 58007000.mmc: deferred probe pending [   12.675185] platform 50025000.vrefbuf: deferred probe pending

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

I must investigate this. If You have any idea, You are welcome to share it.

Could be an interrupt storm. The interrupt is not getting cleared because of something missing in the PHY driver, so it just fires again and again.

After a brief investigation, I tend to agree with your assessment that the issue lies in the driver—likely the stmmac driver — which is outside the scope of my changes.

No, the mdio node is driven by stmmac driver. The issue was maybe more linked between pinctrl driver / exti driver where the level trigger is probably not well managed (gpio is level but exti driver manage edge interrupt). When saw those defering probes, EXTI drivers and pinctrl drivers were well probed ?

Quoted 5 lines

Therefore, I would suggest keeping IRQ_TYPE_EDGE_FALLING for now, or alternatively not using a hardware IRQ at all and falling back to polling, as done in stm32mp15xx-dkx.dtsi.

Best regards,
Goran