add TP-LINK TL-WDR7500 V3-16MB (#7550)

This commit is contained in:
libinanshu 2021-07-29 14:42:32 +08:00 committed by GitHub
parent b72f6d6fa1
commit 89fa14ad27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 61 additions and 2 deletions

View File

@ -0,0 +1,45 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "qca9558_tplink_archer-c.dtsi"
/ {
compatible = "tplink,tl-wdr7500-v3-16MB", "qca,qca9558";
model = "TP-Link TL-WDR7500 v3";
};
&keys {
rfkill {
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>;
linux,input-type = <EV_SW>;
debounce-interval = <60>;
};
};
&leds {
wlan5g {
label = "green:wlan5g";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
};
&mtdparts {
uboot: partition@0 {
label = "u-boot";
reg = <0x000000 0x020000>;
read-only;
};
partition@20000 {
label = "firmware";
compatible = "tplink,firmware";
reg = <0x020000 0xfd0000>;
};
art: partition@ff0000 {
label = "art";
reg = <0xff0000 0x010000>;
read-only;
};
};

View File

@ -130,7 +130,8 @@ ath79_setup_interfaces()
tplink,archer-c7-v1|\
tplink,archer-c7-v2|\
tplink,tl-wdr4900-v2|\
tplink,tl-wdr7500-v3)
tplink,tl-wdr7500-v3|\
tplink,tl-wdr7500-v3-16MB)
ucidef_add_switch "switch0" \
"0@eth1" "2:lan" "3:lan" "4:lan" "5:lan" "6@eth0" "1:wan"
;;

View File

@ -126,7 +126,8 @@ case "$FIRMWARE" in
;;
tplink,archer-c5-v1|\
tplink,archer-c7-v2|\
tplink,tl-wdr7500-v3)
tplink,tl-wdr7500-v3|\
tplink,tl-wdr7500-v3-16MB)
caldata_extract "art" 0x5000 0x844
ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary u-boot 0x1fc00) -1)
;;

View File

@ -588,6 +588,18 @@ define Device/tplink_tl-wdr7500-v3
endef
TARGET_DEVICES += tplink_tl-wdr7500-v3
define Device/tplink_tl-wdr7500-v3-16MB
$(Device/tplink-16mlzma)
SOC := qca9558
DEVICE_MODEL := TL-WDR7500
DEVICE_VARIANT := v3(16MB)
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct \
ath10k-firmware-qca988x-ct
TPLINK_HWID := 0x75000003
SUPPORTED_DEVICES += archer-c7
endef
TARGET_DEVICES += tplink_tl-wdr7500-v3-16MB
define Device/tplink_tl-wdr6500-v2
$(Device/tplink-8mlzma)
SOC := qca9561