lantiq: convert mtd-mac-address to nvmem implementation
[openwrt/staging/nbd.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_tplink_tdw89x0.dtsi
index 77494108160158c1ab511f28bd3c2f0db6127c8c..bdf98fe98e4849cc853165adc51a1b185c44061e 100644 (file)
 };
 
 &eth0 {
-       mtd-mac-address = <&ath9k_cal 0xf100>;
+       nvmem-cells = <&macaddr_ath9k_cal_f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &gphy0 {
                        gpio-controller;
                        qca,no-eeprom;
                        qca,disable-5ghz;
-                       mtd-mac-address = <&ath9k_cal 0xf100>;
+                       nvmem-cells = <&macaddr_ath9k_cal_f100>;
+                       nvmem-cell-names = "mac-address";
                        mac-address-increment = <2>;
                };
        };
        status = "okay";
        vbus-supply = <&usb_vbus>;
 };
+
+&ath9k_cal {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_ath9k_cal_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};