Skip to contentSkip to conversation

Add ethernet0 alias in Nanopi NEO's device tree

PATCH Applied Baltazár Radics 3 participants 3 messages Jan 29, 2022 – Jan 31, 2022

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

PATCH 1/1 Add ethernet0 alias in Nanopi NEO's device tree

This is required for U-Boot to generate a MAC address for it automatically.
(Without this, the MAC address will be random on each boot.)

---
 arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts +4 -0
index 9f33f6fae5..df71fab3cf 100644
@@ -45,6 +45,10 @@
 / {
 	model = "FriendlyARM NanoPi NEO";
 	compatible = "friendlyarm,nanopi-neo", "allwinner,sun8i-h3";
+
+	aliases {
+		ethernet0 = &emac;
+	};
 };
 
 &ehci0 {
Signature · 1 line
2.35.1
#2 lore raw

Re: (subset) [PATCH] Add ethernet0 alias in Nanopi NEO's device tree

In reply to Baltazár Radics
Quoted 5 lines · Baltazár Radics

This is required for U-Boot to generate a MAC address for it automatically.
(Without this, the MAC address will be random on each boot.)

Applied to sunxi/linux.git (sunxi/for-next).

Thanks!
Maxime