Skip to contentSkip to conversation

net: stmmac: add support for dwmac 5.20

PATCH Superseded Jisheng Zhang 3 participants 4 messages Jul 5, 2025 – Aug 13, 2025

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

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

The dwmac 5.20 IP can be found on some synaptics SoCs. Add a compatibility flag for it.

---
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.49.0
#1 lore raw
Quoted 2 lines · Jisheng Zhang

The dwmac 5.20 IP can be found on some synaptics SoCs. Add a compatibility flag for it.

Is a compatible flag enough to make it actually work?

Andrew

#2 lore raw
Quoted 5 lines · Andrew Lunn
Quoted 2 lines · Jisheng Zhang

The dwmac 5.20 IP can be found on some synaptics SoCs. Add a compatibility flag for it.

Is a compatible flag enough to make it actually work?

Also, shouldn't there be a binding doc update?

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 6 lines · Russell King (Oracle)
Quoted 5 lines · Andrew Lunn
Quoted 2 lines · Jisheng Zhang

The dwmac 5.20 IP can be found on some synaptics SoCs. Add a compatibility flag for it.

Is a compatible flag enough to make it actually work?

Yep, it's enough, we are using dwmac-generic.c for DT based platforms

Quoted 2 lines

Also, shouldn't there be a binding doc update?

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

Hi Russell, Andrew,

Kindly let me know if I still need to do more to let this CL merged.

Thanks in advance

Quoted 3 lines
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!