ipq40xx: fixes Alibaba AP4220 support

This commit is contained in:
Willem Lee 2025-03-11 21:01:03 +08:00 committed by GitHub
parent fd54fed45c
commit 0fae2aafdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 29 deletions

View File

@ -58,8 +58,8 @@ case "$FIRMWARE" in
qcom,ap-dk01.1-c1) qcom,ap-dk01.1-c1)
caldata_extract "ART" 0x1000 0x2f20 caldata_extract "ART" 0x1000 0x2f20
;; ;;
alibaba,ap4220|\ alibaba,ap4220-48m|\
alibaba,ap4220-48m) alibaba,ap4220-128m)
caldata_extract "ART" 0x1000 0x2f20 caldata_extract "ART" 0x1000 0x2f20
ath10k_patch_mac $(macaddr_add "$(mtd_get_mac_text product_info 0x40)" 2) ath10k_patch_mac $(macaddr_add "$(mtd_get_mac_text product_info 0x40)" 2)
;; ;;
@ -148,8 +148,8 @@ case "$FIRMWARE" in
qcom,ap-dk01.1-c1) qcom,ap-dk01.1-c1)
caldata_extract "ART" 0x5000 0x2f20 caldata_extract "ART" 0x5000 0x2f20
;; ;;
alibaba,ap4220|\ alibaba,ap4220-48m|\
alibaba,ap4220-48m) alibaba,ap4220-128m)
caldata_extract "ART" 0x5000 0x2f20 caldata_extract "ART" 0x5000 0x2f20
ath10k_patch_mac $(macaddr_add "$(mtd_get_mac_text product_info 0x40)" 3) ath10k_patch_mac $(macaddr_add "$(mtd_get_mac_text product_info 0x40)" 3)
;; ;;

View File

@ -7,6 +7,6 @@
compatible = "alibaba,ap4220-128m"; compatible = "alibaba,ap4220-128m";
}; };
&nand_rootfs { &ubi_rootfs {
reg = <0x0 0x08000000>; reg = <0x0 0x08000000>;
}; };

View File

@ -7,6 +7,6 @@
compatible = "alibaba,ap4220-48m"; compatible = "alibaba,ap4220-48m";
}; };
&nand_rootfs { &ubi_rootfs {
reg = <0x0 0x03000000>; reg = <0x0 0x03000000>;
}; };

View File

@ -15,7 +15,7 @@
}; };
chosen { chosen {
bootargs-append = " root=/dev/ubiblock0_1"; bootargs-append = " ubi.mtd=rootfs root=/dev/ubiblock0_1";
}; };
soc { soc {
@ -164,7 +164,6 @@
partition@e0000 { partition@e0000 {
label = "APPSBLENV"; label = "APPSBLENV";
reg = <0xe0000 0x10000>; reg = <0xe0000 0x10000>;
read-only;
}; };
partition@f0000 { partition@f0000 {
@ -177,17 +176,6 @@
label = "ART"; label = "ART";
reg = <0x170000 0x10000>; reg = <0x170000 0x10000>;
read-only; 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>;
};
}; };
partition@180000 { partition@180000 {
@ -199,7 +187,6 @@
partition@190000 { partition@190000 {
label = "mtdoops"; label = "mtdoops";
reg = <0x00190000 0x00020000>; reg = <0x00190000 0x00020000>;
read-only;
}; };
partition@1b0000 { partition@1b0000 {
@ -232,7 +219,7 @@
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
nand_rootfs: partition@0 { ubi_rootfs: partition@0 {
label = "rootfs"; label = "rootfs";
/* reg defined in 48M/128M variant dts. */ /* reg defined in 48M/128M variant dts. */
}; };
@ -330,20 +317,14 @@
status = "okay"; status = "okay";
}; };
&vqmmc {
status = "okay";
};
&wifi0 { &wifi0 {
status = "okay"; status = "okay";
nvmem-cell-names = "pre-calibration";
nvmem-cells = <&precal_art_1000>;
qcom,ath10k-calibration-variant = "Alibaba-AP4220"; qcom,ath10k-calibration-variant = "Alibaba-AP4220";
}; };
&wifi1 { &wifi1 {
status = "okay"; status = "okay";
nvmem-cell-names = "pre-calibration";
nvmem-cells = <&precal_art_5000>;
qcom,ath10k-calibration-variant = "Alibaba-AP4220"; qcom,ath10k-calibration-variant = "Alibaba-AP4220";
}; };