Messages in this thread Patch in this message | | | From | Baltazár Radics <> | Subject | [PATCH] Add ethernet0 alias in Nanopi NEO's device tree | Date | Sat, 29 Jan 2022 16:42:14 +0100 |
| |
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> --- arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts index 9f33f6fae5..df71fab3cf 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 { -- 2.35.1
| |