diff mbox

[v2] ARM64: dts: meson s905x: accept MAC addr from u-boot environment

Message ID 1516186543-22056-1-git-send-email-jramirez@baylibre.com (mailing list archive)
State Accepted
Headers show

Commit Message

Jorge Ramirez-Ortiz Jan. 17, 2018, 10:55 a.m. UTC
With the adequate configuration settings, u-boot will loop through the
list of aliases looking for "ethernetX".

By adding an ethernet alias, u-boot can fixup the local-mac-address
property in the kernel's device tree using a value held in its
environment variable ethaddr.

Tested-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
---
 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts | 1 +
 1 file changed, 1 insertion(+)

Comments

Kevin Hilman Jan. 31, 2018, 12:32 a.m. UTC | #1
Jorge Ramirez-Ortiz <jramirez@baylibre.com> writes:

> With the adequate configuration settings, u-boot will loop through the
> list of aliases looking for "ethernetX".
>
> By adding an ethernet alias, u-boot can fixup the local-mac-address
> property in the kernel's device tree using a value held in its
> environment variable ethaddr.
>
> Tested-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
> Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>

Applied to v4.17/dt64,

Kevin
diff mbox

Patch

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts
index 68d2c90..278d769 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts
@@ -18,6 +18,7 @@ 
 
 	aliases {
 		serial0 = &uart_AO;
+		ethernet0 = &ethmac;
 	};
 
 	chosen {