All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm: dts: k3-am642-*: Mark the memory node with u-boot, dm-spl
@ 2022-05-20 12:30 Georgi Vlaev
  2022-05-20 15:22 ` [PATCH] arm: dts: k3-am642-*: Mark the memory node with u-boot,dm-spl Tom Rini
  2022-05-27 13:30 ` [PATCH] arm: dts: k3-am642-*: Mark the memory node with u-boot, dm-spl Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Georgi Vlaev @ 2022-05-20 12:30 UTC (permalink / raw)
  To: trini, vigneshr, d-gerlach; +Cc: u-boot, 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.

Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>
---
 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(-)

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

base-commit: f83bd23e2a0e9861969c9d43395299a14f25ddda
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm: dts: k3-am642-*: Mark the memory node with u-boot,dm-spl
  2022-05-20 12:30 [PATCH] arm: dts: k3-am642-*: Mark the memory node with u-boot, dm-spl Georgi Vlaev
@ 2022-05-20 15:22 ` Tom Rini
  2022-05-27 13:30 ` [PATCH] arm: dts: k3-am642-*: Mark the memory node with u-boot, dm-spl Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2022-05-20 15:22 UTC (permalink / raw)
  To: Georgi Vlaev; +Cc: vigneshr, d-gerlach, u-boot

[-- Attachment #1: Type: text/plain, Size: 632 bytes --]

On Fri, May 20, 2022 at 03:30:26PM +0300, Georgi Vlaev wrote:

> 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.
> 
> Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm: dts: k3-am642-*: Mark the memory node with u-boot, dm-spl
  2022-05-20 12:30 [PATCH] arm: dts: k3-am642-*: Mark the memory node with u-boot, dm-spl Georgi Vlaev
  2022-05-20 15:22 ` [PATCH] arm: dts: k3-am642-*: Mark the memory node with u-boot,dm-spl Tom Rini
@ 2022-05-27 13:30 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2022-05-27 13:30 UTC (permalink / raw)
  To: Georgi Vlaev; +Cc: vigneshr, d-gerlach, u-boot

[-- Attachment #1: Type: text/plain, Size: 669 bytes --]

On Fri, May 20, 2022 at 03:30:26PM +0300, Georgi Vlaev wrote:

> 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.
> 
> Signed-off-by: Georgi Vlaev <g-vlaev@ti.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-27 13:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20 12:30 [PATCH] arm: dts: k3-am642-*: Mark the memory node with u-boot, dm-spl Georgi Vlaev
2022-05-20 15:22 ` [PATCH] arm: dts: k3-am642-*: Mark the memory node with u-boot,dm-spl Tom Rini
2022-05-27 13:30 ` [PATCH] arm: dts: k3-am642-*: Mark the memory node with u-boot, dm-spl Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.