Skip to contentSkip to conversation

OSPI NOR boot support

PATCH NAK Santhosh Kumar K 3 participants 7 messages Feb 23 – Feb 24 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

cover OSPI NOR boot support

TI's AM64x EVM has an OSPI NOR flash which can be used as a boot media. This series enables the support for it.

Test log: https://gist.github.com/santhosh21/638d1b3c97e77787c8c5e59a0ae43824

Santhosh Kumar K (2):
configs: am64x*: Add OSPI NOR boot support
arm: dts: k3-am64-evm: Add "bootph-all"

 arch/arm/dts/k3-am642-evm-u-boot.dtsi | 1 +
 configs/am64x_evm_a53_defconfig       | 1 +
 configs/am64x_evm_r5_defconfig        | 4 ++++
 3 files changed, 6 insertions(+)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 configs: am64x*: Add OSPI NOR boot support

AM64x EVM has an OSPI NOR flash which can be used as a boot media. Hence, enable the required configs to support the same.

---
 configs/am64x_evm_a53_defconfig | 1 +
 configs/am64x_evm_r5_defconfig  | 4 ++++
 2 files changed, 5 insertions(+)
configs/am64x_evm_a53_defconfig +1 -0
index e576012b3f6b..bc0aaf879d6f 100644
@@ -11,6 +11,7 @@ CONFIG_K3_ATF_LOAD_ADDR=0x701c0000
 CONFIG_TARGET_AM642_A53_EVM=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000
+CONFIG_SF_DEFAULT_MODE=0
 CONFIG_SF_DEFAULT_SPEED=25000000
 CONFIG_ENV_SIZE=0x20000
 CONFIG_DM_GPIO=y
configs/am64x_evm_r5_defconfig +4 -0
index 6a5190e5c688..19ed1902b470 100644
@@ -8,6 +8,7 @@ CONFIG_SOC_K3_AM642=y
 CONFIG_TARGET_AM642_R5_EVM=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x7019b800
+CONFIG_SF_DEFAULT_MODE=0
 CONFIG_SF_DEFAULT_SPEED=25000000
 CONFIG_ENV_SIZE=0x20000
 CONFIG_DM_GPIO=y
@@ -104,12 +105,14 @@ CONFIG_MMC_SDHCI_ADMA=y
 CONFIG_SPL_MMC_SDHCI_ADMA=y
 CONFIG_MMC_SDHCI_AM654=y
 CONFIG_MTD=y
+CONFIG_DM_MTD=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH_SFDP_SUPPORT=y
 CONFIG_SPI_FLASH_SOFT_RESET=y
 CONFIG_SPI_FLASH_SOFT_RESET_ON_BOOT=y
 CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_S28HX_T=y
+CONFIG_SPI_FLASH_MT35XU=y
 CONFIG_PHY_TI_DP83867=y
 CONFIG_TI_AM65_CPSW_NUSS=y
 CONFIG_PHY=y
@@ -164,4 +167,5 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0451
 CONFIG_USB_GADGET_PRODUCT_NUM=0x6165
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_SPL_DFU=y
+CONFIG_SPL_MTD=y
 CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/2 arm: dts: k3-am64-evm: Add "bootph-all"

In reply to Santhosh Kumar K

Add 'bootph-all' for 'main-bcdma' node to pass it to the FDT in early stage to allow the BCDMA channel 0 to be allocated for OSPI NOR reads.

---
 arch/arm/dts/k3-am642-evm-u-boot.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/dts/k3-am642-evm-u-boot.dtsi +1 -0
index 6469f43fca81..5048432ef8ca 100644
@@ -42,6 +42,7 @@
 	      <0x00 0x484c2000 0x00 0x2000>;
 	reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt",
 		    "cfg", "tchan", "rchan";
+	bootph-all;
 };
 
 &main_pktdma {
Signature · 1 line
2.34.1
#3 lore raw

Re: [PATCH 2/2] arm: dts: k3-am64-evm: Add "bootph-all"

Quoted 13 lines · Santhosh Kumar K

Add 'bootph-all' for 'main-bcdma' node to pass it to the FDT in early stage to allow the BCDMA channel 0 to be allocated for OSPI NOR reads.

---
 arch/arm/dts/k3-am642-evm-u-boot.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/dts/k3-am642-evm-u-boot.dtsi +0 -0
index 6469f43fca81..5048432ef8ca 100644

arch/arm/dts/k3-am642-evm-u-boot.dtsi line 46

Quoted 5 lines
arch/arm/dts/k3-am642-evm-u-boot.dtsi +1 -0
@@ -42,6 +42,7 @@
 	      <0x00 0x484c2000 0x00 0x2000>;
 	reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt",
 		    "cfg", "tchan", "rchan";
+	bootph-all;
 };

What's the status on upstreaming that whole node right there? Thanks.

Signature · 1 line
Tom
#4 lore raw

Re: [PATCH 2/2] arm: dts: k3-am64-evm: Add "bootph-all"

Hello Tom,

Quoted 9 lines · Tom Rini
Quoted 8 lines · Santhosh Kumar K

Add 'bootph-all' for 'main-bcdma' node to pass it to the FDT in early stage to allow the BCDMA channel 0 to be allocated for OSPI NOR reads.

---
  arch/arm/dts/k3-am642-evm-u-boot.dtsi | 1 +
  1 file changed, 1 insertion(+)
Quoted 12 lines

arch/arm/dts/k3-am642-evm-u-boot.dtsi line 46

Quoted 10 lines
arch/arm/dts/k3-am642-evm-u-boot.dtsi +1 -0
index 6469f43fca81..5048432ef8ca 100644
@@ -42,6 +42,7 @@
  	      <0x00 0x484c2000 0x00 0x2000>;
  	reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt",
  		    "cfg", "tchan", "rchan";
+	bootph-all;
  };

What's the status on upstreaming that whole node right there? Thanks.

'main_bcdma' node is already upstream [0] [1]

[0] https://elixir.bootlin.com/u-boot/v2026.04-rc2/source/dts/upstream/src/arm64/ti/k3-am64-main.dtsi#L141
[1] https://elixir.bootlin.com/u-boot/v2026.04-rc2/source/arch/arm/dts/k3-am642-evm-u-boot.dtsi#L34

Thanks,
Santhosh.

Quoted 1 line
#5 lore raw

Re: [PATCH 2/2] arm: dts: k3-am64-evm: Add "bootph-all"

Quoted 25 lines · Santhosh Kumar K

Hello Tom,

Quoted 9 lines · Tom Rini
Quoted 8 lines · Santhosh Kumar K

Add 'bootph-all' for 'main-bcdma' node to pass it to the FDT in early stage to allow the BCDMA channel 0 to be allocated for OSPI NOR reads.

---
  arch/arm/dts/k3-am642-evm-u-boot.dtsi | 1 +
  1 file changed, 1 insertion(+)
Quoted 12 lines

arch/arm/dts/k3-am642-evm-u-boot.dtsi line 46

Quoted 10 lines
arch/arm/dts/k3-am642-evm-u-boot.dtsi +1 -0
index 6469f43fca81..5048432ef8ca 100644
@@ -42,6 +42,7 @@
  	      <0x00 0x484c2000 0x00 0x2000>;
  	reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt",
  		    "cfg", "tchan", "rchan";
+	bootph-all;
  };

What's the status on upstreaming that whole node right there? Thanks.

Quoted 4 lines

'main_bcdma' node is already upstream [0] [1]

[0] https://elixir.bootlin.com/u-boot/v2026.04-rc2/source/dts/upstream/src/arm64/ti/k3-am64-main.dtsi#L141
[1] https://elixir.bootlin.com/u-boot/v2026.04-rc2/source/arch/arm/dts/k3-am642-evm-u-boot.dtsi#L34

Then we are we not upstreaming "bootph-all" and also everything else in our local node here? Thanks.

Signature · 1 line
Tom
#6 lore raw

Re: [PATCH 2/2] arm: dts: k3-am64-evm: Add "bootph-all"

Quoted 8 lines · Tom Rini
Quoted 7 lines · Santhosh Kumar K

Hello Tom,

Quoted 4 lines · Tom Rini
Quoted 3 lines · Santhosh Kumar K

Add 'bootph-all' for 'main-bcdma' node to pass it to the FDT in early stage to allow the BCDMA channel 0 to be allocated for OSPI NOR reads.

NACK.

Quoted 18 lines
Quoted 18 lines
Quoted 17 lines
Quoted 10 lines
---
  arch/arm/dts/k3-am642-evm-u-boot.dtsi | 1 +
  1 file changed, 1 insertion(+)
arch/arm/dts/k3-am642-evm-u-boot.dtsi +0 -0
index 6469f43fca81..5048432ef8ca 100644

arch/arm/dts/k3-am642-evm-u-boot.dtsi line 46

Quoted 5 lines
arch/arm/dts/k3-am642-evm-u-boot.dtsi +1 -0
@@ -42,6 +42,7 @@
  	      <0x00 0x484c2000 0x00 0x2000>;
  	reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt",
  		    "cfg", "tchan", "rchan";
+	bootph-all;
  };

What's the status on upstreaming that whole node right there? Thanks.

Quoted 8 lines
Quoted 4 lines

'main_bcdma' node is already upstream [0] [1]

[0] https://elixir.bootlin.com/u-boot/v2026.04-rc2/source/dts/upstream/src/arm64/ti/k3-am64-main.dtsi#L141
[1] https://elixir.bootlin.com/u-boot/v2026.04-rc2/source/arch/arm/dts/k3-am642-evm-u-boot.dtsi#L34

Then we are we not upstreaming "bootph-all" and also everything else in our local node here? Thanks.

As Tom mentioned, Please required bootph-all in upstream (kernel) DT first and let the nodes sync to U-Boot DT via regular DT sync flow. We need to clean up -u-boot.dtsi over time and not add more code to it.

Signature · 3 lines
Regards
Vignesh
https://ti.com/opensource