Skip to contentSkip to conversation

Add initial Milk-V Duo S board support

PATCH Superseded Joshua Milas 4 participants 17 messages Oct 11, 2025 – Mar 21

Subsystems (3)

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

cover Add initial Milk-V Duo S board support

This adds an initial device tree for the Milk-V Duo S board with support for reading from the SD card and network over ethernet. This is continued work from Michael Opdenacker's v6 series [1] on the ARM64 and RISCV side. It has been tested with both ARM64 and RISCV64.

---

v2
- Made new entry in docs to avoid DTC check error
- "Milk-V DuoS" -> "Milk-V Duo S"
- Sorting of aliases
- Added uart*, emmc, mdio, gmac0, i2c*, spi*, dmac, saradc to device tree matching what is available on the pinout [2] and available in the device tree includes
- Removal of 'no-mmc' and 'no-sdio' for sdhci0 as it works without
- Added riscv device tree

Joshua Milas (3):
dt-bindings: soc: sophgo: add Milk-V Duo S board compatibles
arm64: dts: sophgo: add initial Milk-V Duo S board support
riscv64: dts: sophgo: add initial Milk-V Duo S board support

 .../bindings/soc/sophgo/sophgo.yaml           |   5 +
 arch/arm64/boot/dts/sophgo/Makefile           |   1 +
 .../boot/dts/sophgo/sg2000-milkv-duo-s.dts    | 110 ++++++++++++++++++
 arch/riscv/boot/dts/sophgo/Makefile           |   1 +
 .../boot/dts/sophgo/cv1812h-milkv-duo-s.dts   | 110 ++++++++++++++++++
 5 files changed, 227 insertions(+)
 create mode 100644 arch/arm64/boot/dts/sophgo/sg2000-milkv-duo-s.dts
 create mode 100644 arch/riscv/boot/dts/sophgo/cv1812h-milkv-duo-s.dts

base-commit: 0251a1deaec78252cb311fc8305d3670bc5eee0e

Signature · 1 line
2.51.0
#1 lore raw

PATCH 1/3 dt-bindings: soc: sophgo: add Milk-V Duo S board compatibles

Document the compatible strings for the Milk-V Duo S board [1] which uses the SOPHGO SG2000 SoC [2] on the ARM64 side. The RISCV side uses the SOPHGO CV1812h [3].

---
 Documentation/devicetree/bindings/soc/sophgo/sophgo.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/soc/sophgo/sophgo.yaml +5 -0
index 1c502618de51..63773811b80f 100644
@@ -25,12 +25,17 @@ properties:
       - items:
           - enum:
               - sophgo,huashan-pi
+              - milkv,duo-s
           - const: sophgo,cv1812h
       - items:
           - enum:
               - milkv,duo-module-01-evb
           - const: milkv,duo-module-01
           - const: sophgo,sg2000
+      - items:
+          - enum:
+              - milkv,duo-s
+          - const: sophgo,sg2000
       - items:
           - enum:
               - sipeed,licheerv-nano-b
Signature · 1 line
2.51.0
maintainer
#2 lore raw

Re: [PATCH 1/3] dt-bindings: soc: sophgo: add Milk-V Duo S board compatibles

Quoted 18 lines · Joshua Milas

Document the compatible strings for the Milk-V Duo S board [1] which uses the SOPHGO SG2000 SoC [2] on the ARM64 side. The RISCV side uses the SOPHGO CV1812h [3].

---
 Documentation/devicetree/bindings/soc/sophgo/sophgo.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/soc/sophgo/sophgo.yaml +0 -0
index 1c502618de51..63773811b80f 100644

Documentation/devicetree/bindings/soc/sophgo/sophgo.yaml properties: · line 28

Quoted 4 lines
Documentation/devicetree/bindings/soc/sophgo/sophgo.yaml +1 -0
@@ -25,12 +25,17 @@ properties:
       - items:
           - enum:
               - sophgo,huashan-pi
+              - milkv,duo-s

Why? I know no duo S board use cv1812h.

Quoted 16 lines
Documentation/devicetree/bindings/soc/sophgo/sophgo.yaml +4 -0
           - const: sophgo,cv1812h
       - items:
           - enum:
               - milkv,duo-module-01-evb
           - const: milkv,duo-module-01
           - const: sophgo,sg2000
+      - items:
+          - enum:
+              - milkv,duo-s
+          - const: sophgo,sg2000
       - items:
           - enum:
               - sipeed,licheerv-nano-b
Signature · 1 line
2.51.0
#3 lore raw

Re: [PATCH 1/3] dt-bindings: soc: sophgo: add Milk-V Duo S board compatibles

Hi Inochi,

I originally added the board to the cv1812h because I was using that dtsi on the riscv64 side. I removed it from the list in v3 since I added the sg2000.dtsi but forgot to add it to the changelog. This is resolved in my current patchset and notes.

Thanks for the feedback,
- Joshua Milas

#4 lore raw

PATCH 2/3 arm64: dts: sophgo: add initial Milk-V Duo S board support

In reply to Joshua Milas

This adds initial arm64 support for the Milk-V Duo S board
[1] making it possible to boot Linux to the command line.

---
 arch/arm64/boot/dts/sophgo/Makefile           |   1 +
 .../boot/dts/sophgo/sg2000-milkv-duo-s.dts    | 110 ++++++++++++++++++
 2 files changed, 111 insertions(+)
 create mode 100644 arch/arm64/boot/dts/sophgo/sg2000-milkv-duo-s.dts
arch/arm64/boot/dts/sophgo/Makefile +1 -0
index 94f52cd7d994..68aace728223 100644
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2000-milkv-duo-module-01-evb.dtb
+dtb-$(CONFIG_ARCH_SOPHGO) += sg2000-milkv-duo-s.dtb
arch/arm64/boot/dts/sophgo/sg2000-milkv-duo-s.dts new file +110 -0

110 lines not on this page · raw message

Signature · 1 line
2.51.0
maintainer
#5 lore raw

Re: [PATCH 2/3] arm64: dts: sophgo: add initial Milk-V Duo S board support

Quoted 139 lines · Joshua Milas

This adds initial arm64 support for the Milk-V Duo S board
[1] making it possible to boot Linux to the command line.

---
 arch/arm64/boot/dts/sophgo/Makefile           |   1 +
 .../boot/dts/sophgo/sg2000-milkv-duo-s.dts    | 110 ++++++++++++++++++
 2 files changed, 111 insertions(+)
 create mode 100644 arch/arm64/boot/dts/sophgo/sg2000-milkv-duo-s.dts
arch/arm64/boot/dts/sophgo/Makefile +1 -0
index 94f52cd7d994..68aace728223 100644
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2000-milkv-duo-module-01-evb.dtb
+dtb-$(CONFIG_ARCH_SOPHGO) += sg2000-milkv-duo-s.dtb
arch/arm64/boot/dts/sophgo/sg2000-milkv-duo-s.dts new file +110 -0
new file mode 100644
index 000000000000..e9afad6fd106
@@ -0,0 +1,110 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+
+/dts-v1/;
+
+#include <dt-bindings/pinctrl/pinctrl-sg2000.h>
+#include "sg2000.dtsi"
+
+/ {
+	model = "Milk-V Duo S";
+	compatible = "milkv,duo-s", "sophgo,sg2000";
+
+	aliases {
+		mmc0 = &sdhci0;
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
+		serial3 = &uart3;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
+
+&osc {
+	clock-frequency = <25000000>;
+};
+
+&dmac {
+	status = "okay";
+};
+
+&emmc {
+	bus-width = <4>;
+	no-1-8-v;
+	cap-mmc-hw-reset;
+	no-sd;
+	no-sdio;
+	non-removable;
+	status = "okay";
+};
+
+&gmac0 {
+	status = "okay";
+};
+
+&i2c1 {
+	status = "okay";
+};
+
+&i2c2 {
+	status = "okay";
+};
+
+&i2c3 {
+	status = "okay";
+};
+
+&i2c4 {
+	status = "okay";
+};
+
+&mdio {
+	status = "okay";
+};
+
+&saradc {
+	status = "okay";
+};
+
+&sdhci0 {
+	bus-width = <4>;
+	no-1-8-v;
+	disable-wp;
+	status = "okay";
+};
+
+&sdhci1 {
+	bus-width = <4>;
+	cap-sdio-irq;
+	no-mmc;
+	no-sd;
+	non-removable;
+	status = "okay";
+};
+
+&spi0 {
+	status = "okay";
+};
+
+&spi3 {
+	status = "okay";
+};
+
+&uart0 {
+	status = "okay";
+};
+
+&uart1 {
+	status = "okay";
+};
+
+&uart2 {
+	status = "okay";
+};
+
+&uart3 {
+	status = "okay";
+};
+
Signature · 1 line
2.51.0

Only enable device that can be accessed directly. These devices share some pins and only one of them can be used. I suggest enabling devices that are accessed by default (which means it is compatible with the vendor kernel).

This advice also applys to the riscv dts.

Regards,
Inochi

#6 lore raw

Re: [PATCH 2/3] arm64: dts: sophgo: add initial Milk-V Duo S board support

Hi Inochi,

Quoted 4 lines

Only enable device that can be accessed directly. These devices share some pins and only one of them can be used. I suggest enabling devices that are accessed by default (which means it is compatible with the vendor kernel).

I decompiled the vendor device tree and will match what is in that. Surprisingly most of these are enabled there. I also tried to check the pinouts [1] but didnt really get anything out of it.

Thanks,
- Joshua Milas

maintainer
#7 lore raw

Re: [PATCH 2/3] arm64: dts: sophgo: add initial Milk-V Duo S board support

Quoted 9 lines · Joshua Milas

Hi Inochi,

Quoted 4 lines

Only enable device that can be accessed directly. These devices share some pins and only one of them can be used. I suggest enabling devices that are accessed by default (which means it is compatible with the vendor kernel).

I decompiled the vendor device tree and will match what is in that. Surprisingly most of these are enabled there.

Yeah, the vendor enable almost all, but it can not access at the same time. The pinmux control which device can be accessed IIRC, milkv already provides a tool, named duo-pinmux, for you to check the pinmux.

Quoted 4 lines

I also tried to check the pinouts [1] but didnt really get anything out of it.

You need to dump the pinconf register and check the configuration with the document (the link you mentioned).

Regards,
Inochi

#8 lore raw

Re: [PATCH 2/3] arm64: dts: sophgo: add initial Milk-V Duo S board support

Inochi,

Thanks for pointing me twards duo-pinmux. I was able to use it to get the default config which is uart0, spi3, and i2c4. I can change the dts to match, but...

Quoted 1 line

I suggest enabling devices that are accessed by default

Would we rather enable anything that can be accessed by the pinmux?

Thanks,
- Joshua Milas

#9 lore raw

Re: [PATCH 2/3] arm64: dts: sophgo: add initial Milk-V Duo S board support

Hi Joshua

Thanks a lot for working on support for Milk-V Duo S. I'll be happy to test your V3 :)

Quoted 8 lines · Joshua Milas

Inochi,

Thanks for pointing me twards duo-pinmux. I was able to use it to get the default config which is uart0, spi3, and i2c4. I can change the dts to match, but...

Quoted 1 line

I suggest enabling devices that are accessed by default

Would we rather enable anything that can be accessed by the pinmux?

If I understand correctly, you can't do that because there will be conflicts.
From the Duo S pinout diagram (https://milkv.io/duo-s/duos-pinout.webp), on headers 41 and 39, you have to choose between MIPI, I2C2, PWM12/13 or SD1. If at least 2 of these are selected at the same time, there will be a conflict, and I assume that the pinctrl controller driver will flag it.

Then it sounds complicated to define a default combination for the whole board, because it's like a default use model. Who gets to choose? What Inochi suggests is to follow the vendor kernel choice, which would correspond to the way the vendor intended the board to be used. However the community could choose another default way to use the board, so the choice may be up to the first contributor to the mainline kernel for this board, possibly revised through later discussions.

I guess there are cases when the choice is easy:

- When only one configuration is available for a set of pins
- When there are important devices on I2C or SPI buses on the board. Then, you want to find a way to prioritize such buses. Fortunately, I guess the board design also guides you to the right choice.

I was facing the the same question today on another board, and that's why I'm happy it's raised here. As thousands of DTS files have been written before, I'd love to hear from people with experience on this topic. Are guidelines written anywhere for board DTS creators?

Cheers
Michael.

Signature · 4 lines
Michael Opdenacker
Root Commit
Yocto Project and OpenEmbedded Training course - Learn by doing:
https://rootcommit.com/training/yocto/
#10 lore raw

Re: [PATCH 2/3] arm64: dts: sophgo: add initial Milk-V Duo S board support

Hello Michael,

Thanks for your explanation, I didn't know it might cause an error. My plan is it enable i2c4, uart0, and spi3 since those are the default on the pinctrl mux. I have tested uart0 and i2c4, but I am getting an error with SPI

[    2.423553] dw_spi_mmio 41b0000.spi: DMA init failed

Not sure what is going on. I have the DMA controller enabled and it seems to be initalizing correctly.

[    0.732791] dw_axi_dmac_platform 4330000.dma-controller: DesignWare AXI DMA Controller, 8 channels

Let me submit v3 so I can get some eyes on it.

Thanks,
- Joshua Milas

maintainer
#11 lore raw

Re: [PATCH 2/3] arm64: dts: sophgo: add initial Milk-V Duo S board support

In reply to Michael Opdenacker
Quoted 15 lines · Michael Opdenacker

Hi Joshua

Thanks a lot for working on support for Milk-V Duo S. I'll be happy to test your V3 :)

Quoted 8 lines · Joshua Milas

Inochi,

Thanks for pointing me twards duo-pinmux. I was able to use it to get the default config which is uart0, spi3, and i2c4. I can change the dts to match, but...

Quoted 1 line

I suggest enabling devices that are accessed by default

Would we rather enable anything that can be accessed by the pinmux?

Quoted 8 lines

If I understand correctly, you can't do that because there will be conflicts.

From the Duo S pinout diagram (https://milkv.io/duo-s/duos-pinout.webp), on headers 41 and 39, you have to choose between MIPI, I2C2, PWM12/13 or SD1. If at least 2 of these are selected at the same time, there will be a conflict, and I assume that the pinctrl controller driver will flag it.

Yes, that's true. Boards with CV18XX always require setting pinctrl.

Quoted 8 lines

Then it sounds complicated to define a default combination for the whole board, because it's like a default use model. Who gets to choose? What Inochi suggests is to follow the vendor kernel choice, which would correspond to the way the vendor intended the board to be used. However the community could choose another default way to use the board, so the choice may be up to the first contributor to the mainline kernel for this board, possibly revised through later discussions.

In fact, I see the maintainers do not agree adding every possible configuration to the DTS, (especially without "omit-if-unused" flag). And in many case, it is impossible to add all possibility. As a result, I prefer to use DTS overlay if there is something custom, and keep the mainline DTS minimum.

Quoted 7 lines

I guess there are cases when the choice is easy:

- When only one configuration is available for a set of pins
- When there are important devices on I2C or SPI buses on the board. Then, you want to find a way to prioritize such buses. Fortunately, I guess the board design also guides you to the right choice.

In fact the priority is the thing that is hard to decide. This is why I suggesting keeping compatible with the vendor kernel, as many people starts with vendor kernel and it is a good thing to refer.

Quoted 15 lines

I was facing the the same question today on another board, and that's why I'm happy it's raised here. As thousands of DTS files have been written before, I'd love to hear from people with experience on this topic. Are guidelines written anywhere for board DTS creators?

Cheers
Michael.

Signature · 4 lines
Michael Opdenacker
Root Commit
Yocto Project and OpenEmbedded Training course - Learn by doing:
https://rootcommit.com/training/yocto/
#12 lore raw

Re: [PATCH 2/3] arm64: dts: sophgo: add initial Milk-V Duo S board support

Hi Inochi,

Thanks a lot for the guidance!

Quoted 5 lines · Inochi Amaoto

In fact, I see the maintainers do not agree adding every possible configuration to the DTS, (especially without "omit-if-unused" flag). And in many case, it is impossible to add all possibility. As a result, I prefer to use DTS overlay if there is something custom, and keep the mainline DTS minimum.

I guess you meant "/omit-if-no-ref/". Good to know!

Quoted 3 lines

In fact the priority is the thing that is hard to decide. This is why I suggesting keeping compatible with the vendor kernel, as many people starts with vendor kernel and it is a good thing to refer.

This makes sense. Thanks again.
Cheers
Michael.

Signature · 4 lines
Michael Opdenacker
Root Commit
Yocto Project and OpenEmbedded Training course - Learn by doing:
https://rootcommit.com/training/yocto/
#13 lore raw

PATCH 3/3 riscv64: dts: sophgo: add initial Milk-V Duo S board support

In reply to Joshua Milas

This adds initial riscv support for the Milk-V Duo S board
[1] making it possible to boot Linux to the command line.

---
 arch/riscv/boot/dts/sophgo/Makefile           |   1 +
 .../boot/dts/sophgo/cv1812h-milkv-duo-s.dts   | 110 ++++++++++++++++++
 2 files changed, 111 insertions(+)
 create mode 100644 arch/riscv/boot/dts/sophgo/cv1812h-milkv-duo-s.dts
arch/riscv/boot/dts/sophgo/Makefile +1 -0
index 6f65526d4193..49d6ae4724ea 100644
@@ -1,6 +1,7 @@
 # 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) += cv1812h-milkv-duo-s.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2002-licheerv-nano-b.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-evb-v1.dtb
arch/riscv/boot/dts/sophgo/cv1812h-milkv-duo-s.dts new file +110 -0

110 lines not on this page · raw message

Signature · 1 line
2.51.0
maintainer
#14 lore raw

Re: [PATCH 3/3] riscv64: dts: sophgo: add initial Milk-V Duo S board support

Quoted 30 lines · Joshua Milas

This adds initial riscv support for the Milk-V Duo S board
[1] making it possible to boot Linux to the command line.

---
 arch/riscv/boot/dts/sophgo/Makefile           |   1 +
 .../boot/dts/sophgo/cv1812h-milkv-duo-s.dts   | 110 ++++++++++++++++++
 2 files changed, 111 insertions(+)
 create mode 100644 arch/riscv/boot/dts/sophgo/cv1812h-milkv-duo-s.dts
arch/riscv/boot/dts/sophgo/Makefile +1 -0
index 6f65526d4193..49d6ae4724ea 100644
@@ -1,6 +1,7 @@
 # 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) += cv1812h-milkv-duo-s.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2002-licheerv-nano-b.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-evb-v1.dtb
arch/riscv/boot/dts/sophgo/cv1812h-milkv-duo-s.dts new file +0 -0
new file mode 100644
index 000000000000..2ab46ec1fc0e

arch/riscv/boot/dts/sophgo/cv1812h-milkv-duo-s.dts line 6

Quoted 7 lines
arch/riscv/boot/dts/sophgo/cv1812h-milkv-duo-s.dts new file +6 -0
@@ -0,0 +1,110 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+
+/dts-v1/;
+
+#include <dt-bindings/pinctrl/pinctrl-cv1812h.h>
 
+#include "cv1812h.dtsi"

SG2000 is different with CV1812H, add a new sg2000.dtsi instead.

Regards,
Inochi

Quoted 107 lines
arch/riscv/boot/dts/sophgo/cv1812h-milkv-duo-s.dts new file +104 -0
+
+/ {
+	model = "Milk-V Duo S";
+	compatible = "milkv,duo-s", "sophgo,cv1812h";
+
+	aliases {
+		mmc0 = &sdhci0;
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
+		serial3 = &uart3;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
+
+&osc {
+	clock-frequency = <25000000>;
+};
+
+&dmac {
+	status = "okay";
+};
+
+&emmc {
+	bus-width = <4>;
+	no-1-8-v;
+	cap-mmc-hw-reset;
+	no-sd;
+	no-sdio;
+	non-removable;
+	status = "okay";
+};
+
+&gmac0 {
+	status = "okay";
+};
+
+&i2c1 {
+	status = "okay";
+};
+
+&i2c2 {
+	status = "okay";
+};
+
+&i2c3 {
+	status = "okay";
+};
+
+&i2c4 {
+	status = "okay";
+};
+
+&mdio {
+	status = "okay";
+};
+
+&saradc {
+	status = "okay";
+};
+
+&sdhci0 {
+	bus-width = <4>;
+	no-1-8-v;
+	disable-wp;
+	status = "okay";
+};
+
+&sdhci1 {
+	bus-width = <4>;
+	cap-sdio-irq;
+	no-mmc;
+	no-sd;
+	non-removable;
+	status = "okay";
+};
+
+&spi0 {
+	status = "okay";
+};
+
+&spi3 {
+	status = "okay";
+};
+
+&uart0 {
+	status = "okay";
+};
+
+&uart1 {
+	status = "okay";
+};
+
+&uart2 {
+	status = "okay";
+};
+
+&uart3 {
+	status = "okay";
+};
+
Signature · 1 line
2.51.0
#15 lore raw
In reply to Joshua Milas

Hi, Joshua,

You should add "v2" in the title of this patchset, pleaes run git format-patch with "-v 2".

Please do this in next v3.

Thanks,

Chen

Quoted 38 lines · Joshua Milas

This adds an initial device tree for the Milk-V Duo S board with support for reading from the SD card and network over ethernet. This is continued work from Michael Opdenacker's v6 series [1] on the ARM64 and RISCV side. It has been tested with both ARM64 and RISCV64.

---

v2
- Made new entry in docs to avoid DTC check error
- "Milk-V DuoS" -> "Milk-V Duo S"
- Sorting of aliases
- Added uart*, emmc, mdio, gmac0, i2c*, spi*, dmac, saradc to device tree matching what is available on the pinout [2] and available in the device tree includes
- Removal of 'no-mmc' and 'no-sdio' for sdhci0 as it works without
- Added riscv device tree

Joshua Milas (3):
dt-bindings: soc: sophgo: add Milk-V Duo S board compatibles
arm64: dts: sophgo: add initial Milk-V Duo S board support
riscv64: dts: sophgo: add initial Milk-V Duo S board support

  .../bindings/soc/sophgo/sophgo.yaml           |   5 +
  arch/arm64/boot/dts/sophgo/Makefile           |   1 +
  .../boot/dts/sophgo/sg2000-milkv-duo-s.dts    | 110 ++++++++++++++++++
  arch/riscv/boot/dts/sophgo/Makefile           |   1 +
  .../boot/dts/sophgo/cv1812h-milkv-duo-s.dts   | 110 ++++++++++++++++++
  5 files changed, 227 insertions(+)

create mode 100644 arch/arm64/boot/dts/sophgo/sg2000-milkv-duo-s.dts create mode 100644 arch/riscv/boot/dts/sophgo/cv1812h-milkv-duo-s.dts

base-commit: 0251a1deaec78252cb311fc8305d3670bc5eee0e

#16 lore raw
In reply to Joshua Milas
Quoted 8 lines · Joshua Milas

This adds an initial device tree for the Milk-V Duo S board with support for reading from the SD card and network over ethernet. This is continued work from Michael Opdenacker's v6 series [1] on the ARM64 and RISCV side. It has been tested with both ARM64 and RISCV64.

---

Quoted 10 lines

v2
- Made new entry in docs to avoid DTC check error
- "Milk-V DuoS" -> "Milk-V Duo S"
- Sorting of aliases
- Added uart*, emmc, mdio, gmac0, i2c*, spi*, dmac, saradc to device tree matching what is available on the pinout [2] and available in the device tree includes
- Removal of 'no-mmc' and 'no-sdio' for sdhci0 as it works without
- Added riscv device tree

Hi, Joshua,

Better to add link to v1 so we can track the history of this patchset. https://lore.kernel.org/linux-riscv/[email protected]/ is a good sample for your quick reference.

Chen

Quoted 20 lines

Joshua Milas (3):
dt-bindings: soc: sophgo: add Milk-V Duo S board compatibles
arm64: dts: sophgo: add initial Milk-V Duo S board support
riscv64: dts: sophgo: add initial Milk-V Duo S board support

  .../bindings/soc/sophgo/sophgo.yaml           |   5 +
  arch/arm64/boot/dts/sophgo/Makefile           |   1 +
  .../boot/dts/sophgo/sg2000-milkv-duo-s.dts    | 110 ++++++++++++++++++
  arch/riscv/boot/dts/sophgo/Makefile           |   1 +
  .../boot/dts/sophgo/cv1812h-milkv-duo-s.dts   | 110 ++++++++++++++++++
  5 files changed, 227 insertions(+)

create mode 100644 arch/arm64/boot/dts/sophgo/sg2000-milkv-duo-s.dts create mode 100644 arch/riscv/boot/dts/sophgo/cv1812h-milkv-duo-s.dts

base-commit: 0251a1deaec78252cb311fc8305d3670bc5eee0e