[PATCH net-next 0/4] riscv: sophgo: Add ethernet support for SG2042

Inochi Amaoto
2025-05-06T11:07:50Z

The ethernet controller of SG2042 is Synopsys DesignWare IP with
tx clock. Add device id for it.

This patch can only be tested on a SG2042 x4 evb board, as pioneer
does not expose this device.

Inochi Amaoto (4):
dt-bindings: net: sophgo,sg2044-dwmac: Add support for Sophgo SG2042
dwmac
net: stmmac: dwmac-sophgo: Add support for Sophgo SG2042 SoC
net: stmmac: platform: Add snps,dwmac-5.00a IP compatible string
riscv: dts: sophgo: add ethernet GMAC device for sg2042

.../devicetree/bindings/net/snps,dwmac.yaml | 4 ++
.../bindings/net/sophgo,sg2044-dwmac.yaml | 11 +++-
arch/riscv/boot/dts/sophgo/sg2042.dtsi | 62 +++++++++++++++++++
.../ethernet/stmicro/stmmac/dwmac-sophgo.c | 1 +
.../ethernet/stmicro/stmmac/stmmac_platform.c | 1 +
5 files changed, 76 insertions(+), 3 deletions(-)

--
2.49.0