[U-Boot,v2,1/5] mtd: sf_probe: add jedec, spi-nor compatible
diff mbox series

Message ID 20181206095122.7117-2-narmstrong@baylibre.com
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show
  • spi-flash: switch to "jedec, spi-nor" binding
Related show

Commit Message

Neil Armstrong Dec. 6, 2018, 9:51 a.m. UTC
There is no reason not to use the Linux "jedec,spi-nor" binding in u-boot.
This patch adds this compatible into sf_probe and will avoid changing the
device tree files to add a u-boot specific compatible to probe a spi flash.

This change is needed to enable SPI NOR Flash support using the non-modified
device tree file for Amlogic Meson GX SoC based boards.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
 drivers/mtd/spi/sf_probe.c | 1 +
 1 file changed, 1 insertion(+)

diff mbox series

diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
index 00f8558e70..7a379914d8 100644
--- a/drivers/mtd/spi/sf_probe.c
+++ b/drivers/mtd/spi/sf_probe.c
@@ -161,6 +161,7 @@  static const struct dm_spi_flash_ops spi_flash_std_ops = {
 static const struct udevice_id spi_flash_std_ids[] = {
 	{ .compatible = "spi-flash" },
+	{ .compatible = "jedec,spi-nor" },
 	{ }