]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
dts: pcm052: bk4: Use proper compatible for QSPI SPI-NOR memory
authorLukasz Majewski <lukma@denx.de>
Wed, 25 Jun 2025 14:41:30 +0000 (16:41 +0200)
committerFabio Estevam <festevam@gmail.com>
Sun, 29 Jun 2025 13:07:23 +0000 (10:07 -0300)
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".

Signed-off-by: Lukasz Majewski <lukma@denx.de>
arch/arm/dts/vf610-pcm052.dtsi

index ccdc0f57e2b785be0d78c306d7efea5101cf2cd1..2b82b7313dd5a661c279a844a2b04267e65f3692 100644 (file)
        qflash0: spi_flash@0 {
                #address-cells = <1>;
                #size-cells = <1>;
-               compatible = "spi-flash";
+               compatible = "jedec,spi-nor";
                spi-max-frequency = <108000000>;
                reg = <0>;
        };
        qflash1: spi_flash@1 {
                #address-cells = <1>;
                #size-cells = <1>;
-               compatible = "spi-flash";
+               compatible = "jedec,spi-nor";
                spi-max-frequency = <66000000>;
                reg = <1>;
        };