Skip to contentSkip to conversation

net: stmmac: add support for dwmac 5.20

PATCH Superseded Jisheng Zhang 3 participants 3 messages Jun 29, 2025 – Jun 30, 2025

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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, and extend coverage of the dwmac-generic driver for the 5.20 IP.

---
 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 14 lines · Jisheng Zhang

The dwmac 5.20 IP can be found on some synaptics SoCs. Add a compatibility flag, and extend coverage of the dwmac-generic driver for the 5.20 IP.

---
 drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c +0 -0
index b9218c07eb6b..cecce6ed9aa6 100644

drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c static const struct of_device_id dwmac_generic_match[] = { · line 65

Quoted 7 lines
drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c +1 -0
@@ -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"},

I can see a compatible flag being added. But what about the extending the coverage of the dwmac-generic driver part?

Andrew

#2 lore raw
Quoted 10 lines · Andrew Lunn
Quoted 9 lines · Jisheng Zhang

The dwmac 5.20 IP can be found on some synaptics SoCs. Add a compatibility flag, and extend coverage of the dwmac-generic driver for the 5.20 IP.

---
  drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c | 1 +
  1 file changed, 1 insertion(+)
Quoted 15 lines

drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c static const struct of_device_id dwmac_generic_match[] = { · line 65

Quoted 12 lines
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"},

I can see a compatible flag being added. But what about the extending the coverage of the dwmac-generic driver part?

I don't think the timing is ripe yet (including the patch itself). Maybe it would be better to do this when a hardware driver is to be introduced into the kernel.

Thanks,
Yanteng