ath79: ar: convert to nvmem-layout
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9342_ubnt_wa.dtsi
index b684ad87ee3c73ae70f3dced326d382757e69495..d85a07a8dcb180bb2b872ebf182953d87f519068 100644 (file)
@@ -1,12 +1,12 @@
-// SPDX-License-Identifier: GPL-2.0
+// SPDX-License-Identifier: GPL-2.0-only
+
+#include "ar9344.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
-#include "ar9344.dtsi"
-
 / {
-       compatible = "ubnt,wa", "qca,ar9344";
+       compatible = "ubnt,wa", "qca,ar9342";
        model = "Ubiquiti Networks WA board";
 
        keys {
        clock-frequency = <40000000>;
 };
 
-&uart {
-       status = "okay";
-};
-
-&gpio {
-       status = "okay";
-};
-
 &pcie {
        status = "okay";
 };
 
 &spi {
        status = "okay";
-       num-cs = <1>;
 
        flash@0 {
                compatible = "jedec,spi-nor";
@@ -64,6 +55,7 @@
                        };
 
                        partition@50000 {
+                               compatible = "denx,uimage";
                                label = "firmware";
                                reg = <0x050000 0xf60000>;
                        };
                                read-only;
                        };
 
-                       eeprom: partition@ff0000 {
-                               label = "EEPROM";
+                       art: partition@ff0000 {
+                               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>;
+                                       };
+                               };
                        };
                };
        };
@@ -86,7 +88,6 @@
 &wmac {
        status = "okay";
 
-       qca,disable-5ghz;
-       mtd-cal-data = <&eeprom 0x1000>;
-       mtd-mac-address = <&eeprom 0x1002>;
+       ieee80211-freq-limit = <2402000 2482000>;
+       mtd-cal-data = <&art 0x1000>;
 };