board=$(board_name)
case "$FIRMWARE" in
-"ath10k/cal-pci-0000:01:00.0.bin")
- case "$board" in
- meraki,mr33 |\
- meraki,mr74)
- caldata_extract_ubi "ART" 0x9000 0x844
- caldata_valid "4408" || caldata_extract "ART" 0x9000 0x844
- ;;
- esac
- ;;
"ath10k/pre-cal-pci-0000:01:00.0.bin")
case "$board" in
asus,map-ac2200)
caldata_extract_mmc "0:ART" 0x1000 0x2f20
ath10k_patch_mac $(macaddr_add "$(cat /sys/class/net/eth0/address)" 1)
;;
- meraki,mr33 |\
- meraki,mr74)
- caldata_extract_ubi "ART" 0x1000 0x2f20
- caldata_valid "202f" || caldata_extract "ART" 0x1000 0x2f20
- ;;
mikrotik,cap-ac |\
mikrotik,hap-ac2 |\
mikrotik,hap-ac3 |\
caldata_extract_mmc "0:ART" 0x5000 0x2f20
ath10k_patch_mac $(macaddr_add "$(cat /sys/class/net/eth0/address)" 2)
;;
- meraki,mr33 |\
- meraki,mr74)
- caldata_extract_ubi "ART" 0x5000 0x2f20
- caldata_valid "202f" || caldata_extract "ART" 0x5000 0x2f20
- ;;
mikrotik,cap-ac |\
mikrotik,hap-ac2 |\
mikrotik,hap-ac3 |\
* confuse the u-boot and it might not
* find the kernel partition anymore.
*/
+ volumes {
+ ubi_art: ubi-volume-art {
+ volname = "ART";
+ };
+ };
};
};
};
};
+&ubi_art {
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ precal_factory_1000: precal@1000 {
+ reg = <0x1000 0x2f20>;
+ };
+
+ precal_factory_5000: precal@5000 {
+ reg = <0x5000 0x2f20>;
+ };
+
+ cal_factory_9000: cal@9000 {
+ reg = <0x9000 0x844>;
+ };
+ };
+};
+
&pcie0 {
status = "okay";
perst-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
wifi@0,0 {
compatible = "qcom,ath10k";
reg = <0x00010000 0 0 0 0>;
- nvmem-cells = <&mac_address 1>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&mac_address 1>, <&cal_factory_9000>;
+ nvmem-cell-names = "mac-address", "calibration";
};
};
&wifi0 {
status = "okay";
- qcom,ath10k-calibration-variant = "Meraki-MR33";
- nvmem-cells = <&mac_address 2>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&mac_address 2>, <&precal_factory_1000>;
+ nvmem-cell-names = "mac-address", "pre-calibration";
};
&wifi1 {
status = "okay";
- qcom,ath10k-calibration-variant = "Meraki-MR33";
- nvmem-cells = <&mac_address 3>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&mac_address 3>, <&precal_factory_5000>;
+ nvmem-cell-names = "mac-address", "pre-calibration";
};
&mdio {