ath79: ar: convert to nvmem-layout
[openwrt/staging/jow.git] / target / linux / ath79 / dts / ar7242_engenius_ecb350-v1.dts
index 55343e786a7919f46e8149e5022c9cc514f715c7..2de6dab20dffb13a95afb923ec3be63f4e3bf761 100644 (file)
@@ -1,7 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
 #include "ar7242.dtsi"
-#include "ar724x_senao_loader.dtsi"
+#include "ar724x_senao_loader-4k.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
@@ -63,7 +63,8 @@
 &eth0 {
        status = "okay";
 
-       mtd-mac-address = <&art 0x0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
 
        phy-handle = <&phy4>;
        phy-mode = "rgmii-id";
        ath9k: wifi@0,0,0 {
                compatible = "pci168c,002a";
                reg = <0x0 0 0 0 0>;
-               mtd-mac-address = <&art 0x0>;
-               mtd-mac-address-increment = <(-1)>;
+               nvmem-cells = <&macaddr_art_0>;
+               nvmem-cell-names = "mac-address";
+               mac-address-increment = <(-1)>;
                qca,no-eeprom;
                #gpio-cells = <2>;
                gpio-controller;
        };
 };
+
+&art {
+       nvmem-layout {
+               compatible = "fixed-layout";
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               macaddr_art_0: macaddr@0 {
+                       reg = <0x0 0x6>;
+               };
+       };
+};