ath79: use "fixed-layout" for Embedded Wireless devices
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_ubnt_unifi-ap-pro.dts
index f8ffb6f0b9e7aac42ae4073a1234fc4412f48f08..55626c42995a57bc57c367e810272281808c58ec 100644 (file)
@@ -1,11 +1,10 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
+
+#include "ar9344.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
-#include "ar9344.dtsi"
-
 / {
        model = "Ubiquiti UniFi AP Pro";
        compatible = "ubnt,unifi-ap-pro";
                compatible = "gpio-leds";
 
                led_white: led-white {
-                       label = "ubnt:white:dome";
+                       label = "white:dome";
                        gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
                };
 
                led_blue: led-blue {
-                       label = "ubnt:blue:dome";
+                       label = "blue:dome";
                        gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
                };
        };
        clock-frequency = <40000000>;
 };
 
-&uart {
-       status = "okay";
-};
-
 &spi {
        status = "okay";
 
-       num-cs = <1>;
-
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                                read-only;
                        };
 
-                       art: partition@ff0000 {
+                       partition@ff0000 {
                                label = "art";
                                reg = <0xff0000 0x10000>;
                                read-only;
+
+                               compatible = "nvmem-cells";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+
+                               macaddr_art_0: macaddr@0 {
+                                       reg = <0x0 0x6>;
+                               };
+
+                               calibration_art_1000: calibration@1000 {
+                                       reg = <0x1000 0x440>;
+                               };
+
+                               calibration_art_5000: calibration@5000 {
+                                       reg = <0x5000 0x440>;
+                               };
                        };
                };
        };
        wifi@0,0 {
                compatible = "pci168c,0033";
                reg = <0 0 0 0 0>;
-               qca,no-eeprom;
+               nvmem-cells = <&calibration_art_5000>;
+               nvmem-cell-names = "calibration";
        };
 };
 
 &wmac {
        status = "okay";
 
-       mtd-cal-data = <&art 0x1000>;
+       nvmem-cells = <&calibration_art_1000>;
+       nvmem-cell-names = "calibration";
 };
 
 &mdio0 {
 
        pll-data = <0x6000000 0x101 0x1616>;
 
-       mtd-mac-address = <&art 0x0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
 
        phy-mode = "rgmii";
        phy-handle = <&phy0>;