Skip to content

Commit

Permalink
ath79: support ZTE MF286C
Browse files Browse the repository at this point in the history
Signed-off-by: Lech Perczak <[email protected]>
  • Loading branch information
Leo-PL committed Jan 15, 2025
1 parent 1e5faf4 commit ff4346a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions package/boot/uboot-envtools/files/ath79
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ wallys,dr531)
;;
zte,mf286|\
zte,mf286a|\
zte,mf286c|\
zte,mf286r)
ubootenv_add_uci_config "/dev/mtd7" "0x0" "0x20000" "0x10000"
;;
Expand Down
13 changes: 13 additions & 0 deletions target/linux/ath79/dts/qca9563_zte_mf286c.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
// Copyright (c) 2021 Cezary Jackiewicz
// Copyright (c) 2021, 2022 Lech Perczak
#include "qca9563_zte_mf286ar.dtsi"

/ {
model = "ZTE MF286C";
compatible = "zte,mf286c", "qca,qca9563";
};

&wifi_ath10k {
qcom,ath10k-calibration-variant = "ZTE-MF286C";
};
9 changes: 9 additions & 0 deletions target/linux/ath79/image/nand.mk
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,15 @@ define Device/zte_mf286a
endef
TARGET_DEVICES += zte_mf286a

define Device/zte_mf286c
$(Device/zte_mf28x_common)
DEVICE_MODEL := MF286C
DEVICE_PACKAGES += ath10k-firmware-qca9888-ct kmod-usb-net-qmi-wwan \
-ath10k-board-qca9888 ipq-wifi-zte_mf286c \
kmod-usb-serial-option uqmi
endef
TARGET_DEVICES += zte_mf286c

define Device/zte_mf286r
$(Device/zte_mf28x_common)
DEVICE_MODEL := MF286R
Expand Down
1 change: 1 addition & 0 deletions target/linux/ath79/nand/base-files/etc/board.d/02_network
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ ath79_setup_interfaces()
;;
zte,mf286|\
zte,mf286a|\
zte,mf286c|\
zte,mf286r)
ucidef_add_switch "switch0" \
"0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "5:lan:1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ board=$(board_name)

case "$board" in
zte,mf286a|\
zte,mf286c|\
zte,mf286r)
ucidef_add_gpio_switch "power_btn_block" "Power button blocker" "532" "0"
;;
Expand Down

0 comments on commit ff4346a

Please sign in to comment.