U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] net: add SpacemiT K1 EMAC support
@ 2026-11-20  6:35 Zixian Zeng
  2026-11-20  6:35 ` [PATCH v3 1/2] net: spacemit: k1: add Ethernet MAC driver Zixian Zeng
  2026-11-20  6:35 ` [PATCH v3 2/2] configs: spacemit: k1: enable Ethernet support Zixian Zeng
  0 siblings, 2 replies; 9+ messages in thread
From: Zixian Zeng @ 2026-11-20  6:35 UTC (permalink / raw)
  To: u-boot, u-boot-spacemit
  Cc: Zixian Zeng, Tom Rini, Jerome Forissier, Huan Zhou, Guodong Xu,
	Quentin Schulz, Julien Stephan, Johan Jonker, David Lechner,
	Raymond Mao, Eric Chung, Yixun Lan, James Hilliard, Guodong Xu,
	E Shattow, Dave Klotz

This series adds support for the Ethernet MACs integrated in
the SpacemiT K1 SoC, which includes adding a k1_emac driver with
MDIO and PHYLIB support for RGMII and RMII operation, enabling it
in the k1 defconfig.

The k1_emac driver in series draws upon Vivian Wang's work [1]. To make it
simple and working, driver which using small ring-buffers operates primarily
on polling and only implements basic functions.

Tested on both Banana Pi F3 Ethernet ports with RTL8211F PHYs
at 1000 Mbps full duplex, and tested command: dhcp, ping, tftp, etc.

[1]: https://lore.kernel.org/all/20250914-net-k1-emac-v12-0-65b31b398f44@iscas.ac.cn/

Signed-off-by: Zixian Zeng <sycamoremoon376@gmail.com>
---
Changes in v3:
- Add the "spacemit" keyword in both patch subjects.
- Patch 1: Remove PHY_GIGE dependency of SPACEMIT_K1_EMAC (suggested by
  Yixun Lan).
- Patch 1: Add Tested-by from Yixun Lan.
- Patch 2: Enable CONFIG_PHY_GIGE explicitly.
- Link to v2: https://patch.msgid.link/cc2ffcb6-167d-4e61-bd46-d16ff0319917@gmail.com

Changes in v2:
- Patch 1: Validate the full DMA range, not only the start address, in
  k1_emac_dma32() (suggested by Dave Klotz)
- Patch 1: Add Tested-by from Dave Klotz
- Drop the MAINTAINERS patch, as the top-level "RISC-V SPACEMIT" entry
  already covers the driver via its N:/K: patterns (suggested by Yixun Lan)
- Link to v1: https://patch.msgid.link/20261002-b4-k1-emac-v1-0-e1b6806b018a@gmail.com

---
Zixian Zeng (2):
      net: spacemit: k1: add Ethernet MAC driver
      configs: spacemit: k1: enable Ethernet support

 configs/spacemit_k1_defconfig  |   7 +
 drivers/net/Kconfig            |   1 +
 drivers/net/Makefile           |   1 +
 drivers/net/spacemit/Kconfig   |  14 +
 drivers/net/spacemit/Makefile  |   3 +
 drivers/net/spacemit/k1_emac.c | 957 +++++++++++++++++++++++++++++++++++++++++
 6 files changed, 983 insertions(+)
---
base-commit: ffdf122644c936510b74a26390b694ed4cdfa1c6
change-id: 20260926-b4-k1-emac-fa5f2b146f38

Best regards,
--  
Zixian Zeng <sycamoremoon376@gmail.com>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-11-22 17:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20  6:35 [PATCH v3 0/2] net: add SpacemiT K1 EMAC support Zixian Zeng
2026-11-20  6:35 ` [PATCH v3 1/2] net: spacemit: k1: add Ethernet MAC driver Zixian Zeng
2026-11-20 16:56   ` Yao Zi
2026-11-21 18:31     ` Yao Zi
2026-11-22  6:23     ` Zixian Zeng
2026-11-22  8:10       ` Yao Zi
2026-11-22 12:37         ` Zixian Zeng
2026-11-22 17:10           ` Yao Zi
2026-11-20  6:35 ` [PATCH v3 2/2] configs: spacemit: k1: enable Ethernet support Zixian Zeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox