[PATCH] Add ethernet0 alias in Nanopi NEO's device tree
Michael Nazzareno Trimarchi
michael at amarulasolutions.com
Sat Mar 26 12:53:46 CET 2022
Hi
On Sat, Mar 26, 2022 at 12:49 PM Baltazár Radics
<baltazar.radics at gmail.com> wrote:
>
> On Sun, 2022-02-27 at 14:36 +0100, Baltazár Radics wrote:
> > This is required to enable automatic MAC address generation.
> >
> > Signed-off-by: Baltazár Radics <baltazar.radics at gmail.com>
> > ---
> > arch/arm/dts/sun8i-h3-nanopi-neo.dts | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/arch/arm/dts/sun8i-h3-nanopi-neo.dts
> > b/arch/arm/dts/sun8i-h3-nanopi-neo.dts
> > index 9f33f6fae..28cf6f8bd 100644
> > --- a/arch/arm/dts/sun8i-h3-nanopi-neo.dts
> > +++ b/arch/arm/dts/sun8i-h3-nanopi-neo.dts
> > @@ -45,6 +45,10 @@
> > / {
> > model = "FriendlyARM NanoPi NEO";
> > compatible = "friendlyarm,nanopi-neo", "allwinner,sun8i-h3";
> > +
> > + aliases {
> > + ethernet0 = &emac;
> > + }
> > };
> >
> > &ehci0 {
>
> Oops, I just realized the patch I sent was wrong, there's a missing
> semicolon. Here's the correct patch:
>
> Signed-off-by: Baltazár Radics <baltazar.radics at gmail.com>
> ---
> arch/arm/dts/sun8i-h3-nanopi-neo.dts | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/dts/sun8i-h3-nanopi-neo.dts b/arch/arm/dts/sun8i-
> h3-nanopi-neo.dts
> index 9f33f6fae..df71fab3c 100644
> --- a/arch/arm/dts/sun8i-h3-nanopi-neo.dts
> +++ b/arch/arm/dts/sun8i-h3-nanopi-neo.dts
> @@ -45,6 +45,10 @@
> / {
> model = "FriendlyARM NanoPi NEO";
> compatible = "friendlyarm,nanopi-neo", "allwinner,sun8i-h3";
> +
> + aliases {
> + ethernet0 = &emac;
> + };
> };
>
> &ehci0 {
Please resend as v2
Michael
--
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
michael at amarulasolutions.com
__________________________________
Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
info at amarulasolutions.com
www.amarulasolutions.com
More information about the U-Boot
mailing list