ath79: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_comfast_cf-e313ac.dts
index ac387040bfcee1230d4b6da355d94a5fef3ddfd3..c187521351919c9a809028536779c67e540a7889 100644 (file)
        };
 };
 
-&uart {
-       status = "okay";
-};
-
 &eth0 {
        status = "okay";
 
        phy-handle = <&swphy0>;
 
-       mtd-mac-address = <&art 0x1002>;
+       nvmem-cells = <&macaddr_art_1002>;
+       nvmem-cell-names = "mac-address";
 
        gmac-config {
                device = <&gmac>;
 };
 
 &eth1 {
-       mtd-mac-address = <&art 0x0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
 };
 
 &pcie0 {
                reg = <0 0 0 0 0>;
        };
 };
+
+&art {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_art_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+
+       macaddr_art_1002: macaddr@1002 {
+               reg = <0x1002 0x6>;
+       };
+};