diff mbox series

[1/3] sunxi: dts: OrangePi Zero: Add SPI aliases to make bus usable with u-boot.

Message ID 5fd747516dbc54c8ab1619beb76bf4b4f5656cfe.1601326861.git.msuchanek@suse.de
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show
Series [1/3] sunxi: dts: OrangePi Zero: Add SPI aliases to make bus usable with u-boot. | expand

Commit Message

Michal Suchanek Sept. 28, 2020, 9:02 p.m. UTC
The u-boot code relies on aliases to assign bus number.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
 arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts | 2 ++
 1 file changed, 2 insertions(+)

Comments

Chen-Yu Tsai Sept. 29, 2020, 2:36 a.m. UTC | #1
(Resend from @kernel.org address)

On Tue, Sep 29, 2020 at 5:02 AM Michal Suchanek <msuchanek@suse.de> wrote:
>
> The u-boot code relies on aliases to assign bus number.
>
> Signed-off-by: Michal Suchanek <msuchanek@suse.de>
> ---
>  arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts | 2 ++

Anything U-boot specific should be done in the *-u-boot.dts file.
And any changes you do to the U-boot copy of dts files will potentially
be lost when a dts sync happens.

ChenYu

>  1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
> index f19ed981da..090570148e 100644
> --- a/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
> +++ b/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
> @@ -59,6 +59,8 @@
>                 /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
>                 ethernet0 = &emac;
>                 ethernet1 = &xr819;
> +               spi0 = &spi0;
> +               spi1 = &spi1;
>         };
>
>         chosen {
> --
> 2.28.0
>
diff mbox series

Patch

diff --git a/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
index f19ed981da..090570148e 100644
--- a/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
+++ b/arch/arm/dts/sun8i-h2-plus-orangepi-zero.dts
@@ -59,6 +59,8 @@ 
 		/* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
 		ethernet0 = &emac;
 		ethernet1 = &xr819;
+		spi0 = &spi0;
+		spi1 = &spi1;
 	};
 
 	chosen {