Skip to content

Commit

Permalink
mediatek: filogic: openwrt_one: let U-Boot set LAN MAC address
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dangowrt committed Sep 19, 2024
1 parent dc26b66 commit 27be0f8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions target/linux/mediatek/dts/mt7981b-openwrt-one.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -146,8 +148,6 @@
reg = <1>;
phy-mode = "gmii";
phy-handle = <&int_gbe_phy>;
nvmem-cell-names = "mac-address";
nvmem-cells = <&macaddr_factory_2a>;
};
};

Expand Down Expand Up @@ -395,11 +395,6 @@
reg = <0x24 0x6>;
compatible = "mac-base";
};

macaddr_factory_2a: macaddr@2a {
reg = <0x2a 0x6>;
compatible = "mac-base";
};
};
};

Expand Down

0 comments on commit 27be0f8

Please sign in to comment.