U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Add pinctrl support for TH1520 SoC
@ 2025-06-18  9:54 Yao Zi
  2025-06-18  9:54 ` [PATCH 1/3] pinctrl: Port pin controller driver for T-Head " Yao Zi
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Yao Zi @ 2025-06-18  9:54 UTC (permalink / raw)
  To: Tom Rini, Yao Zi, Rick Chen, Leo, Wei Fu, Yixun Lan
  Cc: u-boot, Han Gao, Han Gao

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/20250606042804.64311-1-ziyao@disroot.org/
[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

-- 
2.49.0


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

end of thread, other threads:[~2025-07-03 10:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-18  9:54 [PATCH 0/3] Add pinctrl support for TH1520 SoC Yao Zi
2025-06-18  9:54 ` [PATCH 1/3] pinctrl: Port pin controller driver for T-Head " Yao Zi
2025-07-03 10:01   ` Leo Liang
2025-06-18  9:54 ` [PATCH 2/3] riscv: dts: th1520: Add pin controllers Yao Zi
2025-07-03 10:02   ` Leo Liang
2025-06-18  9:54 ` [PATCH 3/3] riscv: cpu: th1520: Enable pinctrl by default Yao Zi
2025-07-03 10:03   ` Leo Liang

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