Skip to contentSkip to conversation

arm: dts: Enable full 4GB LPDDR4

PATCH In review Devarsh Thakkar 3 participants 5 messages Feb 6, 2023 – Mar 7, 2023 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: dts: Enable full 4GB LPDDR4

AM62A7-SK board has 4GB LPDDR4 Micron MT53E2G32D4DE-046 AUT:B part but only 2GB was enabled early.

Enable full 4GB memory by updating the latter 2GB memory region which gets mapped to 0x0880000000 i.e. DDR16SS0_SDRAM as referred in Table 2-1. AM62A Common SoC Memory of AM62Ax TRM [1].

[1] : https://www.ti.com/lit/zip/spruj16
Logs: https://gist.github.com/devarsht/e85b6af89c01ddadb3a62f3e5f196af8

---
 arch/arm/dts/k3-am62a7-r5-sk.dts | 4 +++-
 arch/arm/dts/k3-am62a7-sk.dts    | 5 +++--
 2 files changed, 6 insertions(+), 3 deletions(-)
arch/arm/dts/k3-am62a7-r5-sk.dts +3 -1
index 58b7c8ad05..bead57dffe 100644
@@ -25,7 +25,9 @@
 
 	memory@80000000 {
 		device_type = "memory";
-		reg = <0x00000000 0x80000000 0x00000000 0x80000000>; /* 2G RAM */
+		/* 4G RAM */
+		reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
+		      <0x00000008 0x80000000 0x00000000 0x80000000>;
 		u-boot,dm-spl;
 	};
 
arch/arm/dts/k3-am62a7-sk.dts +3 -2
index 576dbce80a..b08a083d72 100644
@@ -26,8 +26,9 @@
 
 	memory@80000000 {
 		device_type = "memory";
-		/* 2G RAM */
-		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
+		/* 4G RAM */
+		reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
+		      <0x00000008 0x80000000 0x00000000 0x80000000>;
 	};
 
 	reserved-memory {
Signature · 1 line
2.17.1
#1 lore raw
Quoted 7 lines · Devarsh Thakkar

AM62A7-SK board has 4GB LPDDR4 Micron MT53E2G32D4DE-046 AUT:B part but only 2GB was enabled early.

Enable full 4GB memory by updating the latter 2GB memory region which gets mapped to 0x0880000000 i.e. DDR16SS0_SDRAM as referred in Table 2-1. AM62A Common SoC Memory of AM62Ax TRM [1].

Quoted 8 lines

[1] : https://www.ti.com/lit/zip/spruj16
Logs: https://gist.github.com/devarsht/e85b6af89c01ddadb3a62f3e5f196af8

---
 arch/arm/dts/k3-am62a7-r5-sk.dts | 4 +++-
 arch/arm/dts/k3-am62a7-sk.dts    | 5 +++--
 2 files changed, 6 insertions(+), 3 deletions(-)

The subject should include am62x in it, and what is the status of the changes to k3-am62a7-sk.dts upstream?

Signature · 1 line
Tom
#3 lore raw
In reply to Devarsh Thakkar

Hi Devarsh!

On February 6, 2023 thus sayeth Devarsh Thakkar:

Quoted 7 lines

AM62A7-SK board has 4GB LPDDR4 Micron MT53E2G32D4DE-046 AUT:B part but only 2GB was enabled early.

Enable full 4GB memory by updating the latter 2GB memory region which gets mapped to 0x0880000000 i.e. DDR16SS0_SDRAM as referred in Table 2-1. AM62A Common SoC Memory of AM62Ax TRM [1].

Quoted 5 lines

[1] : https://www.ti.com/lit/zip/spruj16
Logs: https://gist.github.com/devarsht/e85b6af89c01ddadb3a62f3e5f196af8

---

Thanks for getting this fixed! Unfortunately, to keep our device trees in sync with the linux kernel, I think it's best we get this accepted in linux before we pull this into uboot

Thanks Again
~Bryan

#2 lore raw
In reply to Tom Rini

Hi Tom, Bryan,

Thanks for the review.

Quoted 12 lines · Tom Rini
Quoted 10 lines · Devarsh Thakkar

AM62A7-SK board has 4GB LPDDR4 Micron MT53E2G32D4DE-046 AUT:B part but only 2GB was enabled early.

Enable full 4GB memory by updating the latter 2GB memory region which gets mapped to 0x0880000000 i.e. DDR16SS0_SDRAM as referred in Table 2-1. AM62A Common SoC Memory of AM62Ax TRM [1].

[1] : https://www.ti.com/lit/zip/spruj16
Logs: https://gist.github.com/devarsht/e85b6af89c01ddadb3a62f3e5f196af8

Quoted 7 lines
Quoted 5 lines
---
 arch/arm/dts/k3-am62a7-r5-sk.dts | 4 +++-
 arch/arm/dts/k3-am62a7-sk.dts    | 5 +++--
 2 files changed, 6 insertions(+), 3 deletions(-)

The subject should include am62x in it,

It's am62ax actually, will add that in subject in V2. and what is the status of the

Quoted 1 line

changes to k3-am62a7-sk.dts upstream?

Below is the corresponding kernel patch:
https://lore.kernel.org/all/[email protected]/

Regards
Devarsh

Quoted 1 line
#4 lore raw

Re: [PATCH] am62a7: dts: Enable full 4GB LPDDR4

In reply to Devarsh Thakkar
Quoted 11 lines · Devarsh Thakkar

AM62A7-SK board has 4GB LPDDR4 Micron MT53E2G32D4DE-046 AUT:B part but only 2GB was enabled early.

Enable full 4GB memory by updating the latter 2GB memory region which gets mapped to 0x0880000000 i.e. DDR16SS0_SDRAM as referred in Table 2-1. AM62A Common SoC Memory of AM62Ax TRM [1].

[1] : https://www.ti.com/lit/zip/spruj16
Logs: https://gist.github.com/devarsht/e85b6af89c01ddadb3a62f3e5f196af8

Applied to u-boot/next, thanks!

Signature · 1 line
Tom