[PATCH] RISC-V: virt: riscvemu: fix unit address in node name

Ahmad Fatoum ahmad at a3f.at
Thu Feb 2 06:20:00 PST 2023


The overlay adds a SRAM at address 0x1000, but the unit address was
still 0, which is confusing. Change it to sram at 1000 instead.

Reported-by: Marco Felsch <m.felsch at pengutronix.de>
Signed-off-by: Ahmad Fatoum <ahmad at a3f.at>
---
 arch/riscv/boards/riscvemu/overlay-of-sram.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/riscv/boards/riscvemu/overlay-of-sram.dts b/arch/riscv/boards/riscvemu/overlay-of-sram.dts
index 506d45bde9b6..092fb02518b9 100644
--- a/arch/riscv/boards/riscvemu/overlay-of-sram.dts
+++ b/arch/riscv/boards/riscvemu/overlay-of-sram.dts
@@ -9,7 +9,7 @@
 		__overlay__ {
 			#address-cells = <2>;
 			#size-cells = <2>;
-			sram at 0 {
+			sram at 1000 {
 				compatible = "mtd-ram";
 				reg = <0 0x1000 0 0x10000>;
 				#address-cells = <1>;
@@ -49,7 +49,7 @@ fixed-partitions
 		__overlay__ {
 			environment {
 				compatible = "barebox,environment";
-				device-path = "/soc/sram at 0/partitions/partition at 3000";
+				device-path = "/soc/sram at 1000/partitions/partition at 3000";
 			};
 		};
 	};
-- 
2.38.1




More information about the barebox mailing list