U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Eichenberger <eichest@gmail.com>
To: trini@konsulko.com, ilias.apalodimas@linaro.org,
	sbabic@nabladev.com, festevam@gmail.com, uboot-imx@nxp.com,
	stefan.eichenberger@toradex.com, francesco.dolcini@toradex.com
Cc: u-boot@lists.u-boot-project.org
Subject: [PATCH v1 2/2] imx: mach: imx8: fdt: support newer GPU0 bus node name
Date: Mon, 19 Oct 2026 14:58:53 +0200	[thread overview]
Message-ID: <20261019125930.111608-3-eichest@gmail.com> (raw)
In-Reply-To: <20261019125930.111608-1-eichest@gmail.com>

From: Stefan Eichenberger <stefan.eichenberger@toradex.com>

Mainline Linux and NXP downstream kernels starting with 6.18 name the
GPU0 subsystem bus@53000000, while older downstream kernels used
bus@53100000. Because of that, the industrial GPU clock rates were not
applied and GPU0 kept running at the default 700/850 MHz instead of
the 625 MHz limit of the industrial SoC.

Use /bus@53000000/gpu@53100000 and, if it does not exist, fall back to
the legacy /bus@53100000/gpu@53100000.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
---
 arch/arm/mach-imx/imx8/fdt.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/imx8/fdt.c b/arch/arm/mach-imx/imx8/fdt.c
index 630b5e55702..05d2ddead91 100644
--- a/arch/arm/mach-imx/imx8/fdt.c
+++ b/arch/arm/mach-imx/imx8/fdt.c
@@ -317,9 +317,14 @@ static void update_fdt_gpu_industrial_frequencies(void *blob)
 	gpu_assigned_clocks[0] = cpu_to_fdt32(625000000); /* Core Clock */
 	gpu_assigned_clocks[1] = cpu_to_fdt32(625000000); /* Shader Clock */
 
-	err = change_property(blob, "/bus@53100000/gpu@53100000",
+	err = change_property(blob, "/bus@53000000/gpu@53100000",
 			      "assigned-clock-rates", gpu_assigned_clocks,
 			      sizeof(gpu_assigned_clocks));
+	/* NXP kernels before 6.18 use bus@53100000 */
+	if (err == -FDT_ERR_NOTFOUND)
+		err = change_property(blob, "/bus@53100000/gpu@53100000",
+				      "assigned-clock-rates", gpu_assigned_clocks,
+				      sizeof(gpu_assigned_clocks));
 	if (err && err != -FDT_ERR_NOTFOUND)
 		printf("Failed to set assigned-clock-rates for GPU0: %s\n",
 		       fdt_strerror(err));
-- 
2.56.0


  parent reply	other threads:[~2026-10-19 13:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19 12:58 [PATCH v1 0/2] imx: mach: imx8: fdt: fix industrial GPU frequencies Stefan Eichenberger
2026-10-19 12:58 ` [PATCH v1 1/2] imx: mach: imx8: fdt: return libfdt errors from helpers Stefan Eichenberger
2026-10-20  5:31   ` Francesco Dolcini
2026-10-19 12:58 ` Stefan Eichenberger [this message]
2026-10-20  5:40   ` [PATCH v1 2/2] imx: mach: imx8: fdt: support newer GPU0 bus node name Francesco Dolcini

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=20261019125930.111608-3-eichest@gmail.com \
    --to=eichest@gmail.com \
    --cc=festevam@gmail.com \
    --cc=francesco.dolcini@toradex.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=sbabic@nabladev.com \
    --cc=stefan.eichenberger@toradex.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.u-boot-project.org \
    --cc=uboot-imx@nxp.com \
    /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