Skip to content

Commit

Permalink
qualcommax: ipq60xx: add Redmi AX5 JDCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
breeze303 committed Apr 6, 2024
1 parent 54b2506 commit 344eb47
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 21 deletions.
1 change: 1 addition & 0 deletions package/boot/uboot-envtools/files/qualcommax_ipq60xx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ netgear,wax214)
[ -n "$idx" ] && \
ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x40000" "0x20000" "2"
;;
redmi,ax5-jdcloud|\
jdc,ax1800-pro)
mmcpart="$(find_mmc_part 0:APPSBLENV)"
[ -n "$mmcpart" ] && \
Expand Down
4 changes: 3 additions & 1 deletion package/firmware/ipq-wifi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ ALLWIFIBOARDS:= \
qnap_301w \
qihoo_v6 \
redmi_ax5 \
redmi_ax5-jdcloud \
redmi_ax6 \
wallys_dr40x9 \
xiaomi_ax1800 \
Expand All @@ -63,7 +64,7 @@ ALLWIFIBOARDS:= \
zte_mf269 \
zte_mf287 \
zte_mf287plus \
zyxel_nbg7815 \
zyxel_nbg7815

ALLWIFIPACKAGES:=$(foreach BOARD,$(ALLWIFIBOARDS),ipq-wifi-$(BOARD))

Expand Down Expand Up @@ -177,6 +178,7 @@ $(eval $(call generate-ipq-wifi-package,qnap_301w,QNAP 301w))
$(eval $(call generate-ipq-wifi-package,prpl_haze,prpl Haze))
$(eval $(call generate-ipq-wifi-package,qihoo_v6,Qihoo V6))
$(eval $(call generate-ipq-wifi-package,redmi_ax5,Redmi AX5))
$(eval $(call generate-ipq-wifi-package,redmi_ax5-jdcloud,Redmi AX5 JDCloud))
$(eval $(call generate-ipq-wifi-package,redmi_ax6,Redmi AX6))
$(eval $(call generate-ipq-wifi-package,wallys_dr40x9,Wallys DR40X9))
$(eval $(call generate-ipq-wifi-package,xiaomi_ax1800,Xiaomi AX1800))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

/dts-v1/;

#include "ipq6018-xiaomi.dtsi"

/ {
model = "Redmi AX5 JDCloud";
compatible = "redmi,ax5-jdcloud", "qcom,ipq6018";

chosen {
bootargs-append = " rootfstype=squashfs,ext4 swiotlb=1 coherent_pool=2M";
};
};

&sdhc_1 {
status = "okay";

// reference: https://github.com/openwrt/openwrt/blob/c1ad783/target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq8072-301w.dts#L311-L317
/delete-property/ mmc-hs400-1_8v;
mmc-hs200-1_8v;
mmc-ddr-1_8v;
};

&wifi {
qcom,ath11k-calibration-variant = "Redmi-AX5-JDCloud";
};
14 changes: 14 additions & 0 deletions target/linux/qualcommax/image/ipq60xx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@ define Device/redmi_ax5
endef
TARGET_DEVICES += redmi_ax5

define Device/redmi_ax5-jdcloud
$(call Device/FitImage)
$(call Device/EmmcImage)
DEVICE_VENDOR := Redmi
DEVICE_MODEL := AX5 JDCloud
DEVICE_DTS_CONFIG := config@cp03-c1
SOC := ipq6018
DEVICE_PACKAGES := ipq-wifi-redmi_ax5-jdcloud
#BLOCKSIZE := 64k
KERNEL_SIZE := 6144k
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-rootfs | append-metadata
endef
TARGET_DEVICES += redmi_ax5-jdcloud

define Device/xiaomi_ax1800
$(call Device/FitImage)
$(call Device/UbiFit)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ case "$board" in
ucidef_set_led_netdev "wlan2g" "WLAN2G" "blue:wlan2g" "wlan1"
ucidef_set_led_netdev "wlan5g" "WLAN5G" "blue:wlan5g" "wlan0"
;;
redmi,ax5-jdcloud|\
jdc,ax1800-pro)
ucidef_set_led_netdev "wan" "WAN" "net_blue" "eth3"
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ case "$FIRMWARE" in
xiaomi,ax1800)
caldata_extract "0:art" 0x1000 0x10000
;;
redmi,ax5-jdcloud|\
jdc,ax1800-pro)
caldata_extract_mmc "0:ART" 0x1000 0x10000
;;
Expand Down

This file was deleted.

0 comments on commit 344eb47

Please sign in to comment.