All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm: mvebu: armada-xp-gp.dts: Add spi0 alias
@ 2020-12-11  4:47 Stefan Roese
  2020-12-11 17:14 ` Dennis Gilmore
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Roese @ 2020-12-11  4:47 UTC (permalink / raw)
  To: u-boot

For correct spi bus detection the spi0 alias is needed in the DT.
Otherwise this error will ocurr in U-Boot:

Invalid bus 0 (err=-19)
Failed to initialize SPI flash at 0:0 (error -19)

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Dennis Gilmore <dgilmore@redhat.com>
---
 arch/arm/dts/armada-xp-gp.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/dts/armada-xp-gp.dts b/arch/arm/dts/armada-xp-gp.dts
index 1139e9469a..d46475fe22 100644
--- a/arch/arm/dts/armada-xp-gp.dts
+++ b/arch/arm/dts/armada-xp-gp.dts
@@ -31,6 +31,10 @@
 		stdout-path = "serial0:115200n8";
 	};
 
+	aliases {
+		spi0 = &spi0;
+	};
+
 	memory at 0 {
 		device_type = "memory";
 		/*
-- 
2.29.2

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

* [PATCH] arm: mvebu: armada-xp-gp.dts: Add spi0 alias
  2020-12-11  4:47 [PATCH] arm: mvebu: armada-xp-gp.dts: Add spi0 alias Stefan Roese
@ 2020-12-11 17:14 ` Dennis Gilmore
  0 siblings, 0 replies; 2+ messages in thread
From: Dennis Gilmore @ 2020-12-11 17:14 UTC (permalink / raw)
  To: u-boot

Tested-by: Dennis Gilmore <dgilmore@redhat.com>

On Fri, 2020-12-11 at 05:47 +0100, Stefan Roese wrote:
> For correct spi bus detection the spi0 alias is needed in the DT.
> Otherwise this error will ocurr in U-Boot:
> 
> Invalid bus 0 (err=-19)
> Failed to initialize SPI flash at 0:0 (error -19)
> 
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Dennis Gilmore <dgilmore@redhat.com>
> ---
> ?arch/arm/dts/armada-xp-gp.dts | 4 ++++
> ?1 file changed, 4 insertions(+)
> 
> diff --git a/arch/arm/dts/armada-xp-gp.dts b/arch/arm/dts/armada-xp-
> gp.dts
> index 1139e9469a..d46475fe22 100644
> --- a/arch/arm/dts/armada-xp-gp.dts
> +++ b/arch/arm/dts/armada-xp-gp.dts
> @@ -31,6 +31,10 @@
> ????????????????stdout-path = "serial0:115200n8";
> ????????};
> ?
> +???????aliases {
> +???????????????spi0 = &spi0;
> +???????};
> +
> ????????memory at 0 {
> ????????????????device_type = "memory";
> ????????????????/*

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

end of thread, other threads:[~2020-12-11 17:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-11  4:47 [PATCH] arm: mvebu: armada-xp-gp.dts: Add spi0 alias Stefan Roese
2020-12-11 17:14 ` Dennis Gilmore

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.