add initial Milk-V Duo S board support
Subsystems (3)
v2 cover add initial Milk-V Duo S board support
From: Michael Opdenacker <[email protected]>
This adds an initial device tree for the Milk-V Duo S board. Last tested on linux-next as a May 9, 2024.
- 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.
Many thanks to reviewers!
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 | 4 ++ arch/riscv/boot/dts/sophgo/Makefile | 1 + .../boot/dts/sophgo/sg2000-milkv-duos.dts | 39 +++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts
Signature · 7 lines
2.34.1 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
PATCH v2 1/2 dt-bindings: riscv: add Milk-V Duo S board compatibles
From: Michael Opdenacker <[email protected]>
Document the compatible strings for the Milk-V Duo S board[1] which uses the SOPHGO SG2000 SoC, compatible with the SOPHGO CV1800B SoC[2].
--- Documentation/devicetree/bindings/riscv/sophgo.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/riscv/sophgo.yaml +4 -0
@@ -22,6 +22,10 @@ properties: - enum: - milkv,duo - const: sophgo,cv1800b + - items: + - enum: + - milkv,duos + - const: sophgo,cv1800b - items: - enum: - sophgo,huashan-pi
Signature · 1 line
2.34.1
PATCH v2 2/2 riscv: dts: sophgo: add initial Milk-V Duo S board support
In reply to [email protected]From: Michael Opdenacker <[email protected]>
This adds initial support for the Milk-V Duo S board
(https://milkv.io/duo-s), enabling the serial port and SD card support, allowing to boot Linux to the command line.
--- arch/riscv/boot/dts/sophgo/Makefile | 1 + .../boot/dts/sophgo/sg2000-milkv-duos.dts | 39 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts
arch/riscv/boot/dts/sophgo/Makefile +1 -0
@@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_SOPHGO) += cv1800b-milkv-duo.dtb dtb-$(CONFIG_ARCH_SOPHGO) += cv1812h-huashan-pi.dtb +dtb-$(CONFIG_ARCH_SOPHGO) += sg2000-milkv-duos.dtb dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb
arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts new file +39 -0
@@ -0,0 +1,39 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2024 Michael Opdenacker <[email protected]> + */ + +/dts-v1/; + +#include "cv1800b.dtsi" + +/ { + model = "Milk-V Duo S"; + compatible = "milkv,duos", "sophgo,cv1800b"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x20000000>; + }; +}; + +&osc { + clock-frequency = <25000000>; +}; + +&sdhci0 { + status = "okay"; + disable-wp; +}; + +&uart0 { + status = "okay"; +};
Signature · 1 line
2.34.1
Re: [PATCH v2 1/2] dt-bindings: riscv: add Milk-V Duo S board compatibles
In reply to [email protected]Quoted 18 lines · On 10/04/2024 07:25, [email protected] wrote:
From: Michael Opdenacker <[email protected]>
Document the compatible strings for the Milk-V Duo S board[1] which uses the SOPHGO SG2000 SoC, compatible with the SOPHGO CV1800B SoC[2].
Signed-off-by Michael Opdenacker <[email protected]>--- Documentation/devicetree/bindings/riscv/sophgo.yaml | 4 ++++ 1 file changed, 4 insertions(+)Documentation/devicetree/bindings/riscv/sophgo.yaml +0
-0
Documentation/devicetree/bindings/riscv/sophgo.yaml properties: · line 27
Quoted 6 lines
Documentation/devicetree/bindings/riscv/sophgo.yaml +3
-0@@ -22,6 +22,10 @@ properties: - enum: - milkv,duo - const: sophgo,cv1800b + - items: + - enum: + - milkv,duos
This should be just part of previous enum.
Best regards,
Krzysztof