Skip to contentSkip to conversation

arm: dts: k3-am642-*: Mark the memory node with u-boot, dm-spl

PATCH In review Georgi Vlaev 2 participants 3 messages May 20, 2022 – May 27, 2022 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: dts: k3-am642-*: Mark the memory node with u-boot, dm-spl

Since commit dffdb1f8eb ("board: ti: am64x: Use fdt functions for ram and bank init") ddr_init() and dram_bank_init() have switched to fdtdec for getting the memory configuration from the am64xx dts files instead of using hardcoded values. This requires an accessible memory node in SPL as we already have in k3-am642-r5-evm.dts.

Make the memory node accessible in A53 SPL for both am642-sk and am642-evm and in am642-sk R5 SPL.

---
 arch/arm/dts/k3-am642-evm-u-boot.dtsi | 4 ++++
 arch/arm/dts/k3-am642-r5-sk.dts       | 2 +-
 arch/arm/dts/k3-am642-sk-u-boot.dtsi  | 4 ++++
 3 files changed, 9 insertions(+), 1 deletion(-)
arch/arm/dts/k3-am642-evm-u-boot.dtsi +4 -0
index 0c2d97340913..055215cff8dc 100644
@@ -8,6 +8,10 @@
 		stdout-path = "serial2:115200n8";
 		tick-timer = &timer1;
 	};
+
+	memory@80000000 {
+		u-boot,dm-spl;
+	};
 };
 
 &cbass_main{
arch/arm/dts/k3-am642-r5-sk.dts +1 -1
index 1f96e3fcacf2..cf3ba0e209cb 100644
@@ -27,7 +27,7 @@
 		device_type = "memory";
 		/* 2G RAM */
 		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
-
+		u-boot,dm-spl;
 	};
 
 	a53_0: a53@0 {
arch/arm/dts/k3-am642-sk-u-boot.dtsi +4 -0
index 650422813639..dda2c5d18a71 100644
@@ -12,6 +12,10 @@
 	aliases {
 		mmc1 = &sdhci1;
 	};
+
+	memory@80000000 {
+		u-boot,dm-spl;
+	};
 };
 
 &cbass_main{

base-commit: f83bd23e2a0e9861969c9d43395299a14f25ddda

Signature · 1 line
2.30.2
Reviewed-by on v1 1/1
#1 lore raw

Re: [PATCH] arm: dts: k3-am642-*: Mark the memory node with u-boot,dm-spl

Quoted 11 lines · Georgi Vlaev

Since commit dffdb1f8eb ("board: ti: am64x: Use fdt functions for ram and bank init") ddr_init() and dram_bank_init() have switched to fdtdec for getting the memory configuration from the am64xx dts files instead of using hardcoded values. This requires an accessible memory node in SPL as we already have in k3-am642-r5-evm.dts.

Make the memory node accessible in A53 SPL for both am642-sk and am642-evm and in am642-sk R5 SPL.

Signature · 1 line
Tom
#2 lore raw
In reply to Georgi Vlaev
Quoted 7 lines · Georgi Vlaev

Since commit dffdb1f8eb ("board: ti: am64x: Use fdt functions for ram and bank init") ddr_init() and dram_bank_init() have switched to fdtdec for getting the memory configuration from the am64xx dts files instead of using hardcoded values. This requires an accessible memory node in SPL as we already have in k3-am642-r5-evm.dts.

Quoted 5 lines

Make the memory node accessible in A53 SPL for both am642-sk and am642-evm and in am642-sk R5 SPL.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom