From: Adrian Schmutzler Date: Sun, 16 Jun 2019 10:51:57 +0000 (+0200) Subject: ath79: Use -v1 suffix for TP-Link WDR3600/4300 X-Git-Tag: v21.02.0-rc1~5668 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ab02584685a5db880c0abe5a51d0213551e8728f;p=openwrt%2Fstaging%2Fhauke.git ath79: Use -v1 suffix for TP-Link WDR3600/4300 In ath79, identifiers tplink_tl-wdr3600 and tplink_tl-wdr4300 have been used while most other TP-Link devices include the revision. Although there actually is only one major revision of these devices, they bear the revision on their bottom (v1.x). TP-Link also refers to the devices as V1 on its web page. This patch thus adds -v1 to both so it is more consistent with other devices and with what you would expect from reading the on-device sticker and the support pages. Signed-off-by: Adrian Schmutzler --- diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index fffb00eca0..4aa9999947 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -191,8 +191,8 @@ ath79_setup_interfaces() tplink,archer-c6-v2|\ tplink,archer-c7-v4|\ tplink,archer-c7-v5|\ - tplink,tl-wdr3600|\ - tplink,tl-wdr4300|\ + tplink,tl-wdr3600-v1|\ + tplink,tl-wdr4300-v1|\ tplink,tl-wr941n-v7-cn) ucidef_add_switch "switch0" \ "0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan" diff --git a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom index e6b6d2f230..5a20b84344 100644 --- a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom +++ b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom @@ -152,8 +152,8 @@ case "$FIRMWARE" in ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_text "mac" 24) 1) 2 ;; ocedo,raccoon|\ - tplink,tl-wdr3600|\ - tplink,tl-wdr4300|\ + tplink,tl-wdr3600-v1|\ + tplink,tl-wdr4300-v1|\ tplink,tl-wdr4900-v2|\ winchannel,wb2000) ath9k_eeprom_extract "art" 20480 1088 diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr3600-v1.dts b/target/linux/ath79/dts/ar9344_tplink_tl-wdr3600-v1.dts new file mode 100644 index 0000000000..42f40d52a2 --- /dev/null +++ b/target/linux/ath79/dts/ar9344_tplink_tl-wdr3600-v1.dts @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "ar9344_tplink_tl-wdr4300.dtsi" + +/ { + model = "TP-Link TL-WDR3600 v1"; + compatible = "tplink,tl-wdr3600-v1", "qca,ar9344"; +}; diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr3600.dts b/target/linux/ath79/dts/ar9344_tplink_tl-wdr3600.dts deleted file mode 100644 index 9f708242f9..0000000000 --- a/target/linux/ath79/dts/ar9344_tplink_tl-wdr3600.dts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; - -#include "ar9344_tplink_tl-wdr4300.dtsi" - -/ { - model = "TP-Link WDR3600"; - compatible = "tplink,tl-wdr3600", "qca,ar9344"; -}; diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300-v1.dts b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300-v1.dts new file mode 100644 index 0000000000..f8f05d24bb --- /dev/null +++ b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300-v1.dts @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "ar9344_tplink_tl-wdr4300.dtsi" + +/ { + model = "TP-Link TL-WDR4300 v1"; + compatible = "tplink,tl-wdr4300-v1", "qca,ar9344"; +}; diff --git a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dts b/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dts deleted file mode 100644 index ba6b4f846a..0000000000 --- a/target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; - -#include "ar9344_tplink_tl-wdr4300.dtsi" - -/ { - model = "TP-Link WDR4300"; - compatible = "tplink,tl-wdr4300", "qca,ar9344"; -}; diff --git a/target/linux/ath79/image/generic-tp-link.mk b/target/linux/ath79/image/generic-tp-link.mk index 73275ccf35..0ae82293bd 100644 --- a/target/linux/ath79/image/generic-tp-link.mk +++ b/target/linux/ath79/image/generic-tp-link.mk @@ -203,25 +203,25 @@ define Device/tplink_re450-v2 endef TARGET_DEVICES += tplink_re450-v2 -define Device/tplink_tl-wdr3600 +define Device/tplink_tl-wdr3600-v1 $(Device/tplink-8mlzma) ATH_SOC := ar9344 - DEVICE_TITLE := TP-Link TL-WDR3600 + DEVICE_TITLE := TP-Link TL-WDR3600 v1 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport TPLINK_HWID := 0x36000001 SUPPORTED_DEVICES += tl-wdr4300 endef -TARGET_DEVICES += tplink_tl-wdr3600 +TARGET_DEVICES += tplink_tl-wdr3600-v1 -define Device/tplink_tl-wdr4300 +define Device/tplink_tl-wdr4300-v1 $(Device/tplink-8mlzma) ATH_SOC := ar9344 - DEVICE_TITLE := TP-Link TL-WDR4300 + DEVICE_TITLE := TP-Link TL-WDR4300 v1 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport TPLINK_HWID := 0x43000001 SUPPORTED_DEVICES += tl-wdr4300 endef -TARGET_DEVICES += tplink_tl-wdr4300 +TARGET_DEVICES += tplink_tl-wdr4300-v1 define Device/tplink_tl-wdr4900-v2 $(Device/tplink-8mlzma)