ath79: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9533_tplink_cpexxx.dtsi
index d5eeec13b7770014081c6de57708d89e8ffb208e..3f3fae1dfd70f51dcad7dc2f379d952c22b5b690 100644 (file)
 
        phy-handle = <&swphy4>;
 
-       mtd-mac-address = <&info 0x8>;
+       nvmem-cells = <&macaddr_info_8>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        status = "okay";
 
        mtd-cal-data = <&art 0x1000>;
-       mtd-mac-address = <&info 0x8>;
+       nvmem-cells = <&macaddr_info_8>;
+       nvmem-cell-names = "mac-address";
+};
+
+&info {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_info_8: macaddr@8 {
+               reg = <0x8 0x6>;
+       };
 };