From 6b495ceda98afdf78abf575467d2892d6e1648db Mon Sep 17 00:00:00 2001 From: Daniel Maslowski Date: Fri, 8 Mar 2024 19:44:21 +0100 Subject: [PATCH] dts: jh7110: fix memory definitions The L2LIM is 2MB in size, see: https://doc-en.rvspace.org/JH7110/TRM/JH7110_TRM/u74_memory_map.html Rename it since there are other memory blocks such as the DTIM for the S7. Signed-off-by: Daniel Maslowski --- boards/starfive/visionfive2/visionfive2.dts | 2 +- dts/riscv/starfive/jh7110-visionfive-v2.dtsi | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boards/starfive/visionfive2/visionfive2.dts b/boards/starfive/visionfive2/visionfive2.dts index 48d7045e075..98c4b960951 100644 --- a/boards/starfive/visionfive2/visionfive2.dts +++ b/boards/starfive/visionfive2/visionfive2.dts @@ -15,7 +15,7 @@ chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; - zephyr,sram = &ram0; + zephyr,sram = &l2lim; }; }; diff --git a/dts/riscv/starfive/jh7110-visionfive-v2.dtsi b/dts/riscv/starfive/jh7110-visionfive-v2.dtsi index 2a42a5ebe72..c3382bca86f 100644 --- a/dts/riscv/starfive/jh7110-visionfive-v2.dtsi +++ b/dts/riscv/starfive/jh7110-visionfive-v2.dtsi @@ -133,9 +133,9 @@ }; }; - ram0: memory@8000000 { + l2lim: memory@8000000 { device_type = "memory"; - reg = <0x0 0x8000000 0x1 0x0>; + reg = <0x0 0x8000000 0x0 0x200000>; }; soc {