aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/base-files/etc/board.d/01_leds
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/board.d/01_leds
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/board.d/01_leds')
-rwxr-xr-xtarget/linux/ath79/base-files/etc/board.d/01_leds8
1 files changed, 8 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