public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] sunxi: dts: OrangePi Zero: Fixup SPI flash device node
@ 2022-07-07  8:25 Michal Suchanek
  2022-07-09  6:59 ` [PATCH v2] sunxi: dts: Fix SPI NOR campatible on Orange Pi Zero Michal Suchanek
  0 siblings, 1 reply; 3+ messages in thread
From: Michal Suchanek @ 2022-07-07  8:25 UTC (permalink / raw)
  To: u-boot; +Cc: Michal Suchanek, Matthias Brugger, Andre Przywara, Jagan Teki

For some reason the flash cannot be probed as is - the u-boot DT lookup
code fails to find the definition, and sf complains about invalid cs.

Fixes: 280294c5df ("sunxi: boards: Enable SPI flash support in U-Boot proper")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
 arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
index b08e84c616..034f0f77a0 100644
--- a/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
+++ b/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
@@ -167,10 +167,8 @@
 	/* Enable SPI NOR by default: it optional on Orange Pi Zero boards */
 	status = "okay";
 
-	flash@0 {
-		#address-cells = <1>;
-		#size-cells = <1>;
-		compatible = "mxicy,mx25l1606e", "winbond,w25q128";
+	spiflash: flash@0 {
+		compatible = "mxicy,mx25l1606e", "winbond,w25q128", "jedec,spi-nor";
 		reg = <0>;
 		spi-max-frequency = <40000000>;
 	};
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-09 19:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-07  8:25 [PATCH] sunxi: dts: OrangePi Zero: Fixup SPI flash device node Michal Suchanek
2022-07-09  6:59 ` [PATCH v2] sunxi: dts: Fix SPI NOR campatible on Orange Pi Zero Michal Suchanek
2022-07-09 19:53   ` Andre Przywara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox