ath79: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_ubnt_rocket-5ac-lite.dts
index e8e2322c568d51f135bfc301b39d31df9c8a0521..0458fcaa4d7a09edc05ae3876ee2b979aa5e0653 100644 (file)
 &eth0 {
        status = "okay";
 
-       mtd-mac-address = <&art 0x0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
        phy-mode = "sgmii";
        phy-handle = <&phy4>;
 };
+
+&art {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_art_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+};