sandbox: Correct spi flash operation

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)
This commit is contained in:
Simon Glass 2019-05-18 11:59:49 -06:00
parent e676f4397c
commit 24c2776ba9
2 changed files with 2 additions and 2 deletions

View file

@ -150,7 +150,7 @@
firmware_storage_spi: flash@0 { firmware_storage_spi: flash@0 {
u-boot,dm-pre-reloc; u-boot,dm-pre-reloc;
reg = <0>; reg = <0>;
compatible = "spansion,m25p16", "sandbox,spi-flash"; compatible = "spansion,m25p16", "jedec,spi-nor";
spi-max-frequency = <40000000>; spi-max-frequency = <40000000>;
sandbox,filename = "spi.bin"; sandbox,filename = "spi.bin";
}; };

View file

@ -226,7 +226,7 @@ config SANDBOX_SPI
cs-gpios = <0>, <&gpio_a 0>; cs-gpios = <0>, <&gpio_a 0>;
flash@0 { flash@0 {
reg = <0>; reg = <0>;
compatible = "spansion,m25p16", "sandbox,spi-flash"; compatible = "spansion,m25p16", "jedec,spi-nor";
spi-max-frequency = <40000000>; spi-max-frequency = <40000000>;
sandbox,filename = "spi.bin"; sandbox,filename = "spi.bin";
}; };