Skip to contentSkip to conversation

dts: pcm052: bk4: Use proper compatible for QSPI SPI-NOR memory

PATCH In review Lukasz Majewski 2 participants 2 messages Jun 25, 2025 – Jul 1, 2025 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dts: pcm052: bk4: Use proper compatible for QSPI SPI-NOR memory

In the contemporary U-Boot the "spi-flash" compatible is used only when CONFIG_$(PHASE_)SPI_FLASH_TINY is defined so spi-nor-tiny.c is compiled.

As vf610 devices are not using SPL at all, the SPI_FLASH_TINY is not defined and no QSPI flash child nodes are considered as valid ones.

The result is that the 'sf probe' command fails and SPI NOR memory is not accessible on e.g. BK4 device.

The fix is to use proper compatible - in this case "jedec,spi-nor".

---
 arch/arm/dts/vf610-pcm052.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/dts/vf610-pcm052.dtsi +2 -2
index ccdc0f57e2b..2b82b7313dd 100644
@@ -244,7 +244,7 @@
 	qflash0: spi_flash@0 {
 		#address-cells = <1>;
 		#size-cells = <1>;
-		compatible = "spi-flash";
+		compatible = "jedec,spi-nor";
 		spi-max-frequency = <108000000>;
 		reg = <0>;
 	};
@@ -252,7 +252,7 @@
 	qflash1: spi_flash@1 {
 		#address-cells = <1>;
 		#size-cells = <1>;
-		compatible = "spi-flash";
+		compatible = "jedec,spi-nor";
 		spi-max-frequency = <66000000>;
 		reg = <1>;
 	};
Signature · 1 line
2.39.5
#1 lore raw
Quoted 7 lines · Lukasz Majewski

In the contemporary U-Boot the "spi-flash" compatible is used only when CONFIG_$(PHASE_)SPI_FLASH_TINY is defined so spi-nor-tiny.c is compiled.

As vf610 devices are not using SPL at all, the SPI_FLASH_TINY is not defined and no QSPI flash child nodes are considered as valid ones.

Quoted 7 lines

The result is that the 'sf probe' command fails and SPI NOR memory is not accessible on e.g. BK4 device.

The fix is to use proper compatible - in this case "jedec,spi-nor".

---

Applied to u-boot-imx/next, thanks.