ath79: Convert calibration data to nvmem
[openwrt/staging/ldir.git] / target / linux / ath79 / dts / qca9563_dlink_dir-8x9-a1.dtsi
index 65948ecb22292d1be5b605cd69c4695775825ba7..556ba604a6b1de19d9bc8181c8ef57ed223f8e0c 100644 (file)
 
 &pcie {
        status = "okay";
+
+       wifi@0,0 {
+               compatible = "qcom,ath10k";
+               reg = <0x0000 0 0 0 0>;
+
+               nvmem-cells = <&calibration_ath10k>, <&macaddr_devdata_94>;
+               nvmem-cell-names = "calibration", "mac-address-ascii";
+       };
 };
 
 &spi {
                                label = "devdata";
                                reg = <0x050000 0x10000>;
                                read-only;
+
+                               compatible = "nvmem-cells";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+
+                               macaddr_devdata_94: macaddr@94 {
+                                       reg = <0x94 0x11>;
+                               };
+
+                               macaddr_devdata_b0: macaddr@b0 {
+                                       reg = <0xb0 0x11>;
+                               };
                        };
 
                        partition@60000 {
                                reg = <0x070000 0xf80000>;
                        };
 
-                       art: partition@ff0000 {
+                       partition@ff0000 {
                                label = "art";
                                reg = <0xff0000 0x010000>;
                                read-only;
+
+                               compatible = "nvmem-cells";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+
+                               calibration_ath9k: calibration@1000 {
+                                       reg = <0x1000 0x440>;
+                               };
+
+                               calibration_ath10k: calibration@5000 {
+                                       reg = <0x5000 0x844>;
+                               };      
                        };
                };
        };
 &wmac {
        status = "okay";
 
-       qca,no-eeprom;
+       nvmem-cells = <&calibration_ath9k>, <&macaddr_devdata_b0>;
+       nvmem-cell-names = "calibration", "mac-address-ascii";
 };