Resend v2 to the new U-Boot mailing list after the project moved from [email protected] to [email protected]. The series has also been rebased from the former master branch onto main. No functional changes from v2.
Switch Milk-V Duo and LicheeRV Nano to the upstream CV1800B and SG2002 devicetrees. Add the SoC-specific clock compatibles used by the upstream devicetrees and add SG2002 support to the existing SDHCI driver. Enable hardware system reset on LicheeRV Nano. Keep Ethernet enabled for Milk-V Duo through a U-Boot-specific override. Remove the unused local CV18xx devicetrees and the legacy "sophgo,cv1800-clk" driver compatible. Tested on Milk-V Duo: - U-Boot boots with the upstream control FDT - serial console works - MMC is detected and can read the SD card - Ethernet is probed and DHCP/TFTP work - Linux boots via TFTP with Image, initramfs and DTB Tested on Sipeed LicheeRV Nano B: - U-Boot boots with 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 <[email protected]> --- Changes in v2: - Expand the upstream devicetree conversion to LicheeRV Nano - Add SG2002 clock and MMC compatibles - Enable hardware system reset on LicheeRV Nano - Remove the legacy clock compatible after converting all users - Move the Milk-V Duo Ethernet description above the gmac0 node - Rewrite the cover letter to describe the changes directly - Link to v1: https://patch.msgid.link/[email protected] --- Zhuxu Ran (7): clk: sophgo: cv1800b: Add SoC-specific compatibles mmc: cv1800b: Add SG2002 compatible 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 arch/riscv/dts/Makefile | 2 - arch/riscv/dts/cv1800b-milkv-duo-u-boot.dtsi | 14 ++ 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, 31 insertions(+), 403 deletions(-) --- base-commit: b635d43bca429500cb8ef20aa151cb5773b9a8a5 change-id: 20260702-milkv-duo-upstream-dts-b54aed41fc61 Best regards, -- Zhuxu Ran <[email protected]>
