[PATCH 0/5] Add support for TH1520-integrated GMACs
Yao Zi
ziyao at disroot.org
Thu Jul 10 05:41:56 CEST 2025
TH1520 SoC integrates two MAC controllers based on Designware IP that
could operate at 1 Gbps. This series ports the MAC glue driver from
Linux, and then enables networking on the TH1520-based Lichee Pi 4A
board.
The driver could send and receive data correctly under link speed of
10Mbps, 100Mbps and 1Gbps. Under 1Gbps, tftp could transfer data at
more than 10MiB/s.
Note the bug fixed by the first patch doesn't cause any problem with
existing supported peripherals, thus the fix isn't urgent.
Yao Zi (5):
clk: thead: th1520-ap: Correctly handle flags for dividers
riscv: cpu: th1520: Limit upper RAM boundary to 4 GiB
drivers: net: Add T-Head DWMAC glue layer
riscv: dts: th1520: Describe GMACs and enable them on Lichee Pi 4A
configs: th1520_lpi4a: Enable network support
MAINTAINERS | 1 +
arch/riscv/cpu/th1520/dram.c | 16 ++
arch/riscv/dts/th1520-lichee-module-4a.dtsi | 119 ++++++++
arch/riscv/dts/th1520.dtsi | 42 +++
configs/th1520_lpi4a_defconfig | 7 +-
drivers/clk/thead/clk-th1520-ap.c | 4 +-
drivers/net/Kconfig | 8 +
drivers/net/Makefile | 1 +
drivers/net/dwmac_thead.c | 288 ++++++++++++++++++++
9 files changed, 484 insertions(+), 2 deletions(-)
create mode 100644 drivers/net/dwmac_thead.c
--
2.50.0
More information about the U-Boot
mailing list