Skip to content

Improve usability of TH1520 with mainline SPL

Yao Zi u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4riscv: cpu: th1520: Initialize IOPMPs in SPLarch/riscv/cpu/th1520/spl.c arch/riscv/include/asm/arch-th1520/iopmp.h+107 -01 reply
2/4clk: thead: Port clock controller driver of TH1520 SoCdrivers/clk/Kconfig drivers/clk/Makefile drivers/clk/thead/Kconfig +2 more+1057 -01 reply
3/4riscv: cpu: th1520: Select clock driverarch/riscv/cpu/th1520/Kconfig+1 -01 reply
4/4riscv: dts: th1520: Complete clock treearch/riscv/dts/th1520-lichee-module-4a.dtsi arch/riscv/dts/th1520.dtsi+39 -441 reply

Reviews trailers per patch

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

PatchLeo Yu-Chi Liang
1/4R-b
2/4R-b
3/4R-b
4/4R-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/4] Improve usability of TH1520 with mainline SPL

Depending on the previous SPL support series of TH1520[1], this series further improves usability of TH1520 SoC when booting with mainline SPL.

The T-Head customized IOPMPs are initialized in SPL and a clock driver is ported from Linux kernel to support operation of various peripherals.

With this series, it's possible to properly initialize GPIO and eMMC when booting with mainline SPL on the 16GiB variant of Lichee Pi 4A. SDIO controller fails to initialize the SD card sometimes, which may be related to incorrect pin configuration.

A bootlog with eMMC/SD information shown could be obtained here[2]. Thanks for your time and review.

[1]: https://lore.kernel.org/all/[email protected]/
[2]: https://gist.github.com/ziyao233/75ff1e5b2cf9161093fcc12ed0a62395

Yao Zi (4):
riscv: cpu: th1520: Initialize IOPMPs in SPL
clk: thead: Port clock controller driver of TH1520 SoC
riscv: cpu: th1520: Select clock driver
riscv: dts: th1520: Complete clock tree

 arch/riscv/cpu/th1520/Kconfig               |    1 +
 arch/riscv/cpu/th1520/spl.c                 |   65 ++
 arch/riscv/dts/th1520-lichee-module-4a.dtsi |    8 -
 arch/riscv/dts/th1520.dtsi                  |   75 +-
 arch/riscv/include/asm/arch-th1520/iopmp.h  |   42 +
 drivers/clk/Kconfig                         |    1 +
 drivers/clk/Makefile                        |    1 +
 drivers/clk/thead/Kconfig                   |   19 +
 drivers/clk/thead/Makefile                  |    5 +
 drivers/clk/thead/clk-th1520-ap.c           | 1031 +++++++++++++++++++
 10 files changed, 1204 insertions(+), 44 deletions(-)
 create mode 100644 arch/riscv/include/asm/arch-th1520/iopmp.h
 create mode 100644 drivers/clk/thead/Kconfig
 create mode 100644 drivers/clk/thead/Makefile
 create mode 100644 drivers/clk/thead/clk-th1520-ap.c
Signature · 1 line
2.49.0