mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH] ARM: k3: am62l: Detect DRAM from controller
Date: Fri,  9 Jan 2026 14:29:10 +0100	[thread overview]
Message-ID: <20260109132910.769130-1-s.hauer@pengutronix.de> (raw)

am62x_register_dram() works for the am62l as well, so use it to detect
the amount of DRAM. With this we can remove the memory node from am62l3-evm.dts
as it will be automatically populated.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/dts/k3-am62l3-evm.dts | 6 ------
 arch/arm/mach-k3/am62lx.c      | 1 +
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/arch/arm/dts/k3-am62l3-evm.dts b/arch/arm/dts/k3-am62l3-evm.dts
index 6751c71c3b..3a61d38c7b 100644
--- a/arch/arm/dts/k3-am62l3-evm.dts
+++ b/arch/arm/dts/k3-am62l3-evm.dts
@@ -58,12 +58,6 @@ led-0 {
 		};
 	};
 
-	memory@80000000 {
-		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
-		device_type = "memory";
-		bootph-all;
-	};
-
 	vcc_1v8: regulator-3 {
 		/* output of TPS6282518DMQ */
 		compatible = "regulator-fixed";
diff --git a/arch/arm/mach-k3/am62lx.c b/arch/arm/mach-k3/am62lx.c
index 88a008d628..c4d27072f2 100644
--- a/arch/arm/mach-k3/am62lx.c
+++ b/arch/arm/mach-k3/am62lx.c
@@ -158,6 +158,7 @@ static int am62lx_init(void)
 	if (!of_machine_is_compatible("ti,am62l3"))
 		return 0;
 
+	am62x_register_dram();
 	am62lx_get_bootsource(&src, &instance);
 	bootsource_set(src, instance);
 
-- 
2.47.3




                 reply	other threads:[~2026-01-09 13:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260109132910.769130-1-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox