public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.com>
To: "Baltazár Radics" <baltazar.radics@gmail.com>
Cc: u-boot@lists.denx.de, "Samuel Holland" <samuel@sholland.org>,
	"Jernej Škrabec" <jernej.skrabec@gmail.com>,
	"Chen-Yu Tsai" <wens@csie.org>,
	"Jagan Teki" <jagan@amarulasolutions.com>
Subject: Re: [PATCH v2] Add ethernet0 alias in Nanopi NEO's device tree
Date: Mon, 4 Apr 2022 00:32:17 +0100	[thread overview]
Message-ID: <20220404003217.6161a362@slackpad.lan> (raw)
In-Reply-To: <20220326120910.56376-1-baltazar.radics@gmail.com>

On Sat, 26 Mar 2022 13:09:10 +0100
Baltazár Radics <baltazar.radics@gmail.com> wrote:

Hi Baltazár,

> This is required to enable automatic MAC address generation.

For the records, this should rather be marked as a sync from the Linux
tree, where this was conveniently merged just recently.

In the long run we should see if we can avoid those ethernet aliases,
since their only purpose seems to be to trigger U-Boot's MAC
generation, and I wonder if there is a simpler way. Using U-Boot's DM
interface to enumerate Ethernet devices comes to mind, for instance.
This would avoid the churn of funnelling those trivial DT changes
through Linux first.

I will apply this and push it for the merge window, after adding the
Linux tag.

Thanks!
Andre



> Signed-off-by: Baltazár Radics <baltazar.radics@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 {


      reply	other threads:[~2022-04-04  0:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-26 12:09 [PATCH v2] Add ethernet0 alias in Nanopi NEO's device tree Baltazár Radics
2022-04-03 23:32 ` Andre Przywara [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220404003217.6161a362@slackpad.lan \
    --to=andre.przywara@arm.com \
    --cc=baltazar.radics@gmail.com \
    --cc=jagan@amarulasolutions.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=samuel@sholland.org \
    --cc=u-boot@lists.denx.de \
    --cc=wens@csie.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox