aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/base-files/etc
diff options
context:
space:
mode:
authorRocco Folino <rocco@folino.io>2018-07-02 07:02:56 +0200
committerJohn Crispin <john@phrozen.org>2018-07-02 07:03:21 +0200
commit4ff019722cf9663c3f2645927041b0a248ff1d0b (patch)
tree6495747d57dcb6778493fa39be22375ac6349e22 /target/linux/ath79/base-files/etc
parent9b575288ebdda335502219528c40d26b8e339376 (diff)
downloadupstream-4ff019722cf9663c3f2645927041b0a248ff1d0b.tar.gz
upstream-4ff019722cf9663c3f2645927041b0a248ff1d0b.tar.bz2
upstream-4ff019722cf9663c3f2645927041b0a248ff1d0b.zip
ath79: port TP-Link TL-WR741ND v4 and TL-WR740ND v4
This patch ports the TP-Link TL-WR741ND v4 and TL-WR740ND v4 to the ath79 target. Because the two devices share the same hw layout, this patch adds a common .dtsi which is included by the two .dts. Signed-off-by: Rocco Folino <rocco@folino.io>
Diffstat (limited to 'target/linux/ath79/base-files/etc')
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/01_leds8
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/02_network7
2 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/01_leds b/target/linux/ath79/base-files/etc/board.d/01_leds
index 29416ad83e..3edffaff74 100755
--- a/target/linux/ath79/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/base-files/etc/board.d/01_leds
@@ -45,6 +45,14 @@ case "$board" in
ucidef_set_led_switch "lan3" "LAN3" "$boardname:green:lan3" "switch0" "0x08"
ucidef_set_led_switch "lan4" "LAN4" "$boardname:green:lan4" "switch0" "0x10"
;;
+"tplink,tl-wr741nd-v4"|\
+"tplink,tl-wr740nd-v4")
+ ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
+ ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
+ ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
+ ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
+ ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
+ ;;
esac
board_config_flush
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 579ccc5bd3..26b3752824 100755
--- a/target/linux/ath79/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/base-files/etc/board.d/02_network
@@ -70,6 +70,13 @@ ath79_setup_interfaces()
"0@eth1" "1:lan" "2:lan" "3:lan" "4:lan"
;;
+ "tplink,tl-wr741nd-v4"|\
+ "tplink,tl-wr740nd-v4")
+ ucidef_set_interfaces_wan "eth1"
+ ucidef_add_switch "switch0" \
+ "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
+ ;;
+
"tplink,tl-wr1043nd-v1")
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "5@eth0"