diff options
author | Rocco Folino <rocco@folino.io> | 2018-07-02 07:02:56 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-07-02 07:03:21 +0200 |
commit | 4ff019722cf9663c3f2645927041b0a248ff1d0b (patch) | |
tree | 6495747d57dcb6778493fa39be22375ac6349e22 /target/linux/ath79/base-files | |
parent | 9b575288ebdda335502219528c40d26b8e339376 (diff) | |
download | upstream-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')
-rwxr-xr-x | target/linux/ath79/base-files/etc/board.d/01_leds | 8 | ||||
-rwxr-xr-x | target/linux/ath79/base-files/etc/board.d/02_network | 7 |
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" |