[openwrt/openwrt] mediatek: bpi-r4: add ethernet aliases to DT

LEDE Commits lede-commits at lists.infradead.org
Mon May 6 08:40:25 PDT 2024


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/0b0e3e22f8830c6f0224509f25eb0f55d36ba7b5

commit 0b0e3e22f8830c6f0224509f25eb0f55d36ba7b5
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Mon May 6 16:37:24 2024 +0100

    mediatek: bpi-r4: add ethernet aliases to DT
    
    Adding the aliases also for Linux 6.6 was forgotten and is required for
    U-Boot to hand down persistent MAC addresses to Linux.
    
    Fixes: 5709254690 ("mediatek: bpi-r4: store random MAC addresses for the BPi-R4")
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 .../arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi
index 49d7edcd6b..ba19f69bbf 100644
--- a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi
+++ b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dtsi
@@ -17,11 +17,13 @@
 		     "mediatek,mt7988a";
 
 	aliases {
-		serial0 = &uart0;
+		ethernet0 = &gmac0;
+		ethernet1 = &gmac1;
 		led-boot = &led_green;
 		led-failsafe = &led_green;
 		led-running = &led_green;
 		led-upgrade = &led_green;
+		serial0 = &uart0;
 	};
 
 	chosen {




More information about the lede-commits mailing list