Skip to contentSkip to conversation

ARM: mvebu: add "spi-flash" compatible string

PATCH New Chris Packham 3 participants 3 messages Aug 29, 2017 – Aug 30, 2017 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: mvebu: add "spi-flash" compatible string

U-boots spi-nor support is currently considered a work in progress. For now to avoid issues it is necessary to add a "spi-flash" compatible string. Eventually the "jedec,spi-nor" will be sufficient when the core U-boot code is updated to support it.

---
This is an alternative to
https://lists.denx.de/pipermail/u-boot/2017-August/301816.html. Using the u-boot specific "spi-flash" is Jagan's preference while the spi-nor support is still a WIP and works for getting the db-88f6820-amc working for me so I'm happy.

 arch/arm/dts/armada-385-amc.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/armada-385-amc.dts +1 -1
index 4649c910c7b0..5e1588d57438 100644
@@ -154,7 +154,7 @@
 		u-boot,dm-pre-reloc;
 		#address-cells = <1>;
 		#size-cells = <1>;
-		compatible = "st,m25p128", "jedec,spi-nor";
+		compatible = "st,m25p128", "jedec,spi-nor", "spi-flash";
 		reg = <0>; /* Chip select 0 */
 		spi-max-frequency = <50000000>;
 		m25p,fast-read;
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 ARM: mvebu: add "spi-flash" compatible string

Quoted 21 lines · Chris Packham

U-boots spi-nor support is currently considered a work in progress. For now to avoid issues it is necessary to add a "spi-flash" compatible string. Eventually the "jedec,spi-nor" will be sufficient when the core U-boot code is updated to support it.

---
This is an alternative to
https://lists.denx.de/pipermail/u-boot/2017-August/301816.html. Using the u-boot specific "spi-flash" is Jagan's preference while the spi-nor support is still a WIP and works for getting the db-88f6820-amc working for me so I'm happy.

 arch/arm/dts/armada-385-amc.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/armada-385-amc.dts +0 -0
index 4649c910c7b0..5e1588d57438 100644

arch/arm/dts/armada-385-amc.dts line 157

Quoted 5 lines
arch/arm/dts/armada-385-amc.dts +1 -1
@@ -154,7 +154,7 @@
                u-boot,dm-pre-reloc;
                #address-cells = <1>;
                #size-cells = <1>;
-               compatible = "st,m25p128", "jedec,spi-nor";
+               compatible = "st,m25p128", "jedec,spi-nor", "spi-flash";
#2 lore raw

PATCH 1/1 ARM: mvebu: add "spi-flash" compatible string

Quoted 17 lines · Jagan Teki
Quoted 16 lines · Chris Packham

U-boots spi-nor support is currently considered a work in progress. For now to avoid issues it is necessary to add a "spi-flash" compatible string. Eventually the "jedec,spi-nor" will be sufficient when the core U-boot code is updated to support it.

---
This is an alternative to
https://lists.denx.de/pipermail/u-boot/2017-August/301816.html. Using the u-boot specific "spi-flash" is Jagan's preference while the spi-nor support is still a WIP and works for getting the db-88f6820-amc working for me so I'm happy.

  arch/arm/dts/armada-385-amc.dts | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines

arch/arm/dts/armada-385-amc.dts line 157

Quoted 10 lines
arch/arm/dts/armada-385-amc.dts +1 -1
index 4649c910c7b0..5e1588d57438 100644
@@ -154,7 +154,7 @@
                 u-boot,dm-pre-reloc;
                 #address-cells = <1>;
                 #size-cells = <1>;
-               compatible = "st,m25p128", "jedec,spi-nor";
+               compatible = "st,m25p128", "jedec,spi-nor", "spi-flash";

Applied to u-boot-marvell/master.

Thanks,
Stefan