Skip to contentSkip to conversation

dt-bindings: soc: sophgo: add Milk-V Duo 256M board

PATCH Superseded Chen-Yu Yeh 4 participants 7 messages Jun 10 – Jul 10

Subsystems (3)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 dt-bindings: soc: sophgo: add Milk-V Duo 256M board

Add compatible string for the Milk-V Duo 256M board.

---
 Documentation/devicetree/bindings/soc/sophgo/sophgo.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/soc/sophgo/sophgo.yaml +4 -0
index 1c502618de51..fcb1d905da7d 100644
@@ -31,6 +31,10 @@ properties:
               - milkv,duo-module-01-evb
           - const: milkv,duo-module-01
           - const: sophgo,sg2000
+      - items:
+          - enum:
+              - milkv,duo256m
+          - const: sophgo,sg2002
       - items:
           - enum:
               - sipeed,licheerv-nano-b
Signature · 1 line
2.43.0
#1 lore raw

PATCH v2 2/2 riscv: dts: sophgo: Add Milk-V Duo 256M board support

The Milk-V Duo 256M is a small form factor development board based on the Sophgo SG2002 SoC.

This patch adds basic device tree support for the board, including:
- UART console
- SD/MMC controller
- USB host
- Onboard blue status LED (connected to PWR_GPIO[2] / porte 2)

Tested on actual Milk-V Duo 256M hardware, verified boot to shell and heartbeat LED functionality.

---
Changes since v1:
- Removed the leds node because &porte is not yet supported in cv180x.dtsi, which would cause a dtc compilation error.
- Retained the &usb node because it is already defined in cv180x.dtsi.
- Cleaned up the trailing blank line in the Makefile.

 arch/riscv/boot/dts/sophgo/Makefile           |   3 +-
 .../boot/dts/sophgo/sg2002-milkv-duo256m.dts  | 108 ++++++++++++++++++
 2 files changed, 110 insertions(+), 1 deletion(-)
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts
arch/riscv/boot/dts/sophgo/Makefile +2 -1
index 6f65526d4193..f9415c30a2c5 100644
@@ -2,7 +2,8 @@
 dtb-$(CONFIG_ARCH_SOPHGO) += cv1800b-milkv-duo.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += cv1812h-huashan-pi.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2002-licheerv-nano-b.dtb
+dtb-$(CONFIG_ARCH_SOPHGO) += sg2002-milkv-duo256m.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-evb-v1.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-evb-v2.dtb
-dtb-$(CONFIG_ARCH_SOPHGO) += sg2044-sophgo-srd3-10.dtb
+dtb-$(CONFIG_ARCH_SOPHGO) += sg2044-sophgo-srd3-10.dtb
\ No newline at end of file
arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts new file +108 -0

108 lines not on this page · raw message

Signature · 1 line
2.43.0
#2 lore raw

Re: [PATCH v2 2/2] riscv: dts: sophgo: Add Milk-V Duo 256M board support

Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider: - [High] The device tree references an undefined label `&usb`, which will cause a fatal dtc compilation…

Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider:
- [High] The device tree references an undefined label &usb, which will cause a fatal dtc compilation error.
- [Medium] The commit message claims to add support for an 'Onboard blue status LED', but the corresponding LED node is completely missing from the device tree.
- [Low] Accidental removal of the trailing newline at the end of the Makefile.
- [Low] Potentially stale or incomplete copyright attribution in the new DTS file.
--

commit 1a0c595fbd52010c818ad842d5ef53c54212434e
Author: Chen-Yu Yeh <[email protected]>

riscv: dts: sophgo: Add Milk-V Duo 256M board support

The Milk-V Duo 256M is a small form factor development board based on the Sophgo SG2002 SoC.

Quoted 4 lines

- Onboard blue status LED (connected to PWR_GPIO[2] / porte 2)

Tested on actual Milk-V Duo 256M hardware, verified boot to shell and heartbeat LED functionality.

[Severity: Medium]
Is the LED node missing from the device tree? The commit message mentions support and verification for an onboard blue status LED, but there does not seem to be a corresponding leds or gpio-leds node in the patch.

Quoted 3 lines
arch/riscv/boot/dts/sophgo/Makefile +0 -0

[ ... ]

arch/riscv/boot/dts/sophgo/Makefile line 9

Quoted 5 lines

dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-evb-v1.dtb
dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-evb-v2.dtb

arch/riscv/boot/dts/sophgo/Makefile +1 -1
-dtb-$(CONFIG_ARCH_SOPHGO) += sg2044-sophgo-srd3-10.dtb
+dtb-$(CONFIG_ARCH_SOPHGO) += sg2044-sophgo-srd3-10.dtb
\ No newline at end of file

[Severity: Low]
this isn't a bug, but was the trailing newline accidentally removed from the end of the Makefile?

arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts line 4

Quoted 9 lines
arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts new file +4 -0
new file mode 100644
@@ -0,0 +1,108 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2023 Jisheng Zhang <[email protected]>
+ */

[Severity: Low]
this isn't a bug, but is this copyright attribution stale? The file appears to use a template from 2023, and it might be missing the 2026 copyright for the current author.

arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts line 9

Quoted 5 lines
arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts new file +5 -0
+
+/dts-v1/;
+
+#include "sg2002.dtsi"
+#include <dt-bindings/gpio/gpio.h>

[Severity: Medium]
Is this header still required? It seems unused in the newly added device tree file, possibly because the LED node was accidentally dropped.

[ ... ]

arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts line 108

Quoted 10 lines
arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts new file +10 -0
+&uart0 {
+	pinctrl-0 = <&uart0_cfg>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
+&usb {
+	dr_mode = "host";
+	status = "okay";
+};

[Severity: High]
Will this compile successfully? It looks like the usb label is not defined in the included base SoC device tree files, which could cause a dtc syntax error during the build.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
maintainer
#3 lore raw

Re: [PATCH v2 2/2] riscv: dts: sophgo: Add Milk-V Duo 256M board support

In reply to Chen-Yu Yeh
Quoted 10 lines · Chen-Yu Yeh

The Milk-V Duo 256M is a small form factor development board based on the Sophgo SG2002 SoC.

This patch adds basic device tree support for the board, including:
- UART console
- SD/MMC controller
- USB host
- Onboard blue status LED (connected to PWR_GPIO[2] / porte 2)

Quoted 3 lines

Tested on actual Milk-V Duo 256M hardware, verified boot to shell and heartbeat LED functionality.

IIRC the led is not controlled by the small core, so the node should be described in the dts.

I see the Sashiko does provide some good question, please check.

Quoted 18 lines

---
Changes since v1:
- Removed the leds node because &porte is not yet supported in cv180x.dtsi, which would cause a dtc compilation error.
- Retained the &usb node because it is already defined in cv180x.dtsi.
- Cleaned up the trailing blank line in the Makefile.

 arch/riscv/boot/dts/sophgo/Makefile           |   3 +-
 .../boot/dts/sophgo/sg2002-milkv-duo256m.dts  | 108 ++++++++++++++++++
 2 files changed, 110 insertions(+), 1 deletion(-)
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts
arch/riscv/boot/dts/sophgo/Makefile +0 -0
index 6f65526d4193..f9415c30a2c5 100644

arch/riscv/boot/dts/sophgo/Makefile line 9

Quoted 10 lines
arch/riscv/boot/dts/sophgo/Makefile +2 -1
@@ -2,7 +2,8 @@
 dtb-$(CONFIG_ARCH_SOPHGO) += cv1800b-milkv-duo.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += cv1812h-huashan-pi.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2002-licheerv-nano-b.dtb
+dtb-$(CONFIG_ARCH_SOPHGO) += sg2002-milkv-duo256m.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-evb-v1.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-evb-v2.dtb
-dtb-$(CONFIG_ARCH_SOPHGO) += sg2044-sophgo-srd3-10.dtb
+dtb-$(CONFIG_ARCH_SOPHGO) += sg2044-sophgo-srd3-10.dtb
\ No newline at end of file

Why you change this? Please do not touch unrelated things.

arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts line 3

Quoted 9 lines
arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts new file +3 -0
new file mode 100644
index 000000000000..4cf441ab3790
@@ -0,0 +1,108 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2023 Jisheng Zhang <[email protected]>

I guess a right copyright is needed for your code.

Quoted 108 lines
arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts new file +105 -0
+ */
+
+/dts-v1/;
+
+#include "sg2002.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+	model = "Milk-V Duo 256M";
+	compatible = "milkv,duo256m", "sophgo,sg2002";
+
+	aliases {
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
+		serial3 = &uart3;
+		serial4 = &uart4;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	reserved-memory {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		coprocessor_rtos: region@83f40000 {
+			reg = <0x83f40000 0xc0000>;
+			no-map;
+		};
+	};
+};
+
+&osc {
+	clock-frequency = <25000000>;
+};
+
+&pinctrl {
+	uart0_cfg: uart0-cfg {
+		uart0-pins {
+			pinmux = <PINMUX(PIN_UART0_TX, 0)>,
+				 <PINMUX(PIN_UART0_RX, 0)>;
+			bias-pull-up;
+			drive-strength-microamp = <10800>;
+			power-source = <3300>;
+		};
+	};
+
+	sdhci0_cfg: sdhci0-cfg {
+		sdhci0-clk-pins {
+			pinmux = <PINMUX(PIN_SD0_CLK, 0)>;
+			bias-pull-up;
+			drive-strength-microamp = <16100>;
+			power-source = <3300>;
+		};
+
+		sdhci0-cmd-pins {
+			pinmux = <PINMUX(PIN_SD0_CMD, 0)>;
+			bias-pull-up;
+			drive-strength-microamp = <10800>;
+			power-source = <3300>;
+		};
+
+		sdhci0-data-pins {
+			pinmux = <PINMUX(PIN_SD0_D0, 0)>,
+				 <PINMUX(PIN_SD0_D1, 0)>,
+				 <PINMUX(PIN_SD0_D2, 0)>,
+				 <PINMUX(PIN_SD0_D3, 0)>;
+			bias-pull-up;
+			drive-strength-microamp = <10800>;
+			power-source = <3300>;
+		};
+
+		sdhci0-cd-pins {
+			pinmux = <PINMUX(PIN_SD0_CD, 0)>;
+			bias-pull-up;
+			drive-strength-microamp = <10800>;
+			power-source = <3300>;
+		};
+	};
+};
+
+&sdhci0 {
+	pinctrl-0 = <&sdhci0_cfg>;
+	pinctrl-names = "default";
+	status = "okay";
+	bus-width = <4>;
+	no-1-8-v;
+	no-mmc;
+	no-sdio;
+	disable-wp;
+};
+
+&uart0 {
+	pinctrl-0 = <&uart0_cfg>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
+&usb {
+	dr_mode = "host";
+	status = "okay";
+};
Signature · 1 line
2.43.0
maintainer
#4 lore raw

Re: [PATCH v2 2/2] riscv: dts: sophgo: Add Milk-V Duo 256M board support

Quoted 11 lines · Inochi Amaoto
Quoted 9 lines · Chen-Yu Yeh

The Milk-V Duo 256M is a small form factor development board based on the Sophgo SG2002 SoC.

This patch adds basic device tree support for the board, including:
- UART console
- SD/MMC controller
- USB host
- Onboard blue status LED (connected to PWR_GPIO[2] / porte 2)

Quoted 17 lines
Quoted 3 lines

Tested on actual Milk-V Duo 256M hardware, verified boot to shell and heartbeat LED functionality.

IIRC the led is not controlled by the small core, so the node should be described in the dts.

I see the Sashiko does provide some good question, please check.

Quoted 8 lines

---
Changes since v1:
- Removed the leds node because &porte is not yet supported in cv180x.dtsi, which would cause a dtc compilation error.
- Retained the &usb node because it is already defined in cv180x.dtsi.
- Cleaned up the trailing blank line in the Makefile.

So why not adding the porte?

Regards,
Inochi

Quoted 144 lines
Quoted 10 lines
 arch/riscv/boot/dts/sophgo/Makefile           |   3 +-
 .../boot/dts/sophgo/sg2002-milkv-duo256m.dts  | 108 ++++++++++++++++++
 2 files changed, 110 insertions(+), 1 deletion(-)
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts
arch/riscv/boot/dts/sophgo/Makefile +0 -0
index 6f65526d4193..f9415c30a2c5 100644

arch/riscv/boot/dts/sophgo/Makefile line 9

Quoted 10 lines
arch/riscv/boot/dts/sophgo/Makefile +2 -1
@@ -2,7 +2,8 @@
 dtb-$(CONFIG_ARCH_SOPHGO) += cv1800b-milkv-duo.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += cv1812h-huashan-pi.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2002-licheerv-nano-b.dtb
+dtb-$(CONFIG_ARCH_SOPHGO) += sg2002-milkv-duo256m.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-evb-v1.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-evb-v2.dtb
-dtb-$(CONFIG_ARCH_SOPHGO) += sg2044-sophgo-srd3-10.dtb
+dtb-$(CONFIG_ARCH_SOPHGO) += sg2044-sophgo-srd3-10.dtb
\ No newline at end of file

Why you change this? Please do not touch unrelated things.

arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts line 3

Quoted 9 lines
arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts new file +3 -0
new file mode 100644
index 000000000000..4cf441ab3790
@@ -0,0 +1,108 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2023 Jisheng Zhang <[email protected]>

I guess a right copyright is needed for your code.

Quoted 108 lines
arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts new file +105 -0
+ */
+
+/dts-v1/;
+
+#include "sg2002.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+	model = "Milk-V Duo 256M";
+	compatible = "milkv,duo256m", "sophgo,sg2002";
+
+	aliases {
+		serial0 = &uart0;
+		serial1 = &uart1;
+		serial2 = &uart2;
+		serial3 = &uart3;
+		serial4 = &uart4;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	reserved-memory {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		coprocessor_rtos: region@83f40000 {
+			reg = <0x83f40000 0xc0000>;
+			no-map;
+		};
+	};
+};
+
+&osc {
+	clock-frequency = <25000000>;
+};
+
+&pinctrl {
+	uart0_cfg: uart0-cfg {
+		uart0-pins {
+			pinmux = <PINMUX(PIN_UART0_TX, 0)>,
+				 <PINMUX(PIN_UART0_RX, 0)>;
+			bias-pull-up;
+			drive-strength-microamp = <10800>;
+			power-source = <3300>;
+		};
+	};
+
+	sdhci0_cfg: sdhci0-cfg {
+		sdhci0-clk-pins {
+			pinmux = <PINMUX(PIN_SD0_CLK, 0)>;
+			bias-pull-up;
+			drive-strength-microamp = <16100>;
+			power-source = <3300>;
+		};
+
+		sdhci0-cmd-pins {
+			pinmux = <PINMUX(PIN_SD0_CMD, 0)>;
+			bias-pull-up;
+			drive-strength-microamp = <10800>;
+			power-source = <3300>;
+		};
+
+		sdhci0-data-pins {
+			pinmux = <PINMUX(PIN_SD0_D0, 0)>,
+				 <PINMUX(PIN_SD0_D1, 0)>,
+				 <PINMUX(PIN_SD0_D2, 0)>,
+				 <PINMUX(PIN_SD0_D3, 0)>;
+			bias-pull-up;
+			drive-strength-microamp = <10800>;
+			power-source = <3300>;
+		};
+
+		sdhci0-cd-pins {
+			pinmux = <PINMUX(PIN_SD0_CD, 0)>;
+			bias-pull-up;
+			drive-strength-microamp = <10800>;
+			power-source = <3300>;
+		};
+	};
+};
+
+&sdhci0 {
+	pinctrl-0 = <&sdhci0_cfg>;
+	pinctrl-names = "default";
+	status = "okay";
+	bus-width = <4>;
+	no-1-8-v;
+	no-mmc;
+	no-sdio;
+	disable-wp;
+};
+
+&uart0 {
+	pinctrl-0 = <&uart0_cfg>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
+&usb {
+	dr_mode = "host";
+	status = "okay";
+};
Signature · 1 line
2.43.0
author
#5 lore raw

Re: [PATCH v2 2/2] riscv: dts: sophgo: Add Milk-V Duo 256M board support

Quoted 4 lines
Quoted 2 lines

IIRC the led is not controlled by the small core, so the node should be described in the dts.

...
So why not adding the porte?

You are right, adding the porte is the proper fix. In v3 I added the PWR_GPIO controller node to cv180x.dtsi as a separate patch, and restored the gpio-leds node in the board dts. Verified on the actual board that the heartbeat LED works with the new node.

Quoted 1 line

Why you change this? Please do not touch unrelated things.

Sorry, the removal of the trailing newline was accidental. I have dropped this unrelated change in v3.

Quoted 1 line

I guess a right copyright is needed for your code.

Fixed in v3. Since the file is derived from cv1800b-milkv-duo.dts, I kept the original copyright and added my own.

v3 has been sent:
https://lore.kernel.org/r/[email protected]

Thanks for the review,
Chen-Yu

Inochi Amaoto <[email protected]> 於 2026年7月2日週四 下午5:51寫道:

Quoted 181 lines · Inochi Amaoto
Quoted 11 lines · Chen-Yu Yeh
Quoted 9 lines

The Milk-V Duo 256M is a small form factor development board based on the Sophgo SG2002 SoC.

This patch adds basic device tree support for the board, including:
- UART console
- SD/MMC controller
- USB host
- Onboard blue status LED (connected to PWR_GPIO[2] / porte 2)

Quoted 17 lines
Quoted 3 lines

Tested on actual Milk-V Duo 256M hardware, verified boot to shell and heartbeat LED functionality.

IIRC the led is not controlled by the small core, so the node should be described in the dts.

I see the Sashiko does provide some good question, please check.

Quoted 8 lines

---
Changes since v1:
- Removed the leds node because &porte is not yet supported in cv180x.dtsi, which would cause a dtc compilation error.
- Retained the &usb node because it is already defined in cv180x.dtsi.
- Cleaned up the trailing blank line in the Makefile.

So why not adding the porte?

Regards,
Inochi

Quoted 144 lines
Quoted 10 lines
 arch/riscv/boot/dts/sophgo/Makefile           |   3 +-
 .../boot/dts/sophgo/sg2002-milkv-duo256m.dts  | 108 ++++++++++++++++++
 2 files changed, 110 insertions(+), 1 deletion(-)
 create mode 100644 arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts
arch/riscv/boot/dts/sophgo/Makefile +0 -0
index 6f65526d4193..f9415c30a2c5 100644

arch/riscv/boot/dts/sophgo/Makefile line 9

Quoted 10 lines
arch/riscv/boot/dts/sophgo/Makefile +2 -1
@@ -2,7 +2,8 @@
 dtb-$(CONFIG_ARCH_SOPHGO) += cv1800b-milkv-duo.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += cv1812h-huashan-pi.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2002-licheerv-nano-b.dtb
+dtb-$(CONFIG_ARCH_SOPHGO) += sg2002-milkv-duo256m.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-milkv-pioneer.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-evb-v1.dtb
 dtb-$(CONFIG_ARCH_SOPHGO) += sg2042-evb-v2.dtb
-dtb-$(CONFIG_ARCH_SOPHGO) += sg2044-sophgo-srd3-10.dtb
+dtb-$(CONFIG_ARCH_SOPHGO) += sg2044-sophgo-srd3-10.dtb
\ No newline at end of file

Why you change this? Please do not touch unrelated things.

arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts line 3

Quoted 9 lines
arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts new file +3 -0
new file mode 100644
index 000000000000..4cf441ab3790
@@ -0,0 +1,108 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2023 Jisheng Zhang <[email protected]>

I guess a right copyright is needed for your code.

Quoted 108 lines
arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts new file +105 -1
+ */
+
+/dts-v1/;
+
+#include "sg2002.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+   model = "Milk-V Duo 256M";
+   compatible = "milkv,duo256m", "sophgo,sg2002";
+
+   aliases {
+           serial0 = &uart0;
+           serial1 = &uart1;
+           serial2 = &uart2;
+           serial3 = &uart3;
+           serial4 = &uart4;
+   };
+
+   chosen {
+           stdout-path = "serial0:115200n8";
+   };
+
+   reserved-memory {
+           #address-cells = <1>;
+           #size-cells = <1>;
+           ranges;
+
+           coprocessor_rtos: region@83f40000 {
+                   reg = <0x83f40000 0xc0000>;
+                   no-map;
+           };
+   };
+};
+
+&osc {
+   clock-frequency = <25000000>;
+};
+
+&pinctrl {
+   uart0_cfg: uart0-cfg {
+           uart0-pins {
+                   pinmux = <PINMUX(PIN_UART0_TX, 0)>,
+                            <PINMUX(PIN_UART0_RX, 0)>;
+                   bias-pull-up;
+                   drive-strength-microamp = <10800>;
+                   power-source = <3300>;
+           };
+   };
+
+   sdhci0_cfg: sdhci0-cfg {
+           sdhci0-clk-pins {
+                   pinmux = <PINMUX(PIN_SD0_CLK, 0)>;
+                   bias-pull-up;
+                   drive-strength-microamp = <16100>;
+                   power-source = <3300>;
+           };
+
+           sdhci0-cmd-pins {
+                   pinmux = <PINMUX(PIN_SD0_CMD, 0)>;
+                   bias-pull-up;
+                   drive-strength-microamp = <10800>;
+                   power-source = <3300>;
+           };
+
+           sdhci0-data-pins {
+                   pinmux = <PINMUX(PIN_SD0_D0, 0)>,
+                            <PINMUX(PIN_SD0_D1, 0)>,
+                            <PINMUX(PIN_SD0_D2, 0)>,
+                            <PINMUX(PIN_SD0_D3, 0)>;
+                   bias-pull-up;
+                   drive-strength-microamp = <10800>;
+                   power-source = <3300>;
+           };
+
+           sdhci0-cd-pins {
+                   pinmux = <PINMUX(PIN_SD0_CD, 0)>;
+                   bias-pull-up;
+                   drive-strength-microamp = <10800>;
+                   power-source = <3300>;
+           };
+   };
+};
+
+&sdhci0 {
+   pinctrl-0 = <&sdhci0_cfg>;
+   pinctrl-names = "default";
+   status = "okay";
+   bus-width = <4>;
+   no-1-8-v;
+   no-mmc;
+   no-sdio;
+   disable-wp;
+};
+
+&uart0 {
+   pinctrl-0 = <&uart0_cfg>;
+   pinctrl-names = "default";
+   status = "okay";
+};
+
+&usb {
+   dr_mode = "host";
+   status = "okay";
+};
--

2.43.0