mediatek: filogic: openwrt_one: let U-Boot set LAN MAC address
authorDaniel Golle <daniel@makrotopia.org>
Thu, 19 Sep 2024 19:12:54 +0000 (20:12 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 19 Sep 2024 19:33:53 +0000 (20:33 +0100)
Instead of reading it from flash directly, let U-Boot assign the LAN
MAC address. Set label-mac-device while at it and sort aliases in DT
alphabetically.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/dts/mt7981b-openwrt-one.dts

index cfc5319d9145ab9e6ea59fdd85f5ef8010d8d25c..46d351f76d09df83b4dc2eb72b7a0ca02f59a7a3 100644 (file)
@@ -8,11 +8,13 @@
        compatible = "openwrt,one", "mediatek,mt7981";
 
        aliases {
-               serial0 = &uart0;
+               ethernet0 = &gmac1;
+               label-mac-device = &gmac0;
                led-boot = &led_status_white;
                led-failsafe = &led_status_red;
                led-running = &led_status_green;
                led-upgrade = &led_status_green;
+               serial0 = &uart0;
        };
 
        chosen {
                reg = <1>;
                phy-mode = "gmii";
                phy-handle = <&int_gbe_phy>;
-               nvmem-cell-names = "mac-address";
-               nvmem-cells = <&macaddr_factory_2a>;
        };
 };
 
                                                reg = <0x24 0x6>;
                                                compatible = "mac-base";
                                        };
-
-                                       macaddr_factory_2a: macaddr@2a {
-                                               reg = <0x2a 0x6>;
-                                               compatible = "mac-base";
-                                       };
                                };
                        };