Skip to contentSkip to conversation

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

PATCH Applied Jorge Ramirez-Ortiz 2 participants 2 messages Jan 17, 2018 – Jan 31, 2018

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

PATCH v2 1/1 ARM64: dts: meson s905x: accept MAC addr from u-boot environment

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.

---
 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts +1 -0
index 68d2c90..278d769 100644
@@ -18,6 +18,7 @@
 
 	aliases {
 		serial0 = &uart_AO;
+		ethernet0 = &ethmac;
 	};
 
 	chosen {
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 9 lines · Jorge Ramirez-Ortiz

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.

Applied to v4.17/dt64,

Kevin