[PATCH v6 0/2] add initial Milk-V Duo S board support

michael.opdenacker
2024-04-21T05:57:35Z

From: Michael Opdenacker <michael.opdenacker@bootlin.com>

This adds an initial device tree for the Milk-V Duo S board.
Last tested on linux-next 20240419

Patch produced against the "for-next" branch of the sophgo "linux" tree:
https://github.com/sophgo/linux.git

- Changes in V6
- Change board compatible from "milkv,duos" to "milkv,duo-s"
- Rename sg2000-milkv-duos.dts to cv1812h-milkv-duo-s.dts
- Remove redundant line from board DTS:
device_type = "memory";
It was already set in cv1812h.dtsi

- Changes in V5
- Fix the commit message describing the board DTS.
MMC is not supported yet.

- Changes in V4
- Remove mmc device (&sdhci0) as not working yet with linux-next
- Use "sophgo,cv1812h" compatible as on the Huashan Pi board.
Should I call the DTS cv1812h-milkv-duos.dts instead
of sg2000-milkv-duos.dts?

- Changes in V3
- Fix enum in devicetree/bindings/riscv/sophgo.yaml

- Changes in V2:
- Add a first patch to register the new compatible string
for this board.
- Use a correct SoC compatible string
- Add "disable-wp" (disable write protect) property
to enable write access to the external SD card.

Michael Opdenacker (2):
dt-bindings: riscv: add Milk-V Duo S board compatibles
riscv: dts: sophgo: add initial Milk-V Duo S board support

.../devicetree/bindings/riscv/sophgo.yaml | 1 +
arch/riscv/boot/dts/sophgo/Makefile | 1 +
.../boot/dts/sophgo/cv1812h-milkv-duo-s.dts | 33 +++++++++++++++++++
3 files changed, 35 insertions(+)
create mode 100644 arch/riscv/boot/dts/sophgo/cv1812h-milkv-duo-s.dts

--
2.34.1