--- /dev/null
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "ar9344_tplink_tl-wdr4300.dtsi"
+
+/ {
+ model = "Mercury MW4530R v1";
+ compatible = "mercury,mw4530r-v1", "qca,ar9344";
+};
ucidef_add_switch "switch0" \
"0@eth0" "5:wan" "6@eth1" "4:lan"
;;
+ mercury,mw4530r-v1|\
+ tplink,archer-a7-v5|\
+ tplink,archer-c6-v2|\
+ tplink,archer-c6-v2-us|\
+ tplink,archer-c7-v4|\
+ tplink,archer-c7-v5|\
+ tplink,tl-wdr3600-v1|\
+ tplink,tl-wdr4300-v1|\
+ tplink,tl-wdr4300-v1-il|\
+ tplink,tl-wdr4310-v1)
+ ucidef_add_switch "switch0" \
+ "0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
+ ;;
nec,wg1200cr|\
ubnt,nanostation-ac|\
yuncore,a782|\
ucidef_add_switch "switch0" \
"0@eth0" "2:lan:3" "3:lan:2" "4:lan:1"
;;
- tplink,archer-a7-v5|\
- tplink,archer-c6-v2|\
- tplink,archer-c6-v2-us|\
- tplink,archer-c7-v4|\
- tplink,archer-c7-v5|\
- tplink,tl-wdr3600-v1|\
- tplink,tl-wdr4300-v1|\
- tplink,tl-wdr4300-v1-il|\
- tplink,tl-wdr4310-v1)
- ucidef_add_switch "switch0" \
- "0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
- ;;
tplink,archer-c5-v1|\
tplink,archer-c7-v1|\
tplink,archer-c7-v2|\
wan_mac=$(fconfig -s -r -d $(find_mtd_part "RedBoot config") -n alias/ethaddr)
lan_mac=$(macaddr_add "$wan_mac" 1)
;;
+ mercury,mw4530r-v1|\
+ tplink,tl-wdr3600-v1|\
+ tplink,tl-wdr4300-v1|\
+ tplink,tl-wdr4300-v1-il)
+ base_mac=$(mtd_get_mac_binary u-boot 0x1fc00)
+ wan_mac=$(macaddr_add "$base_mac" 1)
+ ;;
nec,wg800hp)
lan_mac=$(mtd_get_mac_text board_data 0x280)
wan_mac=$(mtd_get_mac_text board_data 0x480)
base_mac=$(mtd_get_mac_binary info 0x8)
wan_mac=$(macaddr_add "$base_mac" 1)
;;
- tplink,tl-wdr3600-v1|\
- tplink,tl-wdr4300-v1|\
- tplink,tl-wdr4300-v1-il)
- base_mac=$(mtd_get_mac_binary u-boot 0x1fc00)
- wan_mac=$(macaddr_add "$base_mac" 1)
- ;;
trendnet,tew-823dru)
lan_mac=$(mtd_get_mac_text mac 0x4)
wan_mac=$(mtd_get_mac_text mac 0x18)
glinet,gl-mifi)
migrate_leds ":net=:3g4g"
;;
+mercury,mw4530r-v1|\
+tplink,archer-c7-v2|\
+tplink,tl-wdr3600-v1|\
+tplink,tl-wdr4300-v1|\
+tplink,tl-wdr4300-v1-il|\
+tplink,tl-wdr4310-v1)
+ migrate_leds ":blue:=:green:"
+ ;;
tplink,archer-c25-v1|\
tplink,archer-c58-v1|\
tplink,archer-c59-v1|\
tplink,tl-wr902ac-v1)
migrate_leds "^$boardonly:=tp-link:"
;;
-tplink,archer-c7-v2|\
-tplink,tl-wdr3600-v1|\
-tplink,tl-wdr4300-v1|\
-tplink,tl-wdr4300-v1-il|\
-tplink,tl-wdr4310-v1)
- migrate_leds ":blue:=:green:"
- ;;
tplink,re355-v1)
migrate_leds "re355:=tp-link:"
;;
endef
TARGET_DEVICES += meraki_mr16
+define Device/mercury_mw4530r-v1
+ $(Device/tplink-8mlzma)
+ SOC := ar9344
+ DEVICE_VENDOR := Mercury
+ DEVICE_MODEL := MW4530R
+ DEVICE_VARIANT := v1
+ DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
+ TPLINK_HWID := 0x45300001
+ SUPPORTED_DEVICES += tl-wdr4300
+endef
+TARGET_DEVICES += mercury_mw4530r-v1
+
define Device/nec_wg1200cr
SOC := qca9563
DEVICE_VENDOR := NEC