ath79: Use -v1 suffix for TP-Link WDR3600/4300
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 16 Jun 2019 10:51:57 +0000 (12:51 +0200)
committerPetr Štetiar <ynezz@true.cz>
Wed, 3 Jul 2019 05:45:00 +0000 (07:45 +0200)
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 <freifunk@adrianschmutzler.de>
target/linux/ath79/base-files/etc/board.d/02_network
target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
target/linux/ath79/dts/ar9344_tplink_tl-wdr3600-v1.dts [new file with mode: 0644]
target/linux/ath79/dts/ar9344_tplink_tl-wdr3600.dts [deleted file]
target/linux/ath79/dts/ar9344_tplink_tl-wdr4300-v1.dts [new file with mode: 0644]
target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dts [deleted file]
target/linux/ath79/image/generic-tp-link.mk

index fffb00eca0828cea76fb81834f05336075633793..4aa9999947fe1eb0ece7948be807a5f64ff7e9b0 100755 (executable)
@@ -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"
index e6b6d2f2308cf5fcaa1bad1b45c64216b4281cb9..5a20b84344a88aeafa0b2cde5260de87a88ad4a1 100644 (file)
@@ -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 (file)
index 0000000..42f40d5
--- /dev/null
@@ -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 (file)
index 9f70824..0000000
+++ /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 (file)
index 0000000..f8f05d2
--- /dev/null
@@ -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 (file)
index ba6b4f8..0000000
+++ /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";
-};
index 73275ccf355556d6dbb804a15cbaa18e584795a8..0ae82293bdaba03d909e39513c04cc8d0e920d19 100644 (file)
@@ -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)