Skip to content

Commit 7264a91

Browse files
simsassshauke
authored andcommitted
ramips: mt76x8: add Teltonika RUT951/RUT901 support
Specification: - MediaTek MT7628AN SoC - 128 MB of RAM EtronTech EM68C16CWQG-25IH - 16MB of Flash Winbond W25Q128 SPI - 4x 10/100 Mbps Ethernet, with passive PoE support on LAN1 - MediaTek MT7628AN 2.4 GHz 802.11n WiFi - Quectel EC25-EUX 4G cat 4 modem (RUT951) or Quectel EC200A-EU 4G cat 4 modem (RUT901) - 1x Digital input - 1x Digital output - 2x SIM slot (can be swapped via GPIO) - eSIM (depends on hardware configuration, can be swapped via GPIO) GPIO: - 1 button (Reset) - 7 LEDs (power, status green/red, RSSI 1,2,3,4,5) - 5 Modem control (power button, reset, status, SIM select, eSIM select) - 1 Digital input - 1 Digital output Flashing via OEM WebUI: 1. Download the firmware image *-squashfs-factory.bin 2. Upload firmware image via OEM WebUI firmware update, do not keep settings To revert back to OEM firmware: https://wiki.teltonika-networks.com/view/Bootloader_menu Mobile data connection: Quectel EC200A-EU send command to modem: echo -ne 'AT+QNETDEVCTL=3,1\r\n' > /dev/ttyUSB2 Create DHCP interface with usb0 device. Quectel EC25-EUX create proto qmi interface. Signed-off-by: Simonas Tamošaitis <[email protected]> Link: openwrt/openwrt#18788 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent 85e300c commit 7264a91

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2+
3+
#include "mt7628an_teltonika_rut9xx.dtsi"
4+
5+
/ {
6+
compatible = "teltonika,rut9x1", "mediatek,mt7628an-soc";
7+
model = "Teltonika RUT951/RUT901";
8+
};

target/linux/ramips/image/mt76x8.mk

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,24 @@ define Device/tama_w06
638638
endef
639639
TARGET_DEVICES += tama_w06
640640

641+
define Device/teltonika_rut9x1
642+
DEVICE_VENDOR := Teltonika
643+
DEVICE_MODEL := RUT951
644+
DEVICE_ALT0_VENDOR := Teltonika
645+
DEVICE_ALT0_MODEL := RUT901
646+
IMAGE_SIZE := 15424k
647+
BLOCKSIZE := 64k
648+
DEVICE_PACKAGES := uqmi kmod-mt76x2 kmod-usb2 kmod-usb-ohci \
649+
kmod-usb-serial-option kmod-spi-gpio kmod-gpio-nxp-74hc164 \
650+
kmod-i2c-mt7628 kmod-usb-net-cdc-ether
651+
IMAGES += factory.bin
652+
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
653+
append-rootfs | pad-rootfs | check-size | append-teltonika-metadata rut9m \
654+
"mod1":"2c7c_6005" "mod2":"TLA2021" "mod3":"CH343" "mod4":"esim" "mod5":"ala440"
655+
IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size | append-metadata
656+
endef
657+
TARGET_DEVICES += teltonika_rut9x1
658+
641659
define Device/teltonika_rut9x6
642660
DEVICE_VENDOR := Teltonika
643661
DEVICE_MODEL := RUT956

target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ teltonika,rut241)
8282
ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x02"
8383
ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01"
8484
;;
85+
teltonika,rut9x1|\
8586
teltonika,rut9x6)
8687
ucidef_set_led_switch "lan1" "lan1" "green:lan-1" "switch0" "0x1"
8788
ucidef_set_led_switch "lan2" "lan2" "green:lan-2" "switch0" "0x2"

target/linux/ramips/mt76x8/base-files/etc/board.d/02_network

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ ramips_setup_interfaces()
179179
ucidef_add_switch "switch0" \
180180
"0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6t@eth0"
181181
;;
182+
teltonika,rut9x1|\
182183
teltonika,rut9x6)
183184
ucidef_add_switch "switch0" \
184185
"0:lan" "1:lan" "2:lan" "4:wan" "6t@eth0"

target/linux/ramips/mt76x8/base-files/etc/board.d/03_gpio_switches

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ teltonika,rut241)
1515
ucidef_add_gpio_switch "modem_power" "Modem power" "modem_power" "1"
1616
ucidef_add_gpio_switch "modem_reset" "Modem reset" "modem_reset" "0"
1717
;;
18+
teltonika,rut9x1)
19+
ucidef_add_gpio_switch "digital_output" "Digital output 1" "digital_output1" "0"
20+
ucidef_add_gpio_switch "modem_power" "Modem power button" "modem_power" "1"
21+
ucidef_add_gpio_switch "modem_reset" "Modem reset" "modem_reset" "0"
22+
ucidef_add_gpio_switch "sim_sel" "SIM select" "sim_sel" "0"
23+
ucidef_add_gpio_switch "esim_sel" "eSIM select" "esim_sel" "0"
24+
;;
1825
teltonika,rut9x6)
1926
ucidef_add_gpio_switch "digital_output" "Digital output 1" "digital_output1" "0"
2027
ucidef_add_gpio_switch "digital_output" "Digital output 2" "digital_output2" "0"

0 commit comments

Comments
 (0)