mediatek: mt7623: bpi-r2: add ethernet alias to device tree
authorDaniel Golle <daniel@makrotopia.org>
Sat, 18 Dec 2021 01:45:44 +0000 (01:45 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 18 Dec 2021 01:52:19 +0000 (01:52 +0000)
Add ethernet0 alias in device tree to make U-Boot inherit the Ethernet
mac address (set via environment variable 'ethaddr') down to Linux.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/patches-5.10/163-dts-mt7623-bpi-r2-ethernet-alias.patch [new file with mode: 0644]

diff --git a/target/linux/mediatek/patches-5.10/163-dts-mt7623-bpi-r2-ethernet-alias.patch b/target/linux/mediatek/patches-5.10/163-dts-mt7623-bpi-r2-ethernet-alias.patch
new file mode 100644 (file)
index 0000000..b1dd75a
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
++++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
+@@ -15,6 +15,7 @@
+       aliases {
+               serial2 = &uart2;
++              ethernet0 = &gmac0;
+               mmc0 = &mmc0;
+               mmc1 = &mmc1;
+               led-boot = &led_system_green;