Skip to content

Commit

Permalink
riscv: dts: sophgo: add reserved memory node for CV1800B
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Chen Wang <[email protected]>
  • Loading branch information
inochisa committed Apr 23, 2024
1 parent 886776c commit 1eba0b6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
12 changes: 9 additions & 3 deletions arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@
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;
};
};
};

Expand Down
5 changes: 5 additions & 0 deletions arch/riscv/boot/dts/sophgo/cv1800b.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

/ {
compatible = "sophgo,cv1800b";

memory@80000000 {
device_type = "memory";
reg = <0x80000000 0x4000000>;
};
};

&plic {
Expand Down

0 comments on commit 1eba0b6

Please sign in to comment.