mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 13:48:06 +00:00
0a79c77a4e
Aka "Kroks KNdRt31R19". Ported from v19.07.8 of OpenWrt fork: see https://github.com/kroks-free/openwrt for support of other models. Device specs: - CPU: MediaTek MT7628AN - Flash: 16MB SPI NOR - RAM: 64MB - Bootloader: U-Boot - Ethernet: 1x 10/100 Mbps - 2.4 GHz: b/g/n SoC - mPCIe: 1x (usually equipped with an LTE modem by vendor) - Buttons: reset - LEDs: 1x Modem, 1x Injector, 1x Wi-Fi, 1x Status Flashing: - sysupgrade image via stock firmware WEB interface. - U-Boot launches a WEB server if Reset button is held during power up. Server IP: 192.168.1.1 SIM card switching: The device supports up to 4 SIM cards - 2 locally on board and 2 on remote SIM-injector. By default, 1-st local SIM is active. To switch to e.g. 1-st remote SIM: echo 0 > /sys/class/gpio/modem1power/value echo 0 > /sys/class/gpio/modem1sim1/value echo 1 > /sys/class/gpio/modem1rsim1/value echo 1 > /sys/class/gpio/modem1power/value MAC addresses as verified by OEM firmware: vendor OpenWrt source LAN eth0 factory 0x4 (label) 2g wlan0 label Signed-off-by: Kroks <dev@kroks.ru> [butirsky@gmail.com: port to master; drop dts-v1] Signed-off-by: Andrey Butirsky <butirsky@gmail.com>
65 lines
1.1 KiB
Plaintext
65 lines
1.1 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "mt7628an_kroks.dtsi"
|
|
|
|
/ {
|
|
compatible = "kroks,kndrt31r19", "mediatek,mt7628an-soc";
|
|
model = "Kroks KNdRt31R19";
|
|
|
|
leds {
|
|
status {
|
|
label = "red:status";
|
|
};
|
|
|
|
wifi {
|
|
label = "yellow:wifi";
|
|
};
|
|
};
|
|
|
|
gpio_export {
|
|
compatible = "gpio-export";
|
|
#size-cells = <0>;
|
|
|
|
modem1power {
|
|
gpio-export,name = "modem1power";
|
|
gpio-export,output = <0>;
|
|
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
modem1sim1 {
|
|
gpio-export,name = "modem1sim1";
|
|
gpio-export,output = <1>;
|
|
gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
modem1sim2 {
|
|
gpio-export,name = "modem1sim2";
|
|
gpio-export,output = <0>;
|
|
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
modem1rsim1 {
|
|
gpio-export,name = "modem1rsim1";
|
|
gpio-export,output = <0>;
|
|
gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
modem1rsim2 {
|
|
gpio-export,name = "modem1rsim2";
|
|
gpio-export,output = <0>;
|
|
gpios = <&gpio 40 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&esw {
|
|
mediatek,portmap = <0x2f>;
|
|
};
|
|
|
|
&state_default {
|
|
gpio {
|
|
groups = "i2s", "i2c", "p4led_an", "p3led_an", "wled_an";
|
|
function = "gpio";
|
|
};
|
|
};
|