aliases {
serial0 = &uart0;
+ label-mac-device = &gmac0;
led-boot = &led_status_red;
led-failsafe = &led_status_red;
led-running = &led_status_green;
reg = <0>;
phy-mode = "2500base-x";
- nvmem-cells = <&macaddr_art_0>;
+ nvmem-cells = <&macaddr_art_0 0>;
nvmem-cell-names = "mac-address";
fixed-link {
#size-cells = <1>;
macaddr_art_0: macaddr@0 {
+ compatible = "mac-base";
reg = <0x0 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
port@3 {
reg = <3>;
label = "wan";
+ nvmem-cells = <&macaddr_art_0 3>;
+ nvmem-cell-names = "mac-address";
};
port@6 {
bananapi,bpi-r3)
wan_mac=$(macaddr_add $(cat /sys/class/net/eth0/address) 1)
;;
- cetron,ct3003)
- lan_mac=$(mtd_get_mac_binary "art" 0)
- wan_mac=$(macaddr_add "$lan_mac" 3)
- label_mac=$lan_mac
- ;;
cmcc,rax3000m)
case "$(cmdline_get_var root)" in
/dev/mmc*)