U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/7] riscv: sophgo: Use upstream devicetrees for CV18xx boards
@ 2026-08-06 12:13 Zhuxu Ran via U-Boot
  2026-08-06 12:13 ` [PATCH v3 1/7] clk: sophgo: cv1800b: Add SoC-specific compatible strings Zhuxu Ran via U-Boot
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Zhuxu Ran via U-Boot @ 2026-08-06 12:13 UTC (permalink / raw)
  To: u-boot, Yao Zi
  Cc: Lukasz Majewski, Tom Rini, Zhuxu Ran, Peng Fan, Jaehoon Chung,
	Stefan Roese, Hiago De Franco, Thomas Bonnefille, Kongyang Liu,
	Tim Ouyang, Leo Liang, Guodong Xu, Andreas Schwab, Junhui Liu

Switch Milk-V Duo and LicheeRV Nano to the upstream CV1800B and
SG2002 devicetrees.

Add the SoC-specific clock compatible strings used by the upstream
devicetrees, and extend the existing SDHCI driver to support SG2002.
Enable hardware system reset on LicheeRV Nano. Keep Ethernet and SPI NOR
support enabled for Milk-V Duo through U-Boot-specific overrides.

Remove the unused local CV18xx devicetrees and the legacy
"sophgo,cv1800-clk" compatible string from the clock driver.

Tested on Milk-V Duo:
- U-Boot boots using the upstream control FDT
- serial console works
- MMC is detected and can read the SD card
- Ethernet is probed and DHCP/TFTP work
- SPI NOR is detected
- Linux boots via TFTP with Image, initramfs and DTB

Tested on Sipeed LicheeRV Nano B:
- U-Boot boots using the upstream control FDT
- serial console works
- MMC is detected and usable
- hardware system reset works

Build-tested with the riscv64-linux-gnu cross compiler:
- milkv_duo_defconfig
- sipeed_licheerv_nano_defconfig

Signed-off-by: Zhuxu Ran <zhuxu_ran@zohomail.com>
---
Changes in v3:
- Restore the CV1800B SPIF node in the Milk-V Duo U-Boot override
- Link to v2: https://patch.msgid.link/20260727-milkv-duo-upstream-dts-v2-0-51486b4549c7@zohomail.com

Changes in v2:
- Expand the upstream devicetree conversion to LicheeRV Nano
- Add SG2002 clock and MMC compatible strings
- Enable hardware system reset on LicheeRV Nano
- Remove the legacy clock compatible string after converting all users
- Move the Milk-V Duo Ethernet description above the gmac0 node
- Link to v1: https://patch.msgid.link/20260706-milkv-duo-upstream-dts-v1-0-8d010ddda7ca@zohomail.com

To: u-boot@lists.u-boot-project.org
To: Yao Zi <me@ziyao.cc>
Cc: Lukasz Majewski <lukma@denx.de>
Cc: Tom Rini <trini@konsulko.com>
Cc: Zhuxu Ran <zhuxu_ran@zohomail.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Hiago De Franco <hfranco@baylibre.com>
Cc: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
Cc: Kongyang Liu <seashell11234455@gmail.com>
Cc: Tim Ouyang <tim609@andestech.com>
Cc: Leo Liang <leo.liang@sifive.com>
Cc: Andreas Schwab <schwab@suse.de>
Cc: Guodong Xu <guodong@riscstar.com>
Cc: Stefan Roese <stefan.roese@mailbox.org>

---
Zhuxu Ran (7):
      clk: sophgo: cv1800b: Add SoC-specific compatible strings
      mmc: cv1800b: Add SG2002 compatible string
      riscv: licheerv_nano: Enable hardware system reset
      riscv: milkv_duo: Use upstream devicetree
      riscv: licheerv_nano: Use upstream devicetree
      riscv: dts: sophgo: Drop local CV18xx devicetrees
      clk: sophgo: cv1800b: Drop legacy compatible string

 arch/riscv/dts/Makefile                      |   2 -
 arch/riscv/dts/cv1800b-milkv-duo-u-boot.dtsi |  36 +++++
 arch/riscv/dts/cv1800b-milkv-duo.dts         |  64 --------
 arch/riscv/dts/cv1800b.dtsi                  |  22 ---
 arch/riscv/dts/cv18xx.dtsi                   | 232 ---------------------------
 arch/riscv/dts/sg2002-licheerv-nano-b.dts    |  45 ------
 arch/riscv/dts/sg2002.dtsi                   |  34 ----
 board/sophgo/licheerv_nano/board.c           |   9 ++
 board/sophgo/milkv_duo/MAINTAINERS           |   1 +
 configs/milkv_duo_defconfig                  |   3 +-
 configs/sipeed_licheerv_nano_defconfig       |   4 +-
 drivers/clk/sophgo/clk-cv1800b.c             |   3 +-
 drivers/mmc/cv1800b_sdhci.c                  |   1 +
 13 files changed, 53 insertions(+), 403 deletions(-)
---
base-commit: baa64b2f892890f00a377eac4a3e685472bb56b5
change-id: 20260702-milkv-duo-upstream-dts-b54aed41fc61

Best regards,
--  
Zhuxu Ran <zhuxu_ran@zohomail.com>


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

end of thread, other threads:[~2026-08-27 19:50 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-06 12:13 [PATCH v3 0/7] riscv: sophgo: Use upstream devicetrees for CV18xx boards Zhuxu Ran via U-Boot
2026-08-06 12:13 ` [PATCH v3 1/7] clk: sophgo: cv1800b: Add SoC-specific compatible strings Zhuxu Ran via U-Boot
2026-08-06 12:13 ` [PATCH v3 2/7] mmc: cv1800b: Add SG2002 compatible string Zhuxu Ran via U-Boot
2026-08-06 12:13 ` [PATCH v3 3/7] riscv: licheerv_nano: Enable hardware system reset Zhuxu Ran via U-Boot
2026-08-06 14:19   ` Junhui Liu
2026-08-06 12:13 ` [PATCH v3 4/7] riscv: milkv_duo: Use upstream devicetree Zhuxu Ran via U-Boot
2026-08-06 12:45   ` Zhuxu Ran via U-Boot
2026-08-06 14:22   ` Junhui Liu
2026-08-27 17:35   ` Andrei Lalaev
2026-08-06 12:13 ` [PATCH v3 5/7] riscv: licheerv_nano: " Zhuxu Ran via U-Boot
2026-08-06 12:13 ` [PATCH v3 6/7] riscv: dts: sophgo: Drop local CV18xx devicetrees Zhuxu Ran via U-Boot
2026-08-06 12:13 ` [PATCH v3 7/7] clk: sophgo: cv1800b: Drop legacy compatible string Zhuxu Ran via U-Boot

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