riscv: dts: sophgo: add reserved memory node for CV1800B
authorInochi Amaoto <inochiama@outlook.com>
Thu, 11 Apr 2024 00:45:00 +0000 (08:45 +0800)
committerInochi Amaoto <inochiama@outlook.com>
Tue, 23 Apr 2024 08:38:09 +0000 (16:38 +0800)
The original dts of CV1800B has a weird memory length as it
contains reserved memory for coprocessor. Make this area a
separate node so it can get the real memory length.

Link: https://lore.kernel.org/r/IA1PR20MB49531F274753B04A5547DB59BB052@IA1PR20MB4953.namprd20.prod.outlook.com
Signed-off-by: Inochi Amaoto <inochiama@outlook.com>
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts
arch/riscv/boot/dts/sophgo/cv1800b.dtsi

index 94e64ddce8fa3f878d72750adc011c1c9e0f81d4..cd013588adc0e3adcb1df8a9dce2ae714d11f131 100644 (file)
                stdout-path = "serial0:115200n8";
        };
 
-       memory@80000000 {
-               device_type = "memory";
-               reg = <0x80000000 0x3f40000>;
+       reserved-memory {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges;
+
+               coprocessor_rtos: region@83f40000 {
+                       reg = <0x83f40000 0xc0000>;
+                       no-map;
+               };
        };
 };
 
index baf641829e726886a94e9fe1f8b26465096d201d..ec9530972ae2bbb6b319c4db694c8a5633c0bed9 100644 (file)
@@ -7,6 +7,11 @@
 
 / {
        compatible = "sophgo,cv1800b";
+
+       memory@80000000 {
+               device_type = "memory";
+               reg = <0x80000000 0x4000000>;
+       };
 };
 
 &plic {