On Sun, Apr 21, 2024 at 07:57:01AM GMT, Michael Opdenacker wrote:
+++ b/arch/riscv/boot/dts/sophgo/sg2000-milkv-duos.dts
@@ -0,0 +1,34 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2024 Michael Opdenacker <michael.opdenacker@xxxxxxxxxxx>
+ */
+
+/dts-v1/;
+
+#include "cv1812h.dtsi"
+
+/ {
+ model = "Milk-V Duo S";
+ compatible = "milkv,duos", "sophgo,cv1812h";
+
+ aliases {
+ serial0 = &uart0;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+
+ memory@80000000 {
+ device_type = "memory";
+ reg = <0x80000000 0x20000000>;
+ };
No, Duo S does not use cv1812h, in any means. I just told you to useAdd a cpu specific file, and move this to it.Now that I'm including "cv1812h.dtsi", which has the same structure, all I
need is to change the reg setting to have 512 MB of RAM instead of 256MB,
right? See the V6 I'm sending soon.
cv1812h for local test. If you want to upstream Duo S, you must add
the right cpu compatibles and necessary nodes. These two are different
things.