[openwrt/openwrt] mediatek: mt7623: bpi-r2: add ethernet alias to device tree

LEDE Commits lede-commits at lists.infradead.org
Fri Dec 17 17:53:03 PST 2021


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/5a4685cfa246f87af10f32890befbcaa59a7baac

commit 5a4685cfa246f87af10f32890befbcaa59a7baac
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Sat Dec 18 01:45:44 2021 +0000

    mediatek: mt7623: bpi-r2: add ethernet alias to device tree
    
    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 at makrotopia.org>
---
 .../patches-5.10/163-dts-mt7623-bpi-r2-ethernet-alias.patch    | 10 ++++++++++
 1 file changed, 10 insertions(+)

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
index 0000000000..b1dd75a414
--- /dev/null
+++ b/target/linux/mediatek/patches-5.10/163-dts-mt7623-bpi-r2-ethernet-alias.patch
@@ -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;



More information about the lede-commits mailing list