Skip to content

Add pinctrl support for TH1520 SoC

Yao Zi u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3pinctrl: Port pin controller driver for T-Head TH1520 SoCMAINTAINERS drivers/pinctrl/Kconfig drivers/pinctrl/Makefile +1 more+710 -01 reply
2/3riscv: dts: th1520: Add pin controllersarch/riscv/dts/th1520.dtsi+28 -01 reply
3/3riscv: cpu: th1520: Enable pinctrl by defaultarch/riscv/cpu/th1520/Kconfig configs/th1520_lpi4a_defconfig+2 -01 reply

Reviews trailers per patch

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

PatchLeo Yu-Chi Liang
1/3A-b
2/3A-b
3/3A-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/3] Add pinctrl support for TH1520 SoC

This series adds pin configuration support for TH1520 SoC with a driver ported from Linux kernel, and enables it by default. As a test, random configuration is specified in devicetree, then the effects are verified by reading back registers or observing hardware behavior.

With several downstream patches, I've also successfully brought up the second GMAC controller on TH1520. Since the controller won't work with the default pin configuration, this also serves as a proof of the driver's functionality.

This series may depend on the previous series "Bring up secondary cores on Lichee Pi 4A"[1] for a clean apply. An output of pinmux status -a could be obtained here[2].

[1]: https://lore.kernel.org/u-boot/[email protected]/
[2]: https://gist.github.com/ziyao233/55738ed1a33d450ccb1dc3752494a2b4

Yao Zi (3):
pinctrl: Port pin controller driver for T-Head TH1520 SoC
riscv: dts: th1520: Add pin controllers
riscv: cpu: th1520: Enable pinctrl by default

 MAINTAINERS                      |   1 +
 arch/riscv/cpu/th1520/Kconfig    |   1 +
 arch/riscv/dts/th1520.dtsi       |  28 ++
 configs/th1520_lpi4a_defconfig   |   1 +
 drivers/pinctrl/Kconfig          |   8 +
 drivers/pinctrl/Makefile         |   1 +
 drivers/pinctrl/pinctrl-th1520.c | 700 +++++++++++++++++++++++++++++++
 7 files changed, 740 insertions(+)
 create mode 100644 drivers/pinctrl/pinctrl-th1520.c
Signature · 1 line
2.49.0