[PATCH net-next 0/3] riscv: spacemit: Add ethernet support for K3

Inochi Amaoto
2026-01-20T04:36:22Z

Add initial support for ethernet controller of the Spacemit K3 SoC.
This ethernet controller is almost a standard Synopsys DesignWare
MAC (version 5.40a). This controller require a syscon device to
configure some basic features, like interface type and internal delay.

Inochi Amaoto (3):
dt-bindings: net: Add support for Spacemit K3 dwmac
net: stmmac: platform: Add snps,dwmac-5.40a IP compatible string
net: stmmac: Add glue layer for Spacemit K3 SoC

.../devicetree/bindings/net/snps,dwmac.yaml | 3 +
.../bindings/net/spacemit,k3-dwmac.yaml | 107 +++++++++
drivers/net/ethernet/stmicro/stmmac/Kconfig | 12 +
drivers/net/ethernet/stmicro/stmmac/Makefile | 1 +
.../ethernet/stmicro/stmmac/dwmac-spacemit.c | 224 ++++++++++++++++++
.../ethernet/stmicro/stmmac/stmmac_platform.c | 1 +
6 files changed, 348 insertions(+)
create mode 100644 Documentation/devicetree/bindings/net/spacemit,k3-dwmac.yaml
create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c

--
2.52.0