]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: Correct spi flash operation
authorSimon Glass <sjg@chromium.org>
Sat, 18 May 2019 17:59:49 +0000 (11:59 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Jul 2019 22:52:58 +0000 (16:52 -0600)
Since the SPI nor conversion, 'sf probe' does not work on sandbox. Fix
this by using the expected compatible string in the flash node.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: cd35365762 (mtd: sf_probe: remove spi-flash compatible)
arch/sandbox/dts/sandbox.dtsi
drivers/spi/Kconfig

index ebc4ece8248d2a07cb3db2264a36163dd50942c6..2fb365d86e89b41ff6f0a1a0abe392e165c6de5e 100644 (file)
                firmware_storage_spi: flash@0 {
                        u-boot,dm-pre-reloc;
                        reg = <0>;
-                       compatible = "spansion,m25p16", "sandbox,spi-flash";
+                       compatible = "spansion,m25p16", "jedec,spi-nor";
                        spi-max-frequency = <40000000>;
                        sandbox,filename = "spi.bin";
                };
index f9b282313a2edb5f3e0bd214f711288406792c24..8e1424ba42b00b90dcf7ce522c882e9f8cf86785 100644 (file)
@@ -226,7 +226,7 @@ config SANDBOX_SPI
                cs-gpios = <0>, <&gpio_a 0>;
                flash@0 {
                        reg = <0>;
-                       compatible = "spansion,m25p16", "sandbox,spi-flash";
+                       compatible = "spansion,m25p16", "jedec,spi-nor";
                        spi-max-frequency = <40000000>;
                        sandbox,filename = "spi.bin";
                };