On 7/28/22 07:31, Ian Pangilinan wrote:
From: Ian Pangilinan <braveheart_...@yahoo.com>
Date: Sun, 28 July 2022 11:27:00 +0800
Subject: [PATCH] ramips: add support for Tozed S12 Plus (UNISOC)
Tozed S12 Plus (UNISOC) is a Cat.6 LTE CPE. It is known as ZLT S12 Pro
in some markets.
Product link: https://www.sztozed.com/en/contents/58/84.html
Hardware Highlights:
* SOC: MT7621A 2C4T @ 880MHz
* RAM: DDR3 256MB @ 800MHz
* FLASH: MX25L12805D 16MB SPI NOR
* WLAN0: MT7612E 5GHz 802.11nac 2x2:2 @ 867Mbps
* WLAN1: MT7603E 2.4GHz 802.11bgn 2x2:2 @ 300Mbps
* SWITCH: MT7530 4-port GbE
* WWAN: UNISOC SL8563 Cat.6 LTE
* SIM: 1x Mini-SIM 2FF
* BUTTONS: Reset, WPS, Wi-Fi
* LEDS: Power (Yellow/Blue), Wi-Fi, Data (Red/Blue), Signal1-5,
Telephone
* POWER: 12VDc 2A
There is an existing PR for this device here:
https://github.com/openwrt/openwrt/pull/10321, but the author seems to
have abandoned it after a week of no update in reply to reviewer
suggestions and inquiries. This submission aims to remedy the
shortcomings of that PR and will be made up-to-date by this author.
You should mention "1Conan <m...@1conan.com>" as the original author.
.....
The only non-configurable LEDs are those from each of the switch ports.
They function as intended. I set the yellow and blue power LEDs as
status indicators for OpenWrt. There is also an exported GPIO to reset
the WWAN.
Support fgor WWAN could come at a later date. I have setup LAN4 of the
"for" has a typo.
device as WAN.
Signed-off-by: Ian Pangilinan <braveheart_...@yahoo.com>
---
......
+
+&state_default {
+ gpio {
+ groups = "jtag", "rgmii2", "uart3", "wdt";
+ function = "gpio";
+ };
+};
.....
+
+&switch0 {
+ ports {
+ port@0 {
+ status = "okay";
+ label = "wan";
+
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+ };
+
+ port@1 {
+ status = "okay";
+ label = "lan3";
+ };
+
+ port@2 {
+ status = "okay";
+ label = "lan2";
+ };
+
+ port@4 {
+ status = "okay";
+ label = "lan1";
+ };
+ };
This needs some adaptions, see
https://git.openwrt.org/f1c9afd801380a05a91d979b475c76cc0a67caae
+};
+
.....
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel