ath79: qca: convert to nvmem-layout
[openwrt/staging/jow.git] / target / linux / ath79 / dts / qca9558_allnet_all-wap02860ac.dts
index 3b9e25e3e8f2b42e6076476d299352cc5a2eb6f7..34e0e44e47b396dcb5bbbc90b77078002ff34ca4 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";
                label = "art";
                reg = <0xff0000 0x010000>;
                read-only;
+
+               nvmem-layout {
+                       compatible = "fixed-layout";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       macaddr_art_0: macaddr@0 {
+                               reg = <0x0 0x6>;
+                       };
+               };
        };
 };
 
        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;
+};
+
+&pcie0 {
+       status = "okay";
 };