]> git.ipfire.org Git - thirdparty/linux.git/commit
net: spacemit: Add K1 Ethernet MAC
authorVivian Wang <wangruikang@iscas.ac.cn>
Sun, 14 Sep 2025 04:23:13 +0000 (12:23 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 16 Sep 2025 10:43:49 +0000 (12:43 +0200)
commitbfec6d7f2001c7470c3cd261ae65a3ba8737f226
treea2b37ccb1fbb54ed75096ea82241b67e31e37ef0
parent62a12a221769f102062c014dc227555d3a6a6df1
net: spacemit: Add K1 Ethernet MAC

The Ethernet MACs found on SpacemiT K1 appears to be a custom design
that only superficially resembles some other embedded MACs. SpacemiT
refers to them as "EMAC", so let's just call the driver "k1_emac".

Supports RGMII and RMII interfaces. Includes support for MAC hardware
statistics counters. PTP support is not implemented.

Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Reviewed-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Tested-by: Junhui Liu <junhui.liu@pigmoral.tech>
Tested-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Link: https://patch.msgid.link/20250914-net-k1-emac-v12-2-65b31b398f44@iscas.ac.cn
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/Kconfig
drivers/net/ethernet/Makefile
drivers/net/ethernet/spacemit/Kconfig [new file with mode: 0644]
drivers/net/ethernet/spacemit/Makefile [new file with mode: 0644]
drivers/net/ethernet/spacemit/k1_emac.c [new file with mode: 0644]
drivers/net/ethernet/spacemit/k1_emac.h [new file with mode: 0644]