diff --git a/target/linux/ramips/dts/mt7628an_tplink_re205-v3.dts b/target/linux/ramips/dts/mt7628an_tplink_re205-v3.dts new file mode 100644 index 00000000000..f9390b1540d --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_tplink_re205-v3.dts @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "mt7628an_tplink_re200.dtsi" + +/ { + compatible = "tplink,re205-v3", "mediatek,mt7628an-soc"; + model = "TP-Link RE205 v3"; + + /delete-node/ leds; + + leds { + compatible = "gpio-leds"; + + led_power: power { + function = LED_FUNCTION_POWER; + color = ; + gpios = <&gpio 39 GPIO_ACTIVE_LOW>; + }; + + wifi5g { + function = LED_FUNCTION_WLAN_5GHZ; + color = ; + gpios = <&gpio 40 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; + }; + + wifi2g { + function = LED_FUNCTION_WLAN_2GHZ; + color = ; + gpios = <&gpio 41 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + + signal_blue { + label = "blue:signal"; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; + }; + + signal_red { + label = "red:signal"; + gpios = <&gpio 43 GPIO_ACTIVE_LOW>; + }; + }; +}; diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk index 656820be145..fc81266da94 100644 --- a/target/linux/ramips/image/mt76x8.mk +++ b/target/linux/ramips/image/mt76x8.mk @@ -636,6 +636,16 @@ define Device/tplink_re200-v4 endef TARGET_DEVICES += tplink_re200-v4 +define Device/tplink_re205-v3 + $(Device/tplink-safeloader) + IMAGE_SIZE := 7808k + DEVICE_MODEL := RE205 + DEVICE_VARIANT := v3 + DEVICE_PACKAGES := kmod-mt76x0e + TPLINK_BOARD_ID := RE205-V3 +endef +TARGET_DEVICES += tplink_re205-v3 + define Device/tplink_re220-v2 $(Device/tplink-safeloader) IMAGE_SIZE := 7808k diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds index 5a0e0ab2148..da3ef154c08 100644 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds @@ -91,6 +91,9 @@ tplink,tl-mr3020-v3|\ tplink,tl-wa801nd-v5) ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0" ;; +tplink,re205-v3) + ucidef_set_led_netdev "lan" "lan" "blue:signal" "eth0" + ;; tplink,re365-v1) ucidef_set_led_netdev "lan" "lan" "blue:lan" "eth0" ;; diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network index 63abb14d139..fd8c086a85e 100644 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network @@ -24,6 +24,7 @@ ramips_setup_interfaces() tplink,re200-v2|\ tplink,re200-v3|\ tplink,re200-v4|\ + tplink,re205-v3|\ tplink,re220-v2|\ tplink,re305-v1|\ tplink,re305-v3|\