Skip to content

Commit 1eba0b6

Browse files
committed
riscv: dts: sophgo: add reserved memory node for CV1800B
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>
1 parent 886776c commit 1eba0b6

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,15 @@
2323
stdout-path = "serial0:115200n8";
2424
};
2525

26-
memory@80000000 {
27-
device_type = "memory";
28-
reg = <0x80000000 0x3f40000>;
26+
reserved-memory {
27+
#address-cells = <1>;
28+
#size-cells = <1>;
29+
ranges;
30+
31+
coprocessor_rtos: region@83f40000 {
32+
reg = <0x83f40000 0xc0000>;
33+
no-map;
34+
};
2935
};
3036
};
3137

arch/riscv/boot/dts/sophgo/cv1800b.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
/ {
99
compatible = "sophgo,cv1800b";
10+
11+
memory@80000000 {
12+
device_type = "memory";
13+
reg = <0x80000000 0x4000000>;
14+
};
1015
};
1116

1217
&plic {

0 commit comments

Comments
 (0)