summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaltazár Radics <baltazar.radics@gmail.com>2022-01-29 18:42:14 +0300
committerMaxime Ripard <maxime@cerno.tech>2022-01-31 12:21:50 +0300
commite4bae63fe5e00b0f5a7389ca0144b2434fea97e4 (patch)
treec06a8834da45177cb5481ddc3a70ff997b2638e4
parent210b3ef939c846f4af0602bdc660852e837bf4a8 (diff)
downloadlinux-e4bae63fe5e00b0f5a7389ca0144b2434fea97e4.tar.xz
ARM: dts: sun8i: 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.) Signed-off-by: Baltazár Radics <baltazar.radics@gmail.com> Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://lore.kernel.org/r/20220129154214.45629-1-baltazar.radics@gmail.com
-rw-r--r--arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
index 9f33f6fae595..df71fab3cf4e 100644
--- a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
+++ b/arch/arm/boot/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 {