Skip to content

Add support for TH1520-integrated GMACs

Yao Zi u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5clk: thead: th1520-ap: Correctly handle flags for dividersdrivers/clk/thead/clk-th1520-ap.c+3 -11 reply
2/5riscv: cpu: th1520: Limit upper RAM boundary to 4 GiBarch/riscv/cpu/th1520/dram.c+16 -01 reply
3/5drivers: net: Add T-Head DWMAC glue layerMAINTAINERS drivers/net/Kconfig drivers/net/Makefile +1 more+298 -01 reply
4/5riscv: dts: th1520: Describe GMACs and enable them on Lichee Pi 4Aarch/riscv/dts/th1520-lichee-module-4a.dtsi arch/riscv/dts/th1520.dtsi+161 -01 reply
5/5configs: th1520_lpi4a: Enable network supportconfigs/th1520_lpi4a_defconfig+6 -11 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchLeo Yu-Chi Liang
1/5A-b
2/5R-b
3/5A-b
4/5A-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] Add support for TH1520-integrated GMACs

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
Signature · 1 line
2.50.0