aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/generic
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-11-10 14:16:32 +0000
committerDaniel Golle <daniel@makrotopia.org>2022-11-10 21:35:34 +0000
commite586de8dbf00fac72a37177ba08f74bb1091dd86 (patch)
tree88d02f55ad3d5639ef1a1708fef5eea8df11671e /target/linux/ath79/generic
parent04b8ad60fd92b375cf661a56afb853344c95ca99 (diff)
downloadupstream-e586de8dbf00fac72a37177ba08f74bb1091dd86.tar.gz
upstream-e586de8dbf00fac72a37177ba08f74bb1091dd86.tar.bz2
upstream-e586de8dbf00fac72a37177ba08f74bb1091dd86.zip
ath79: add support for Teltonika RUT300
Add support for the Teltonika RUT300 rugged industrial Ethernet router Hardware -------- SoC: Qualcomm Atheros QCA9531 RAM: 64M DDR2 (EtronTech EM68B16CWQK-25IH) FLASH: 16M SPI-NOR (Winbond W25Q128) ETH: 4x 100M LAN (QCA9533 internal AR8229 switch, eth0) 1x 100M WAN (QCA9533 internal PHY, eth1) UART: 115200 8n1, same debug port as other Teltonika devices USB: 1 single USB 2.0 host port BUTTON: Reset LED: 1x green power LED (always on) 5x yellow Ethernet port LED (controlled by Linux) WAN port LED is used as boot status and upgrade indicator as the power LED cannot be controlled in software. Use the *-factory.bin file to intially flash the device using the vendor firmware's Web-UI. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/ath79/generic')
-rw-r--r--target/linux/ath79/generic/base-files/etc/board.d/01_leds7
-rw-r--r--target/linux/ath79/generic/base-files/etc/board.d/02_network5
2 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/01_leds b/target/linux/ath79/generic/base-files/etc/board.d/01_leds
index 606a194f7e..7fe9343876 100644
--- a/target/linux/ath79/generic/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/generic/base-files/etc/board.d/01_leds
@@ -337,6 +337,13 @@ teltonika,rut230-v1)
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x04"
;;
+teltonika,rut300)
+ ucidef_set_led_netdev "wan" "WAN" "yellow:wan" "eth1"
+ ucidef_set_led_switch "lan1" "LAN1" "yellow:lan1" "switch0" "0x02"
+ ucidef_set_led_switch "lan2" "LAN2" "yellow:lan2" "switch0" "0x10"
+ ucidef_set_led_switch "lan3" "LAN3" "yellow:lan3" "switch0" "0x08"
+ ucidef_set_led_switch "lan4" "LAN4" "yellow:lan4" "switch0" "0x04"
+ ;;
tplink,archer-a7-v5|\
tplink,archer-c7-v4|\
tplink,archer-c7-v5)
diff --git a/target/linux/ath79/generic/base-files/etc/board.d/02_network b/target/linux/ath79/generic/base-files/etc/board.d/02_network
index e47f66c2f2..339005f051 100644
--- a/target/linux/ath79/generic/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network
@@ -193,6 +193,11 @@ ath79_setup_interfaces()
ucidef_add_switch "switch0" \
"0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
;;
+ teltonika,rut300)
+ ucidef_set_interface_wan "eth1"
+ ucidef_add_switch "switch0" \
+ "0@eth0" "1:lan:1" "2:lan:4" "3:lan:3" "4:lan:2"
+ ;;
buffalo,wzr-hp-g300nh-rb|\
buffalo,wzr-hp-g300nh-s|\
dlink,dir-825-b1|\