ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data
[openwrt/staging/chunkeey.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4019-wtr-m2133hp.dts
index fb0cec59f7e1330d161d6878694db1fc25fb17c6..1f8c830d902e7d4b9dc971f2bfafb7abda3104d3 100644 (file)
                wifi@0,0 {
                        compatible = "qcom,ath10k";
                        reg = <0 0 0 0 0>;
-
+                       nvmem-cell-names = "pre-calibration", "mac-address";
+                       nvmem-cells = <&precal_art_9000>, <&macaddr_orgdata_32>;
                        qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
                };
        };
                                read-only;
                        };
 
-                       art: partition@b00000 {
+                       partition@b00000 {
                                label = "ART";
                                reg = <0x0b00000 0x0080000>;
                                read-only;
+                               compatible = "nvmem-cells";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+
+                               precal_art_1000: precal@1000 {
+                                       reg = <0x1000 0x2f20>;
+                               };
+
+                               precal_art_5000: precal@5000 {
+                                       reg = <0x5000 0x2f20>;
+                               };
+
+                               precal_art_9000: precal@9000 {
+                                       reg = <0x5000 0x2f20>;
+                               };
                        };
 
                        partition@b80000 {
                                label = "ORGDATA";
                                reg = <0x0c00000 0x0080000>;
                                read-only;
+                               compatible = "nvmem-cells";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+
+                               macaddr_orgdata_20: macaddr@20 {
+                                       reg = <0x20 0x6>;
+                               };
+                               macaddr_orgdata_26: macaddr@26 {
+                                       reg = <0x26 0x6>;
+                               };
+                               macaddr_orgdata_2c: macaddr@2c {
+                                       reg = <0x2c 0x6>;
+                               };
+                               macaddr_orgdata_32: macaddr@32 {
+                                       reg = <0x32 0x6>;
+                               };
                        };
 
                        partition@c80000 {
 
 &wifi0 {
        status = "okay";
+       nvmem-cell-names = "pre-calibration", "mac-address";
+       nvmem-cells = <&precal_art_1000>, <&macaddr_orgdata_26>;
        qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
        ieee80211-freq-limit = <2400000 2483000>;
 };
 
 &wifi1 {
        status = "okay";
+       nvmem-cell-names = "pre-calibration", "mac-address";
+       nvmem-cells = <&precal_art_5000>, <&macaddr_orgdata_2c>;
        qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
 };
 
 &usb3_hs_phy {
        status = "okay";
 };
-
-&orgdata {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_orgdata_20: macaddr@20 {
-               reg = <0x20 0x6>;
-       };
-};