[U-Boot] [PATCH 12/17] sandbox: Correct spi flash operation

Simon Glass sjg at chromium.org
Sat May 18 17:59:49 UTC 2019


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 at chromium.org>
Fixes: cd35365762 (mtd: sf_probe: remove spi-flash compatible)
---

 arch/sandbox/dts/sandbox.dtsi | 2 +-
 drivers/spi/Kconfig           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/sandbox/dts/sandbox.dtsi b/arch/sandbox/dts/sandbox.dtsi
index ebc4ece8248..2fb365d86e8 100644
--- a/arch/sandbox/dts/sandbox.dtsi
+++ b/arch/sandbox/dts/sandbox.dtsi
@@ -150,7 +150,7 @@
 		firmware_storage_spi: flash at 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";
 		};
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index c3a829deaec..237f4e6539e 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -207,7 +207,7 @@ config SANDBOX_SPI
 		cs-gpios = <0>, <&gpio_a 0>;
 		flash at 0 {
 			reg = <0>;
-			compatible = "spansion,m25p16", "sandbox,spi-flash";
+			compatible = "spansion,m25p16", "jedec,spi-nor";
 			spi-max-frequency = <40000000>;
 			sandbox,filename = "spi.bin";
 		};
-- 
2.21.0.1020.gf2820cf01a-goog



More information about the U-Boot mailing list