ath79: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_comfast_cf-e5.dts
index 57727754bba4d4a52f741a3cf155f7faafddc6b6..d83972525855de2859d50a0da035726a041438d4 100644 (file)
 
        phy-handle = <&swphy4>;
 
-       mtd-mac-address = <&art 0x0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
 };
 
 &eth1 {
-       mtd-mac-address = <&art 0x6>;
+       nvmem-cells = <&macaddr_art_6>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
                pinctrl-single,bits = <0x4 0x0 0xff>;
        };
 };
+
+&art {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_art_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+
+       macaddr_art_6: macaddr@6 {
+               reg = <0x6 0x6>;
+       };
+};