Skip to contentSkip to conversation

Hyperflash boot fixes for j721e

PATCH Superseded Anurag Dutta 3 participants 12 messages Sep 2, 2025 – Sep 9, 2025

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v3 cover Hyperflash boot fixes for j721e

Hi all,
This series introdues a couple of small fixes that involves enabling hyperflash at R5 SPL stage and Kconfig changes that are required for HBMC boot on j721e

Test logs:
j721e : https://gist.github.com/anuragdutta731/f228b509e69a324f08c250e0d84a97ab
j7200 : https://gist.github.com/anuragdutta731/adf340a5a3ba727baae930fcec382524

Changelog : v3 :
1. Modified commit messages and added correct fixes tag

Link to v2:
https://lore.kernel.org/all/[email protected]/

Changelog : v2 :
1. Modified commit messages according to review comments
2. Added configs for r5 spl for j721e for hbmc boot

Link to v1 :
https://lore.kernel.org/all/[email protected]/

Anurag Dutta (3):
mtd: Kconfig: Add SPL_MUX_MMIO dependency to HBMC driver
configs: j721e_evm_r5: Enable HBMC and MUX_MMIO at SPL
arm: dts: k3-j721e-r5-common-proc-board: Enable HBMC in R5 SPL stage

 arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 1 +
 configs/j721e_evm_r5_defconfig                 | 2 ++
 drivers/mtd/Kconfig                            | 2 +-
 3 files changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH v3 1/3 mtd: Kconfig: Add SPL_MUX_MMIO dependency to HBMC driver

MUX_MMIO is needed by HBMC in SPL stage. Enable it at SPL as well as u-boot proper stage.

---
 drivers/mtd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/Kconfig +1 -1
index 2b7f5e5ed7b..e76601a5545 100644
@@ -202,7 +202,7 @@ config RENESAS_RPC_HF
 
 config HBMC_AM654
 	bool "HyperBus controller driver for AM65x SoC"
-	depends on MULTIPLEXER && MUX_MMIO
+	depends on MULTIPLEXER && (MUX_MMIO || SPL_MUX_MMIO)
 	help
 	 This is the driver for HyperBus controller on TI's AM65x and
 	 other SoCs
Signature · 1 line
2.34.1
#2 lore raw

PATCH v3 2/3 configs: j721e_evm_r5: Enable HBMC and MUX_MMIO at SPL

In reply to Anurag Dutta

Commit 0e198ff1a911 ("configs: Resync with savedefconfig") removed the necessary configs required to boot HyperFlash successfully, due to missing Kconfig dependencies. Now that the Kconfig dependencies have been added, re-enable the HBMC and MUX_MMIO configs in the SPL stage.

Fixes 0e198ff1a911 ("configs: Resync with savedefconfig")
---
 configs/j721e_evm_r5_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/j721e_evm_r5_defconfig +2 -0
index ceb2e273b54..52290722686 100644
@@ -124,6 +124,7 @@ CONFIG_CFI_FLASH=y
 CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
 CONFIG_FLASH_CFI_MTD=y
 CONFIG_SYS_FLASH_CFI=y
+CONFIG_HBMC_AM654=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH_SFDP_SUPPORT=y
 CONFIG_SPI_FLASH_SOFT_RESET=y
@@ -133,6 +134,7 @@ CONFIG_SPI_FLASH_S28HX_T=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_MT35XU=y
 CONFIG_MULTIPLEXER=y
+CONFIG_SPL_MUX_MMIO=y
 CONFIG_PINCTRL=y
 # CONFIG_PINCTRL_GENERIC is not set
 CONFIG_SPL_PINCTRL=y
Signature · 1 line
2.34.1
Reviewed-by on v3 2/3
#3 lore raw

Re: [PATCH v3 2/3] configs: j721e_evm_r5: Enable HBMC and MUX_MMIO at SPL

Quoted 8 lines · Anurag Dutta

Commit 0e198ff1a911 ("configs: Resync with savedefconfig") removed the necessary configs required to boot HyperFlash successfully, due to missing Kconfig dependencies. Now that the Kconfig dependencies have been added, re-enable the HBMC and MUX_MMIO configs in the SPL stage.

Fixes 0e198ff1a911 ("configs: Resync with savedefconfig")

---

Quoted 23 lines
  configs/j721e_evm_r5_defconfig | 2 ++
  1 file changed, 2 insertions(+)
configs/j721e_evm_r5_defconfig +2 -0
index ceb2e273b54..52290722686 100644
@@ -124,6 +124,7 @@ CONFIG_CFI_FLASH=y
  CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
  CONFIG_FLASH_CFI_MTD=y
  CONFIG_SYS_FLASH_CFI=y
+CONFIG_HBMC_AM654=y
  CONFIG_DM_SPI_FLASH=y
  CONFIG_SPI_FLASH_SFDP_SUPPORT=y
  CONFIG_SPI_FLASH_SOFT_RESET=y
@@ -133,6 +134,7 @@ CONFIG_SPI_FLASH_S28HX_T=y
  CONFIG_SPI_FLASH_STMICRO=y
  CONFIG_SPI_FLASH_MT35XU=y
  CONFIG_MULTIPLEXER=y
+CONFIG_SPL_MUX_MMIO=y
  CONFIG_PINCTRL=y
  # CONFIG_PINCTRL_GENERIC is not set
  CONFIG_SPL_PINCTRL=y
#4 lore raw

Re: [PATCH v3 2/3] configs: j721e_evm_r5: Enable HBMC and MUX_MMIO at SPL

In reply to Anurag Dutta
Quoted 7 lines · Anurag Dutta

Commit 0e198ff1a911 ("configs: Resync with savedefconfig") removed the necessary configs required to boot HyperFlash successfully, due to missing Kconfig dependencies. Now that the Kconfig dependencies have been added, re-enable the HBMC and MUX_MMIO configs in the SPL stage.

Fixes 0e198ff1a911 ("configs: Resync with savedefconfig")

Please note that this means it never worked to start with. "savedefconfig" does the equivalent of "make foo_defconfig" and then uses the output. So those symbols were missing in the output normally. We can keep the fixes tag, and I'll apply this for v2025.10 soon, but I want to clarify the problem.

Signature · 1 line
Tom
#5 lore raw

Re: [PATCH v3 2/3] configs: j721e_evm_r5: Enable HBMC and MUX_MMIO at SPL

Hi Tom

Quoted 11 lines · Tom Rini
Quoted 7 lines · Anurag Dutta

Commit 0e198ff1a911 ("configs: Resync with savedefconfig") removed the necessary configs required to boot HyperFlash successfully, due to missing Kconfig dependencies. Now that the Kconfig dependencies have been added, re-enable the HBMC and MUX_MMIO configs in the SPL stage.

Fixes 0e198ff1a911 ("configs: Resync with savedefconfig")

Please note that this means it never worked to start with. "savedefconfig" does the equivalent of "make foo_defconfig" and then

It was working before but due to some boot issues , due to DT sync

we disabled HBMC with commit id 5b2671594b80af116e259313d48bcd580d71f462 .

Instead of saying Fixes: 0e198ff1a91,

This patch is fixing sha id 5b2671594b80af116e259313d48bcd580d71f462 by kind of revert.

my bad to give R/B , overlooked on sha id of fixes tag.

Quoted 3 lines

uses the output. So those symbols were missing in the output normally. We can keep the fixes tag, and I'll apply this for v2025.10 soon, but I want to clarify the problem.

#6 lore raw

Re: [PATCH v3 2/3] configs: j721e_evm_r5: Enable HBMC and MUX_MMIO at SPL

Quoted 21 lines · Udit

Hi Tom

Quoted 11 lines · Tom Rini
Quoted 7 lines · Anurag Dutta

Commit 0e198ff1a911 ("configs: Resync with savedefconfig") removed the necessary configs required to boot HyperFlash successfully, due to missing Kconfig dependencies. Now that the Kconfig dependencies have been added, re-enable the HBMC and MUX_MMIO configs in the SPL stage.

Fixes 0e198ff1a911 ("configs: Resync with savedefconfig")

Please note that this means it never worked to start with. "savedefconfig" does the equivalent of "make foo_defconfig" and then

It was working before but due to some boot issues , due to DT sync

we disabled HBMC with commit id 5b2671594b80af116e259313d48bcd580d71f462 .

Quoted 6 lines

Instead of saying Fixes: 0e198ff1a91,

This patch is fixing sha id 5b2671594b80af116e259313d48bcd580d71f462 by kind of revert.

my bad to give R/B , overlooked on sha id of fixes tag.

Again, no, that's not quite how it works. When we do a defconfig resync like this we're just making the defconfigs reflect the present reality. If you checkout 5b2671594b80af116e259313d48bcd580d71f462^ and then look at the resulting defconfig, that option will be off. Doing a git blame on drivers/mtd/Kconfig the right fixes tag is for:
commit 8f71d37838ba0b0bfa047f5133877092ee9d1110

Author: Anurag Dutta <[email protected]>
Date:   Fri Nov 29 17:01:36 2024 +0530

mtd: Kconfig: Change HBMC driver's dependency to MULTIPLEXER and MUX_MMIO

The HBMC_AM654 driver was dependent on SYSCON because syscon APIs were being used to select the multiplexer state. Change the dependency to MULTIPLEXER and MUX_MMIO because mux APIs are now being used to select mux state.

As that's what changed the dependencies for the option.

Signature · 1 line
Tom
#7 lore raw

Re: [PATCH v3 2/3] configs: j721e_evm_r5: Enable HBMC and MUX_MMIO at SPL

Hi Tom,

Quoted 21 lines · Tom Rini
Quoted 20 lines · Udit

Hi Tom

Quoted 11 lines · Tom Rini
Quoted 7 lines · Anurag Dutta

Commit 0e198ff1a911 ("configs: Resync with savedefconfig") removed the necessary configs required to boot HyperFlash successfully, due to missing Kconfig dependencies. Now that the Kconfig dependencies have been added, re-enable the HBMC and MUX_MMIO configs in the SPL stage.

Fixes 0e198ff1a911 ("configs: Resync with savedefconfig")

Please note that this means it never worked to start with. "savedefconfig" does the equivalent of "make foo_defconfig" and then

It was working before but due to some boot issues , due to DT sync

we disabled HBMC with commit id 5b2671594b80af116e259313d48bcd580d71f462 .

Quoted 8 lines
Quoted 6 lines

Instead of saying Fixes: 0e198ff1a91,

This patch is fixing sha id 5b2671594b80af116e259313d48bcd580d71f462 by kind of revert.

my bad to give R/B , overlooked on sha id of fixes tag.

Again, no, that's not quite how it works. When we do a defconfig resync like this we're just making the defconfigs reflect the present reality.

would need your suggestion here, what should be fixes tag,

My comments were not related to defconfig sync

Quoted 3 lines

If you checkout 5b2671594b80af116e259313d48bcd580d71f462^ and then look at the resulting defconfig, that option will be off. Doing a git blame on drivers/mtd/Kconfig the right fixes tag is for:

If you look at sha id d7ef2ef7c87528c359e110d7170e01a98aaecf14 (configs: j721e_evm_defconfig: Add HBMC related configs)

is adding support for HBMC. So it was functional before.

Later due to DT sync and HBMC was broken so we disabled HBMC with sha id 5b2671594b80af116e259313d48bcd580d71f462.

After that there was attempt to enable HBMC via below sha ids

8f71d37838ba0b0bfa047f5133877092ee9d1110 (mtd: Kconfig: Change HBMC driver's dependency to MULTIPLEXER and MUX_MMIO)

fd7fcd4098d5c1ba9e20dbd72aa5f9a74f0cbe42 (configs: j721e_evm_*_defconfig: Add configs for Hyperflash boot)

c9df79ee64d0885277d5061a9426744920c4d6a5 (arm: dts: k3-j721e-r5-common: Add HBMC overrides for R5 SPL)

a42b8b0b3fe0ffe69ffb932bf3e709a62ff34a23 (mtd: HBMC-AM654: Changed syscon API to mux APIs)

f0558f3a89fe0fa900b162ae2758772e37f72739 (mux: Makefile: Add config for mux drivers)

Quoted 15 lines

commit 8f71d37838ba0b0bfa047f5133877092ee9d1110

Author: Anurag Dutta <[email protected]>
Date:   Fri Nov 29 17:01:36 2024 +0530

mtd: Kconfig: Change HBMC driver's dependency to MULTIPLEXER and MUX_MMIO

The HBMC_AM654 driver was dependent on SYSCON because syscon APIs were being used to select the multiplexer state. Change the dependency to MULTIPLEXER and MUX_MMIO because mux APIs are now being used to select mux state.

As that's what changed the dependencies for the option.

#8 lore raw

Re: [PATCH v3 2/3] configs: j721e_evm_r5: Enable HBMC and MUX_MMIO at SPL

Quoted 29 lines · Udit

Hi Tom,

Quoted 26 lines · Tom Rini
Quoted 25 lines · Udit

Hi Tom

Quoted 11 lines · Tom Rini
Quoted 7 lines · Anurag Dutta

Commit 0e198ff1a911 ("configs: Resync with savedefconfig") removed the necessary configs required to boot HyperFlash successfully, due to missing Kconfig dependencies. Now that the Kconfig dependencies have been added, re-enable the HBMC and MUX_MMIO configs in the SPL stage.

Fixes 0e198ff1a911 ("configs: Resync with savedefconfig")

Please note that this means it never worked to start with. "savedefconfig" does the equivalent of "make foo_defconfig" and then

It was working before but due to some boot issues , due to DT sync

we disabled HBMC with commit id 5b2671594b80af116e259313d48bcd580d71f462 .

Instead of saying Fixes: 0e198ff1a91,

This patch is fixing sha id 5b2671594b80af116e259313d48bcd580d71f462 by kind of revert.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

my bad to give R/B , overlooked on sha id of fixes tag.

Again, no, that's not quite how it works. When we do a defconfig resync like this we're just making the defconfigs reflect the present reality.

would need your suggestion here, what should be fixes tag,

My comments were not related to defconfig sync

Ah, yes, sorry, I mis-matched the hashes here.

Quoted 10 lines
Quoted 4 lines

If you checkout 5b2671594b80af116e259313d48bcd580d71f462^ and then look at the resulting defconfig, that option will be off. Doing a git blame on drivers/mtd/Kconfig the right fixes tag is for:

If you look at sha id d7ef2ef7c87528c359e110d7170e01a98aaecf14 (configs:
j721e_evm_defconfig: Add HBMC related configs)

is adding support for HBMC. So it was functional before.

Yes, I see that now, that's good.

Quoted 12 lines

Later due to DT sync and HBMC was broken so we disabled HBMC with sha id 5b2671594b80af116e259313d48bcd580d71f462.

After that there was attempt to enable HBMC via below sha ids

8f71d37838ba0b0bfa047f5133877092ee9d1110 (mtd: Kconfig: Change HBMC driver's dependency to MULTIPLEXER and MUX_MMIO)

fd7fcd4098d5c1ba9e20dbd72aa5f9a74f0cbe42 (configs: j721e_evm_*_defconfig:
Add configs for Hyperflash boot)

Quoted 8 lines

c9df79ee64d0885277d5061a9426744920c4d6a5 (arm: dts: k3-j721e-r5-common: Add HBMC overrides for R5 SPL)

a42b8b0b3fe0ffe69ffb932bf3e709a62ff34a23 (mtd: HBMC-AM654: Changed syscon API to mux APIs)

f0558f3a89fe0fa900b162ae2758772e37f72739 (mux: Makefile: Add config for mux drivers)

I guess my main frustration now is just that it's unclear where along the way what was submitted was or wasn't fully tested. We have both Kconfig dependency changes and dts additions (but not binding changes).

At the end of the day however, we don't yet have a linux kernel style "backport changes to eveywhere a fixes tag exists in old but supported releases" work flow, so we can just drop the fixes tag if it's too tricky to see where things did / didn't work. Alternatively, with the list of commits above and a board to test on, checkout the tree at the commit prior to that, test, then test the commit and see what the functional change is.

Signature · 1 line
Tom
#9 lore raw

Re: [PATCH v3 2/3] configs: j721e_evm_r5: Enable HBMC and MUX_MMIO at SPL

Thanks Tom,

Quoted 62 lines · Tom Rini
Quoted 28 lines · Udit

Hi Tom,

Quoted 25 lines · Tom Rini
Quoted 24 lines · Udit

Hi Tom

Quoted 11 lines · Tom Rini
Quoted 7 lines · Anurag Dutta

Commit 0e198ff1a911 ("configs: Resync with savedefconfig") removed the necessary configs required to boot HyperFlash successfully, due to missing Kconfig dependencies. Now that the Kconfig dependencies have been added, re-enable the HBMC and MUX_MMIO configs in the SPL stage.

Fixes 0e198ff1a911 ("configs: Resync with savedefconfig")

Please note that this means it never worked to start with. "savedefconfig" does the equivalent of "make foo_defconfig" and then

It was working before but due to some boot issues , due to DT sync

we disabled HBMC with commit id 5b2671594b80af116e259313d48bcd580d71f462 .

Instead of saying Fixes: 0e198ff1a91,

This patch is fixing sha id 5b2671594b80af116e259313d48bcd580d71f462 by kind of revert.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

my bad to give R/B , overlooked on sha id of fixes tag.

Again, no, that's not quite how it works. When we do a defconfig resync like this we're just making the defconfigs reflect the present reality.

would need your suggestion here, what should be fixes tag,

My comments were not related to defconfig sync

Ah, yes, sorry, I mis-matched the hashes here.

Quoted 8 lines
Quoted 3 lines

If you checkout 5b2671594b80af116e259313d48bcd580d71f462^ and then look at the resulting defconfig, that option will be off. Doing a git blame on drivers/mtd/Kconfig the right fixes tag is for:

If you look at sha id d7ef2ef7c87528c359e110d7170e01a98aaecf14 (configs:
j721e_evm_defconfig: Add HBMC related configs)

is adding support for HBMC. So it was functional before.

Yes, I see that now, that's good.

Quoted 15 lines

Later due to DT sync and HBMC was broken so we disabled HBMC with sha id 5b2671594b80af116e259313d48bcd580d71f462.

After that there was attempt to enable HBMC via below sha ids

8f71d37838ba0b0bfa047f5133877092ee9d1110 (mtd: Kconfig: Change HBMC driver's dependency to MULTIPLEXER and MUX_MMIO)

fd7fcd4098d5c1ba9e20dbd72aa5f9a74f0cbe42 (configs: j721e_evm_*_defconfig:
Add configs for Hyperflash boot)

c9df79ee64d0885277d5061a9426744920c4d6a5 (arm: dts: k3-j721e-r5-common: Add HBMC overrides for R5 SPL)

Quoted 8 lines
Quoted 5 lines

a42b8b0b3fe0ffe69ffb932bf3e709a62ff34a23 (mtd: HBMC-AM654: Changed syscon API to mux APIs)

f0558f3a89fe0fa900b162ae2758772e37f72739 (mux: Makefile: Add config for mux drivers)

I guess my main frustration now is just that it's unclear where along the way what was submitted was or wasn't fully tested. We have both Kconfig dependency changes and dts additions (but not binding changes).

I understand your frustration,

we will take care of testing part.

Quoted 9 lines

At the end of the day however, we don't yet have a linux kernel style "backport changes to eveywhere a fixes tag exists in old but supported releases" work flow, so we can just drop the fixes tag if it's too tricky to see where things did / didn't work. Alternatively, with the list of commits above and a board to test on, checkout the tree at the commit prior to that, test, then test the commit and see what the functional change is.

#10 lore raw

PATCH v3 3/3 arm: dts: k3-j721e-r5-common-proc-board: Enable HBMC in R5 SPL stage

In reply to Anurag Dutta

Enable HBMC in the R5 SPL stage

Fixes c9df79ee64d0 ("arm: dts: k3-j721e-r5-common: Add HBMC overrides for R5 SPL")
---
 arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +1 -0
index c775432505b..e4f799dfb27 100644
@@ -52,6 +52,7 @@
 };
 
 &hbmc {
+	status = "okay";
 	reg = <0x0 0x47040000 0x0 0x100>,
 		<0x0 0x50000000 0x0 0x8000000>;
 	ranges = <0x0 0x0 0x0 0x50000000 0x4000000>,
Signature · 1 line
2.34.1
Reviewed-by on v3 3/3
#11 lore raw

Re: [PATCH v3 3/3] arm: dts: k3-j721e-r5-common-proc-board: Enable HBMC in R5 SPL stage

Quoted 13 lines · Anurag Dutta

Enable HBMC in the R5 SPL stage

Fixes c9df79ee64d0 ("arm: dts: k3-j721e-r5-common: Add HBMC overrides for R5 SPL")
---
  arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 1 +
  1 file changed, 1 insertion(+)
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -0
index c775432505b..e4f799dfb27 100644

arch/arm/dts/k3-j721e-r5-common-proc-board.dts line 55

Quoted 4 lines
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +1 -0
@@ -52,6 +52,7 @@
  };
 
  &hbmc {
+	status = "okay";
Quoted 3 lines
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -0
  	reg = <0x0 0x47040000 0x0 0x100>,
  		<0x0 0x50000000 0x0 0x8000000>;
  	ranges = <0x0 0x0 0x0 0x50000000 0x4000000>,