ramips: fix MAC address assignment for RAVPower RP-WD03
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 11 Sep 2020 15:52:02 +0000 (17:52 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 11 Sep 2020 23:24:02 +0000 (01:24 +0200)
MAC assignment based on vendor firmware:

  2.4 GHz    *:b4   (factory 0x04)
  LAN/label  *:b4   (factory 0x28)
  WAN        *:b5   (factory 0x2e)

The previously used location 0x4000 for ethernet is actually empty.

Therefore, fix the ethernet MAC address and set it as label-mac-address.

Fixes: 5ef79af4f80f ("ramips: add support for Ravpower WD03")
Suggested-by: Russell Morris <rmorris@rkmorris.us>
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/mt7620n_ravpower_rp-wd03.dts

index 407697a5e3f522dfc1eed0e476ea8fc23d3b8ddd..82b8a6b83f39e5474ef598b07c5b8ca321156036 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "ravpower,rp-wd03", "ralink,mt7620n-soc";
        model = "RAVPower RP-WD03";
 
+       aliases {
+               label-mac-device = &ethernet;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4000>;
+       mtd-mac-address = <&factory 0x28>;
 };
 
 &wmac {