ath79: ar: convert to nvmem-layout
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9342_ubnt_wa.dtsi
index 30fa299638c49969487502d34d486ce3e523f0c0..d85a07a8dcb180bb2b872ebf182953d87f519068 100644 (file)
@@ -1,10 +1,10 @@
-// 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,ar9342";
        model = "Ubiquiti Networks WA board";
        clock-frequency = <40000000>;
 };
 
-&uart {
-       status = "okay";
-};
-
-&gpio {
-       status = "okay";
-};
-
 &pcie {
        status = "okay";
 };
 
 &spi {
        status = "okay";
-       num-cs = <1>;
 
        flash@0 {
                compatible = "jedec,spi-nor";
                                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>;
+                                       };
+                               };
                        };
                };
        };
@@ -87,6 +88,6 @@
 &wmac {
        status = "okay";
 
-       qca,disable-5ghz;
-       mtd-cal-data = <&eeprom 0x1000>;
+       ieee80211-freq-limit = <2402000 2482000>;
+       mtd-cal-data = <&art 0x1000>;
 };