From: Krzysztof Kozlowski <krzk@kernel.org>
To: Francesco Dolcini <francesco@dolcini.it>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>
Cc: Francesco Dolcini <francesco.dolcini@toradex.com>,
devicetree@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] arm64: dts: imx8qm: add ethernet aliases
Date: Fri, 25 Apr 2025 21:22:25 +0200 [thread overview]
Message-ID: <32ec4e3f-9a5f-48b1-b87d-62fd5debc018@kernel.org> (raw)
In-Reply-To: <bca0cf4a-421c-404e-8161-4eab64cdbc57@kernel.org>
On 25/04/2025 18:39, Krzysztof Kozlowski wrote:
> On 25/04/2025 18:36, Krzysztof Kozlowski wrote:
>> On 22/04/2025 12:02, Francesco Dolcini wrote:
>>> From: Francesco Dolcini <francesco.dolcini@toradex.com>
>>>
>>> Add ethernet aliases, they are used by the firmware to set the MAC
>>> address and by systemd to rename network interfaces to predictable
>>> interface names, e.g. end0 and end1.
>>>
>>> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
>>> ---
>>> arch/arm64/boot/dts/freescale/imx8qm.dtsi | 2 ++
>>> 1 file changed, 2 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi
>>> index 6fa31bc9ece8..eccd0087efa7 100644
>>> --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi
>>> +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi
>>> @@ -17,6 +17,8 @@ / {
>>> #size-cells = <2>;
>>>
>>> aliases {
>>> + ethernet0 = &fec1;
>>> + ethernet1 = &fec2;
>> Can't they be disabled (e.g. because MAC is external?) on actual board?
>> IOW, aliases for exposed interfaces are properties of boards, not SoC.
>>
>> What's more, I cannot find these in this DTSI, so how can you add alias
>> to non-existing node?
>
> I found them (terrible design by NXP) but they are disabled so that's
> the point - adding aliases to disabled nodes is clear sign you are doing
> it wrong.
I'll fix existing NXP boards because this pattern of adding aliases for
disabled (thus non-existing) interface is in multiple places.
Best regards,
Krzysztof
prev parent reply other threads:[~2025-04-25 19:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-22 10:02 [PATCH v1] arm64: dts: imx8qm: add ethernet aliases Francesco Dolcini
2025-04-25 13:44 ` Oliver Graute
2025-04-25 16:36 ` Krzysztof Kozlowski
2025-04-25 16:39 ` Krzysztof Kozlowski
2025-04-25 19:22 ` Krzysztof Kozlowski [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=32ec4e3f-9a5f-48b1-b87d-62fd5debc018@kernel.org \
--to=krzk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=francesco.dolcini@toradex.com \
--cc=francesco@dolcini.it \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.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 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.