ath79: ar: convert to mac-base
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7241_tplink_tl-wr842n-v1.dts
index 02b96912ba9a9dcb64db6b235f8f35ae500be91f..e7fe31f36d0db2db25b7a1d6dd82432bd6744dd4 100644 (file)
                                        #size-cells = <1>;
 
                                        macaddr_uboot_1fc00: macaddr@1fc00 {
+                                               compatible = "mac-base";
                                                reg = <0x1fc00 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
                #gpio-cells = <2>;
                gpio-controller;
                qca,no-eeprom;
-               nvmem-cells = <&macaddr_uboot_1fc00>;
+               nvmem-cells = <&macaddr_uboot_1fc00 0>;
                nvmem-cell-names = "mac-address";
        };
 };
 &eth0 {
        status = "okay";
 
-       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00 (-1)>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-1)>;
 };
 
 &eth1 {
-       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00 1>;
        nvmem-cell-names = "mac-address";
-       mac-address-increment = <1>;
 };