From: Andrea della Porta <andrea.porta@suse.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Stanimir Varbanov <svarbanov@suse.de>,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@broadcom.com>,
Florian Fainelli <florian.fainelli@broadcom.com>,
Andrea della Porta <andrea.porta@suse.com>,
Andrew Lunn <andrew@lunn.ch>, Conor Dooley <conor+dt@kernel.org>,
Dave Stevenson <dave.stevenson@raspberrypi.com>,
"Ivan T. Ivanov" <iivanov@suse.de>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Phil Elwell <phil@raspberrypi.com>, Rob Herring <robh@kernel.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rpi-kernel@lists.infradead.org
Subject: Re: [PATCH] arm64: dts: broadcom: bcm2712: rpi-5: Add ethernet0 alias
Date: Mon, 3 Nov 2025 10:12:43 +0100 [thread overview]
Message-ID: <aQhyCzMWQif7-lY-@apocalypse> (raw)
In-Reply-To: <20251102110929.GL797@pendragon.ideasonboard.com>
Hi Laurent,
On 13:09 Sun 02 Nov , Laurent Pinchart wrote:
> On Sun, Nov 02, 2025 at 12:58:46PM +0200, Stanimir Varbanov wrote:
> > On 11/2/25 2:29 AM, Laurent Pinchart wrote:
> > > The RP1 ethernet controller DT node contains a local-mac-address
> > > property to pass the MAC address from the boot loader to the kernel. The
> > > boot loader does not fill the MAC address as the ethernet0 alias is
> > > missing. Add it.
> > >
> > > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > > ---
> > > arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-ovl-rp1.dts | 1 +
> > > 1 file changed, 1 insertion(+)
> > >
> > > diff --git a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-ovl-rp1.dts b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-ovl-rp1.dts
> > > index 04738bf281eb..fa438ac8c9ef 100644
> > > --- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-ovl-rp1.dts
> > > +++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-ovl-rp1.dts
> > > @@ -10,6 +10,7 @@ / {
> > > model = "Raspberry Pi 5";
> > >
> > > aliases {
> > > + ethernet0 = &rp1_eth;
> > > serial10 = &uart10;
> > > };
> > >
> >
> > Unfortunately this does not compile:
> >
> > make[1]: Entering directory '/rpi5/kobj'
> > GEN Makefile
> > DTC arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dtb
> > DTC arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-ovl-rp1.dtb
> > DTC arch/arm64/boot/dts/broadcom/bcm2712-d-rpi-5-b.dtb
> > /linux/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-ovl-rp1.dts:12.10-15.4:
> > ERROR (path_references): /aliases: Reference to non-existent node or
> > label "rp1_eth"
> >
> > ERROR: Input tree has errors, aborting (use -f to force output)
> > make[4]: *** [/linux/scripts/Makefile.dtbs:132:
> > arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-ovl-rp1.dtb] Error 2
> > make[4]: *** Waiting for unfinished jobs....
> > make[3]: *** [/linux/scripts/Makefile.build:556:
> > arch/arm64/boot/dts/broadcom] Error 2
>
> Ah indeed, I've only compiled bcm2712-rpi-5-b.dtb and forgot to test
> bcm2712-rpi-5-b-ovl-rp1.dtb. My bad.
>
> > I've made following fix on top of your patch, but I'm not sure that it
> > is the correct one.
> >
> > Andrea, could you comment please?
> >
> > diff --git a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-ovl-rp1.dts
> > b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-ovl-rp1.dts
> > index bbad90d497fa..734b06ac5ba2 100644
> > --- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-ovl-rp1.dts
> > +++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-ovl-rp1.dts
> > @@ -9,8 +9,7 @@ / {
> > compatible = "raspberrypi,5-model-b", "brcm,bcm2712";
> > model = "Raspberry Pi 5";
> >
> > - aliases {
> > - ethernet0 = &rp1_eth;
> > + aliases: aliases {
> > serial10 = &uart10;
> > };
>
> Adding a label to the aliases node is a bit of an uncommon approach.
>
> > diff --git a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
> > b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
> > index 9f1976f0fd1a..26a99e72d441 100644
> > --- a/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
> > +++ b/arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts
> > @@ -22,6 +22,10 @@ &pcie2 {
> > #include "rp1-nexus.dtsi"
> > };
> >
> > +&aliases {
> > + ethernet0 = &rp1_eth;
> > +};
>
> We could also just do
>
> / {
> aliases {
> ethernet0 = &rp1_eth;
> };
> };
>
> and drop tha aliases node. I'll send a v2.
>
> There's a side question of how the boot loader should pass the MAC
> address to the kernel when using the RP1 overlay, but I think that can
> be addressed later.
Yes, there are several (and probably more constraining) details we need
to figure out before referencing rp1 nodes with the overlay approach, which
is something I'm currently thinking about. It will take some time, unfortunately.
Thanks,
Andrea
>
> > +
> > &rp1_adc {
> > vref-supply = <&rp1_vdd_3v3>;
> > status = "okay";
>
> --
> Regards,
>
> Laurent Pinchart
next prev parent reply other threads:[~2025-11-03 9:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-02 0:29 [PATCH] arm64: dts: broadcom: bcm2712: rpi-5: Add ethernet0 alias Laurent Pinchart
2025-11-02 10:58 ` Stanimir Varbanov
2025-11-02 11:09 ` Laurent Pinchart
2025-11-03 9:12 ` Andrea della Porta [this message]
2025-11-03 9:09 ` Andrea della Porta
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=aQhyCzMWQif7-lY-@apocalypse \
--to=andrea.porta@suse.com \
--cc=andrew@lunn.ch \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=conor+dt@kernel.org \
--cc=dave.stevenson@raspberrypi.com \
--cc=devicetree@vger.kernel.org \
--cc=florian.fainelli@broadcom.com \
--cc=iivanov@suse.de \
--cc=krzk+dt@kernel.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=phil@raspberrypi.com \
--cc=robh@kernel.org \
--cc=svarbanov@suse.de \
/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