]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: Add glue layer for Spacemit K3 SoC
authorInochi Amaoto <inochiama@gmail.com>
Mon, 16 Mar 2026 01:00:39 +0000 (09:00 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 18 Mar 2026 03:18:38 +0000 (20:18 -0700)
commit30f0ba420ed3fb9a16d55523ae3c1b43a6f00e22
treef71d8aaba8e3fc37a5f9875ff4dcd32d99f852f9
parentd35aa97ea908a17809358a981bef6cd752f2e8a0
net: stmmac: Add glue layer for Spacemit K3 SoC

The ethernet controller on Spacemit K3 SoC is Synopsys DesignWare
MAC (version 5.40a), with the following special points:
1. The rate of the tx clock line is auto changed when the mac speed
   rate is changed, and no need for changing the input tx clock.
2. This controller require a extra syscon device to configure the
   interface type, enable wake up interrupt and delay configuration
   if needed.

Add Spacemit dwmac driver support on the Spacemit K3 SoC.

Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/20260316010041.164360-4-inochiama@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/Kconfig
drivers/net/ethernet/stmicro/stmmac/Makefile
drivers/net/ethernet/stmicro/stmmac/dwmac-spacemit.c [new file with mode: 0644]