ath79: convert mtd-mac-address to nvmem implementation
[openwrt/staging/stintel.git] / target / linux / ath79 / dts / qca9563_yuncore_xd4200.dtsi
index 4eed20bea47a06c8e232a47c775a8ed539a90d9d..f8dec2bc6b78055f027fd94062310e7f6cbe52c3 100644 (file)
@@ -26,7 +26,8 @@
 
        pll-data = <0x03000101 0x00000101 0x00001919>;
 
-       mtd-mac-address = <&art 0x0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
        phy-mode = "sgmii";
        phy-handle = <&phy0>;
 };
 
        mtd-cal-data = <&art 0x1000>;
 };
+
+&art {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_art_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+};