ath79: fix MAC address assigment for TP-Link TL-WR740N/TL-WR741ND v4
authorWill Moss <willormos@gmail.com>
Sat, 19 Nov 2022 10:35:33 +0000 (10:35 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 27 Nov 2022 14:43:08 +0000 (15:43 +0100)
On TP-Link TL-WR740N/TL-WR741ND v4 LAN MAC address (eth1 in DTS) is main
device MAC address, so do not increment it. WAN MAC is LAN MAC + 1.

Signed-off-by: Will Moss <willormos@gmail.com>
(cherry picked from commit 288b0004bfa981e3dbb8678ee3289509c3930217)

target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi

index b74b8251ce5c0a3c86b1b92f6f59d3c94b9ee605..4d3b1dba1d6ff9b7c98a1c9cd9155f5555f9332e 100644 (file)
        };
 };
 
-&eth0 {
+&eth0 {                /* WAN interface, initialized last as eth1 */
        status = "okay";
 
        nvmem-cells = <&macaddr_uboot_1fc00>;
        };
 };
 
-&eth1 {
+&eth1 {                /* LAN interface, initialized first as eth0 */
        status = "okay";
 
        nvmem-cells = <&macaddr_uboot_1fc00>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-1)>;
 };
 
 &wmac {