All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 00/10] riscv: sophgo: Use upstream devicetrees for CV18xx boards
@ 2026-09-27 12:08 Zhuxu Ran
  2026-09-27 11:45 ` [PATCH v5 07/10] riscv: licheerv_nano: Use upstream devicetree Zhuxu Ran
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Zhuxu Ran @ 2026-09-27 12:08 UTC (permalink / raw)
  To: u-boot, Chao Wei, Chen Wang, Yao Zi
  Cc: Lukasz Majewski, Tom Rini, Zhuxu Ran, Peng Fan, Jaehoon Chung,
	Stefan Roese, Hiago De Franco, Sumit Garg, Inochi Amaoto,
	Conor Dooley, Chen-Yu Yeh, Chen Wang, Kongyang Liu, Tim Ouyang,
	Leo Liang, Thomas Bonnefille, Guodong Xu, Quentin Schulz,
	Johan Jonker, Casey Connolly, Varadarajan Narayanan,
	Alexander Koch, Andreas Schwab, Junhui Liu, Marek Vasut,
	Sumit Garg, Peter Robinson, Ilias Apalodimas, Andrei Lalaev

Milk-V Duo, Milk-V Duo 256M, and LicheeRV Nano currently use local
devicetrees under arch/riscv/dts. Equivalent descriptions are available
upstream, but Milk-V Duo 256M support has not yet reached U-Boot's
dts/upstream tree.

Import the upstream changes required for Milk-V Duo 256M and enable
CONFIG_OF_UPSTREAM for all three boards. Add the clock and SDHCI
compatible strings needed by the upstream devicetrees.

U-Boot-specific overrides retain Ethernet and SPI NOR support on Milk-V
Duo, and Ethernet support on Milk-V Duo 256M with its optional IO board.
Enable the MDIO mux support required by the Duo 256M Ethernet topology.

With all local users converted, remove the local CV18xx devicetrees and
the legacy "sophgo,cv1800-clk" clock compatible string.

Tested on Milk-V Duo, Milk-V Duo 256M, and LicheeRV Nano. Build-tested
for all three boards with the riscv64-linux-gnu cross compiler.

Signed-off-by: Zhuxu Ran <zhuxu_ran@zohomail.com>
---
Changes in v5:
- Move the RTC and system-reset changes to a separate series
- Enable the MDIO mux drivers required by the Milk-V Duo 256M upstream
  Ethernet description
- Link to v4: https://patch.msgid.link/20260922-milkv-duo-upstream-dts-v4-0-d45b74dfad36@zohomail.com

Changes in v4:
- Import the upstream Milk-V Duo 256M devicetree changes
- Switch Milk-V Duo 256M to CONFIG_OF_UPSTREAM
- Add CV1800 RTC support and bind system reset through the RTC node
- Preserve Milk-V Duo 256M Ethernet support through a U-Boot override
- Link to v3: https://patch.msgid.link/20260806-milkv-duo-upstream-dts-v3-0-917cf70a2337@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

---
Chen-Yu Yeh (3):
      dt-bindings: soc: sophgo: add Milk-V Duo 256M board
      riscv: dts: sophgo: cv180x: Add PWR_GPIO controller
      riscv: dts: sophgo: Add Milk-V Duo 256M board support

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

 arch/riscv/dts/Makefile                            |   3 -
 arch/riscv/dts/cv1800b-milkv-duo-u-boot.dtsi       |  35 ++++
 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-milkv-duo256m-u-boot.dtsi    |  16 ++
 arch/riscv/dts/sg2002-milkv-duo256m.dts            |  46 ----
 arch/riscv/dts/sg2002.dtsi                         |  34 ---
 board/sophgo/milkv_duo/MAINTAINERS                 |   3 +-
 board/sophgo/milkv_duo_256m/MAINTAINERS            |   1 +
 configs/milkv_duo_256m_defconfig                   |   6 +-
 configs/milkv_duo_defconfig                        |   3 +-
 configs/sipeed_licheerv_nano_defconfig             |   3 +-
 doc/board/sophgo/milkv_duo_256m.rst                |   2 +-
 drivers/clk/sophgo/clk-cv1800b.c                   |   3 +-
 drivers/mmc/cv1800b_sdhci.c                        |   1 +
 dts/upstream/Bindings/soc/sophgo/sophgo.yaml       |   4 +
 dts/upstream/src/riscv/sophgo/cv180x.dtsi          |  18 ++
 .../src/riscv/sophgo/sg2002-milkv-duo256m.dts      | 121 +++++++++++
 20 files changed, 210 insertions(+), 452 deletions(-)
---
base-commit: a06e89ab05eaa2b8344d521319399333cd760ae5
change-id: 20260702-milkv-duo-upstream-dts-b54aed41fc61

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


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

end of thread, other threads:[~2026-09-29 12:53 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-27 12:08 [PATCH v5 00/10] riscv: sophgo: Use upstream devicetrees for CV18xx boards Zhuxu Ran
2026-09-27 11:45 ` [PATCH v5 07/10] riscv: licheerv_nano: Use upstream devicetree Zhuxu Ran
2026-09-27 11:45 ` [PATCH v5 08/10] riscv: milkv_duo_256m: " Zhuxu Ran
2026-09-27 11:45 ` [PATCH v5 09/10] riscv: dts: sophgo: Drop local CV18xx devicetrees Zhuxu Ran
2026-09-27 11:46 ` [PATCH v5 10/10] clk: sophgo: cv1800b: Drop legacy compatible string Zhuxu Ran
2026-09-27 12:08 ` [PATCH v5 01/10] clk: sophgo: cv1800b: Add SoC-specific compatible strings Zhuxu Ran
2026-09-27 12:08 ` [PATCH v5 02/10] mmc: cv1800b: Add SG2002 compatible string Zhuxu Ran
2026-09-27 12:08 ` [PATCH v5 03/10] dt-bindings: soc: sophgo: add Milk-V Duo 256M board Zhuxu Ran
2026-09-27 12:08 ` [PATCH v5 04/10] riscv: dts: sophgo: cv180x: Add PWR_GPIO controller Zhuxu Ran
2026-09-27 12:09 ` [PATCH v5 05/10] riscv: dts: sophgo: Add Milk-V Duo 256M board support Zhuxu Ran
2026-09-27 12:09 ` [PATCH v5 06/10] riscv: milkv_duo: Use upstream devicetree Zhuxu Ran
2026-09-28 22:47 ` [PATCH v5 00/10] riscv: sophgo: Use upstream devicetrees for CV18xx boards Yao Zi
2026-09-29 12:40 ` Hiago De Franco

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.