ath79: convert ath10k calibration data to NVMEM (binary MAC)
[openwrt/staging/dangole.git] / target / linux / ath79 / dts / qca9531_tplink_tl-wr902ac-v1.dts
index 69445df7415ac6414351c8b4a09fc0014dad7455..a31694effdc3129ab49bbaecc61190d56a51b409 100644 (file)
                                label = "info";
                                reg = <0x750000 0x010000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_info_8: macaddr@8 {
+                                               compatible = "mac-base";
+                                               reg = <0x8 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
 
                        partition@760000 {
                                label = "art";
                                reg = <0x7f0000 0x010000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       cal_art_5000: calibration@5000 {
+                                               reg = <0x5000 0x844>;
+                                       };
+                               };
                        };
                };
        };
 
        phy-handle = <&swphy4>;
 
-       mtd-mac-address = <&info 0x8>;
-       mtd-mac-address-increment = <1>;
+       nvmem-cells = <&macaddr_info_8 1>;
+       nvmem-cell-names = "mac-address";
 };
 
 &eth1 {
        status = "okay";
 
        mtd-cal-data = <&art 0x1000>;
-       mtd-mac-address = <&info 0x8>;
+       nvmem-cells = <&macaddr_info_8 0>;
+       nvmem-cell-names = "mac-address";
 };
 
 &pcie0 {
        wifi@0,0 {
                compatible = "pci168c,0050";
                reg = <0x0000 0 0 0 0>;
+               nvmem-cells = <&cal_art_5000>, <&macaddr_info_8 (-1)>;
+               nvmem-cell-names = "calibration", "mac-address";
        };
 };
 
 };
 
 &usb0 {
-       #address-cells = <1>;
-       #size-cells = <0>;
        status = "okay";
-
-       hub_port0: port@1 {
-               reg = <1>;
-               #trigger-source-cells = <0>;
-       };
 };