Skip to contentSkip to conversation

net: stmmac: add support for dwmac 5.20

PATCH RESEND In review Jisheng Zhang 3 participants 4 messages Nov 19, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND v2 1/1 net: stmmac: add support for dwmac 5.20

The dwmac 5.20 IP can be found on some synaptics SoCs.

The binding doc has been already upstreamed by
commit 13f9351180aa ("dt-bindings: net: snps,dwmac: Add dwmac-5.20 version")

So we just need to add a compatibility flag in dwmac generic driver.

---
Since v1:
- fix the commit msg

 drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c +1 -0
index b9218c07eb6b..cecce6ed9aa6 100644
@@ -59,6 +59,7 @@ static const struct of_device_id dwmac_generic_match[] = {
 	{ .compatible = "snps,dwmac-3.72a"},
 	{ .compatible = "snps,dwmac-4.00"},
 	{ .compatible = "snps,dwmac-4.10a"},
+	{ .compatible = "snps,dwmac-5.20"},
 	{ .compatible = "snps,dwmac"},
 	{ .compatible = "snps,dwxgmac-2.10"},
 	{ .compatible = "snps,dwxgmac"},
Signature · 1 line
2.51.0
#1 lore raw
Quoted 7 lines · Jisheng Zhang

The dwmac 5.20 IP can be found on some synaptics SoCs.

The binding doc has been already upstreamed by
commit 13f9351180aa ("dt-bindings: net: snps,dwmac: Add dwmac-5.20 version")

So we just need to add a compatibility flag in dwmac generic driver.

Do we _need_ to add it to the generic driver? Do the platforms that are using this really not need any additional code to support them?

Looking at all the DT that mention dwmac-5.20 in their compatible strings, that is always after other compatibles that point to other platform specific drivers.

So, can you point to a platform that doesn't have its own platform glue, and would be functional when using the dwmac-generic driver?

For reference, the dts that refer to dwmac-5.20 are:

arch/arm64/boot/dts/renesas/r9a09g047.dtsi
arch/arm64/boot/dts/renesas/r9a09g056.dtsi
arch/arm64/boot/dts/renesas/r9a09g057.dtsi
arch/arm64/boot/dts/st/stm32mp251.dtsi
arch/arm64/boot/dts/st/stm32mp253.dtsi
arch/arm64/boot/dts/st/stm32mp233.dtsi
arch/arm64/boot/dts/st/stm32mp231.dtsi
arch/riscv/boot/dts/starfive/jh7110.dtsi

Thanks.

Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
#2 lore raw
Quoted 12 lines · Russell King (Oracle)
Quoted 7 lines · Jisheng Zhang

The dwmac 5.20 IP can be found on some synaptics SoCs.

The binding doc has been already upstreamed by
commit 13f9351180aa ("dt-bindings: net: snps,dwmac: Add dwmac-5.20 version")

So we just need to add a compatibility flag in dwmac generic driver.

Do we _need_ to add it to the generic driver? Do the platforms that are using this really not need any additional code to support them?

Quoted 6 lines

Looking at all the DT that mention dwmac-5.20 in their compatible strings, that is always after other compatibles that point to other platform specific drivers.

So, can you point to a platform that doesn't have its own platform glue, and would be functional when using the dwmac-generic driver?

Synatpics platforms use the dwmac-generic driver, it's enough now. But we haven't upstreamed related platforms, but will do soon.

Quoted 17 lines

For reference, the dts that refer to dwmac-5.20 are:

arch/arm64/boot/dts/renesas/r9a09g047.dtsi
arch/arm64/boot/dts/renesas/r9a09g056.dtsi
arch/arm64/boot/dts/renesas/r9a09g057.dtsi
arch/arm64/boot/dts/st/stm32mp251.dtsi
arch/arm64/boot/dts/st/stm32mp253.dtsi
arch/arm64/boot/dts/st/stm32mp233.dtsi
arch/arm64/boot/dts/st/stm32mp231.dtsi
arch/riscv/boot/dts/starfive/jh7110.dtsi

Thanks.

Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
#3 lore raw
Quoted 17 lines · Jisheng Zhang
Quoted 16 lines · Russell King (Oracle)
Quoted 7 lines · Jisheng Zhang

The dwmac 5.20 IP can be found on some synaptics SoCs.

The binding doc has been already upstreamed by
commit 13f9351180aa ("dt-bindings: net: snps,dwmac: Add dwmac-5.20 version")

So we just need to add a compatibility flag in dwmac generic driver.

Do we _need_ to add it to the generic driver? Do the platforms that are using this really not need any additional code to support them?

Looking at all the DT that mention dwmac-5.20 in their compatible strings, that is always after other compatibles that point to other platform specific drivers.

Quoted 5 lines
Quoted 2 lines

So, can you point to a platform that doesn't have its own platform glue, and would be functional when using the dwmac-generic driver?

Synatpics platforms use the dwmac-generic driver, it's enough now. But we haven't upstreamed related platforms, but will do soon.

Please make this patch part of the patchset when you upstream the platforms. We prefer to only add things which have users.

Andrew

---
pw-bot: cr