Skip to contentSkip to conversation

arm64: dts: imx8qm: add ethernet aliases

PATCH In review Francesco Dolcini 3 participants 5 messages Apr 22, 2025 – Apr 25, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: imx8qm: add ethernet aliases

From: Francesco Dolcini <[email protected]>

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.

---
 arch/arm64/boot/dts/freescale/imx8qm.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/freescale/imx8qm.dtsi +2 -0
index 6fa31bc9ece8..eccd0087efa7 100644
@@ -17,6 +17,8 @@ / {
 	#size-cells = <2>;
 
 	aliases {
+		ethernet0 = &fec1;
+		ethernet1 = &fec2;
 		mmc0 = &usdhc1;
 		mmc1 = &usdhc2;
 		mmc2 = &usdhc3;
Signature · 1 line
2.39.5
#2 lore raw
In reply to Francesco Dolcini
Quoted 16 lines · Francesco Dolcini

From: Francesco Dolcini <[email protected]>

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.

---
 arch/arm64/boot/dts/freescale/imx8qm.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/freescale/imx8qm.dtsi +0 -0
index 6fa31bc9ece8..eccd0087efa7 100644

arch/arm64/boot/dts/freescale/imx8qm.dtsi / { · line 21

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8qm.dtsi +2 -0
@@ -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?

Best regards,
Krzysztof

#3 lore raw
Quoted 19 lines · Krzysztof Kozlowski
Quoted 18 lines · Francesco Dolcini

From: Francesco Dolcini <[email protected]>

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.

---
 arch/arm64/boot/dts/freescale/imx8qm.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/freescale/imx8qm.dtsi +0 -0
index 6fa31bc9ece8..eccd0087efa7 100644
@@ -17,6 +17,8 @@ / {
 	#size-cells = <2>;
 
Quoted 8 lines

arch/arm64/boot/dts/freescale/imx8qm.dtsi / { · line 21

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8qm.dtsi +2 -0
 	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.

Best regards,
Krzysztof

#4 lore raw
Quoted 26 lines · Krzysztof Kozlowski
Quoted 25 lines · Krzysztof Kozlowski
Quoted 16 lines · Francesco Dolcini

From: Francesco Dolcini <[email protected]>

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.

---
 arch/arm64/boot/dts/freescale/imx8qm.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/freescale/imx8qm.dtsi +0 -0
index 6fa31bc9ece8..eccd0087efa7 100644

arch/arm64/boot/dts/freescale/imx8qm.dtsi / { · line 21

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8qm.dtsi +2 -0
@@ -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.

Quoted 6 lines
Quoted 2 lines

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