Skip to contentSkip to conversation

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

PATCH Applied Ahmad Fatoum 3 participants 3 messages Feb 2, 2023 – Feb 3, 2023 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RISC-V: virt: riscvemu: fix unit address in node name

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

---
 arch/riscv/boards/riscvemu/overlay-of-sram.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/riscv/boards/riscvemu/overlay-of-sram.dts +2 -2
index 506d45bde9b6..092fb02518b9 100644
@@ -9,7 +9,7 @@
 		__overlay__ {
 			#address-cells = <2>;
 			#size-cells = <2>;
-			sram@0 {
+			sram@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@0/partitions/partition@3000";
+				device-path = "/soc/sram@1000/partitions/partition@3000";
 			};
 		};
 	};
Signature · 1 line
2.38.1
Applied
#2 lore raw
In reply to Ahmad Fatoum
Quoted 8 lines · Ahmad Fatoum

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

---
 arch/riscv/boards/riscvemu/overlay-of-sram.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks

Sascha

Quoted 28 lines
arch/riscv/boards/riscvemu/overlay-of-sram.dts +2 -2
index 506d45bde9b6..092fb02518b9 100644
@@ -9,7 +9,7 @@
 		__overlay__ {
 			#address-cells = <2>;
 			#size-cells = <2>;
-			sram@0 {
+			sram@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@0/partitions/partition@3000";
+				device-path = "/soc/sram@1000/partitions/partition@3000";
 			};
 		};
 	};
Signature · 1 line
2.38.1
Signature · 4 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |