ath79: fix MAC address assignment for TP-Link ar7241 devices
[openwrt/staging/lynxis.git] / target / linux / ath79 / dts / ar7241_tplink.dtsi
index 84a9a4f63d6f9e10ed788281d9af3bbd90375602..0861cc623226084ec0c68eea4a8e057304ab0357 100644 (file)
        };
 };
 
-&eth0 {
+&eth0 {                /* WAN interface, initialized last as eth1 */
        status = "okay";
 
        nvmem-cells = <&macaddr_uboot_1fc00>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-1)>;
+       mac-address-increment = <1>;
 };
 
-&eth1 {
+&eth1 {                /* LAN interface, initialized first as eth0 */
        nvmem-cells = <&macaddr_uboot_1fc00>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <1>;
 };
 
 &uboot {