ath79: convert mtd-mac-address to nvmem implementation
[openwrt/staging/stintel.git] / target / linux / ath79 / dts / qca9558_allnet_all-wap02860ac.dts
index 3b9e25e3e8f2b42e6076476d299352cc5a2eb6f7..aa1f4ad02bdd40ac20d0ce30f91e54aec27acfb4 100644 (file)
@@ -59,7 +59,8 @@
 &eth0 {
        status = "okay";
 
-       mtd-mac-address = <&art 0x0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
 
        phy-handle = <&phy5>;
        phy-mode = "rgmii-id";
        status = "okay";
 
        mtd-cal-data = <&art 0x1000>;
-       mtd-mac-address = <&art 0x0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <1>;
-       qca-no-eeprom;
+};
+
+&art {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_art_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
 };