[PATCH v2] Add ethernet0 alias in Nanopi NEO's device tree

Baltazár Radics baltazar.radics at gmail.com
Sat Mar 26 13:09:10 CET 2022


This is required to enable automatic MAC address generation.

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



More information about the U-Boot mailing list