ath79: fix MAC address assigment for TP-Link TL-WR740N/TL-WR741ND v4

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>
This commit is contained in:
Will Moss 2022-11-19 10:35:33 +00:00 committed by Hauke Mehrtens
parent 5a1d7d8c1b
commit 288b0004bf
1 changed files with 2 additions and 3 deletions

View File

@ -118,7 +118,7 @@
};
};
&eth0 {
&eth0 { /* WAN interface, initialized last as eth1 */
status = "okay";
nvmem-cells = <&macaddr_uboot_1fc00>;
@ -133,12 +133,11 @@
};
};
&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 {