From patchwork Wed Nov 30 20:35:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan-Niklas Burfeind X-Patchwork-Id: 1710674 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=uShD6rj6; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aiyionpri.me header.i=@aiyionpri.me header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=EBEngyNl; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NMrdr2bmMz23ng for ; Thu, 1 Dec 2022 07:38:56 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+MzzkNpyyWePEnYr6x5SK8o1HPLgxgVn/8fR9cFYZdE=; b=uShD6rj6sCVuxp VrGqEviHlNWcDMZs0JyiCvnKncS1Mf0qZ42K7bUCDpLjKtbEHOQj7KODsxCxWaMxpkjBPfw4JQGPO NlkAUM6vJiU6cSeKqXslgQIAJc30Tna6od85ZBh3u2M03W9EWSpP4IchF8u0Nx0/LMwDBbtTwIrmv 4BLBaAiZodVNMCYXuVO/v6MyEoFevjH+z8kM10pvZEL+UqTMZ6g7lZ8T8ybFDtYy2LsaeUPI53fEK eqYUoUWVfj+I3YxFNwQLblZ0VnKBurI/298OUhYWr139cEG7GHrCnX+/PeEaOTa3nz41VYAafI3fT dG60tJmSblk9pXwzhmPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0ToG-002TpC-Ca; Wed, 30 Nov 2022 20:36:00 +0000 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0ToB-002TmI-SA for openwrt-devel@lists.openwrt.org; Wed, 30 Nov 2022 20:35:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1669840540; s=strato-dkim-0002; d=aiyionpri.me; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=dbpA5pBu8cZ8BEeyUhro8X7MpvN2Fjvei7/5esYTOrs=; b=EBEngyNleCk7/eREZ6nhdVlH2pDiXgKnV7rhPUZAPZfB1e+CFTZc2mhXtAJBUAZMIU IqJwS19Ddre/W9+KaxwLMTEvaF2jlI8MOvRoVO/G5XdE3X3OXCQ5En1XNcZvaz9R/HSU RlHuHgnDvKscZNeHCTZa7NNSazntPwsEiFYwKM68Jy/Mg/2LXWc5ZA31P+hTYoVEXgy4 gO2pS1z2lQDRZeTzWIkPK0XelDjtO/UlYssEOZOrdNRhQ8q85W76UNHK3jmo7SYpx5wV +CMjS4Qd1V8UZuQvT+k1AIK4pUF3/5FTrX/k8IjZkGjIi4sSgs6qJzNrpf0vmPdPfciQ KHrQ== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":IWkkdEmxcvCtRDtHUQOu48a0Nfy9hOkboq9r6d0vrgVDHZTjCI2AM0yZX6WZJhCkHZRFuMg8nf1GMG7kijYE/kqVHR30W2dfN+Cntg==" X-RZG-CLASS-ID: mo00 Received: from chromia.fritz.box by smtp.strato.de (RZmta 48.2.1 AUTH) with ESMTPSA id qba3cbyAUKZdCAn (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 30 Nov 2022 21:35:39 +0100 (CET) From: Jan-Niklas Burfeind To: openwrt-devel@lists.openwrt.org Cc: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , David Bauer , Jan-Niklas Burfeind Subject: [PATCH v4 1/2] comgt-ncm: add support for quectel modem EC200T-EU Date: Wed, 30 Nov 2022 21:35:29 +0100 Message-Id: <20221130203530.3034127-1-git@aiyionpri.me> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221130_123556_271667_774D1377 X-CRM114-Status: UNSURE ( 6.89 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: context_type is an integer mapping of pdptype: 1: IPV4 2: IPV6 3: IPV4V6 Signed-off-by: Jan-Niklas Burfeind --- package/network/utils/comgt/files/ncm.json | 16 ++++++++++++++++ package/network/utils/comgt/files/ncm.sh | 6 ++++++ 2 files changed, 22 inser [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [85.215.255.25 listed in list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org context_type is an integer mapping of pdptype: 1: IPV4 2: IPV6 3: IPV4V6 Signed-off-by: Jan-Niklas Burfeind --- package/network/utils/comgt/files/ncm.json | 16 ++++++++++++++++ package/network/utils/comgt/files/ncm.sh | 6 ++++++ 2 files changed, 22 insertions(+) diff --git a/package/network/utils/comgt/files/ncm.json b/package/network/utils/comgt/files/ncm.json index b6ad717529..7d9a38fe36 100644 --- a/package/network/utils/comgt/files/ncm.json +++ b/package/network/utils/comgt/files/ncm.json @@ -75,6 +75,22 @@ "finalize": "AT+CGDATA=\\\"M-MBIM\\\",${profile},1", "disconnect": "AT+CGACT=0,${profile}" }, + "quectel": { + "initialize": [ + "AT+CFUN=1" + ], + "configure": [ + "at+qicsgp=${profile},${context_type},\\\"${apn}\\\",\\\"${username}\\\",\\\"${password}\\\",0" + ], + "modes": { + "lte": "AT+QCFG=\\\"nwscanmode\\\",3", + "umts": "AT+QCFG=\\\"nwscanmode\\\",2", + "gsm": "AT+QCFG=\\\"nwscanmode\\\",1", + "auto": "AT+QCFG=\\\"nwscanmode\\\",0" + }, + "connect": "AT+qnetdevctl=1,${profile},1", + "disconnect": "AT+qnetdevctl=0,${profile},0" + }, "\"zte": { "initialize": [ "AT+CFUN=1" diff --git a/package/network/utils/comgt/files/ncm.sh b/package/network/utils/comgt/files/ncm.sh index a2c913ea1d..2f36697487 100644 --- a/package/network/utils/comgt/files/ncm.sh +++ b/package/network/utils/comgt/files/ncm.sh @@ -31,6 +31,8 @@ proto_ncm_setup() { local device ifname apn auth username password pincode delay mode pdptype profile $PROTO_DEFAULT_OPTIONS json_get_vars device ifname apn auth username password pincode delay mode pdptype profile $PROTO_DEFAULT_OPTIONS + local context_type + [ "$metric" = "" ] && metric="0" [ -n "$profile" ] || profile=1 @@ -38,6 +40,10 @@ proto_ncm_setup() { pdptype=$(echo "$pdptype" | awk '{print toupper($0)}') [ "$pdptype" = "IP" -o "$pdptype" = "IPV6" -o "$pdptype" = "IPV4V6" ] || pdptype="IP" + [ "$pdptype" = "IPV4V6" ] && context_type=3 + [ -z "$context_type" -a "$pdptype" = "IPV6" ] && context_type=2 + [ -n "$context_type" ] || context_type=1 + [ -n "$ctl_device" ] && device=$ctl_device [ -n "$device" ] || { From patchwork Wed Nov 30 20:35:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jan-Niklas Burfeind X-Patchwork-Id: 1710673 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=QFBKJj4C; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aiyionpri.me header.i=@aiyionpri.me header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=F23Mo6VL; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NMrdr49Cbz23pC for ; Thu, 1 Dec 2022 07:38:56 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2vDPG/3PDPc+wtZjW2rmnBaZIcqF0fhA0r+7yNQJimA=; b=QFBKJj4CYOnfPi WLII1bgGssbzNU9Zmx1t1aPFLf+nLZdNXzEH5DR25QO/G7R7lzXK4fw1NzIhPEXwUWFYiSluNQqGl D18P/kqIwqMVivSykeXYcERGbB83yirM7/LQm53ueED3ZNFeddiNgBzK3yuZyUqPuAIVNmyNklPh9 92kWZYX8EsG0LlE2/B3Yu59hifFF5KQfj7nT2cgHmoBWLBt2ufTDICtlOKB/SPBHGu1RP7ofZ07cK wFk45VjmWTTyOQFnYbKJlVaI/MPMwBN3RHof/80eV1G92tVmEj1a56b7A0EPRoXCH62AFwJ+TlUwE ps9gg+j9SBg56B7RFvsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0ToT-002Tuq-RX; Wed, 30 Nov 2022 20:36:13 +0000 Received: from mo4-p01-ob.smtp.rzone.de ([81.169.146.167]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p0ToD-002TnR-NW for openwrt-devel@lists.openwrt.org; Wed, 30 Nov 2022 20:35:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1669840542; s=strato-dkim-0002; d=aiyionpri.me; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=kOInoxdN4zkTlaAJQfnR9rwRNQ/zFplgWd0DZTnL5X0=; b=F23Mo6VLr6XeMMEFfdlXKev0j+DdZ3HF+IhxGN5cBz4WqpfiHx2Gzz+hJHAgK8gqlO LvQCAYai8hQTcH6K5HCdfGd9GX3aXxCqGUZFSWjVwjzdgDA8uqwVC4kio1hRbmF3TsB1 WLeF+sMdpqpZzgDSXzPUucgrCT6Srwp0H7DY02pX7VgN39qU2i6h/hb+KGHvW0OD+uy8 enbPVexHblvim21BH+OFItOKfqvmmNY+Wz+21ESNz+PiLZxtIDWGeaN5H21froCOKpFd MlpUwzaO+HosrRexIFQR8tahjnRX4YemLV6AhyCPeOggo+ScUX1B/UdJwvi8/jrBPLrH mJHg== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":IWkkdEmxcvCtRDtHUQOu48a0Nfy9hOkboq9r6d0vrgVDHZTjCI2AM0yZX6WZJhCkHZRFuMg8nf1GMG7kijYE/kqVHR30W2dfN+Cntg==" X-RZG-CLASS-ID: mo00 Received: from chromia.fritz.box by smtp.strato.de (RZmta 48.2.1 AUTH) with ESMTPSA id qba3cbyAUKZgCAo (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 30 Nov 2022 21:35:42 +0100 (CET) From: Jan-Niklas Burfeind To: openwrt-devel@lists.openwrt.org Cc: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , David Bauer , Jan-Niklas Burfeind Subject: [PATCH v4 2/2] ramips: add support for Wavlink WS-WN572HP3 4G Date: Wed, 30 Nov 2022 21:35:30 +0100 Message-Id: <20221130203530.3034127-2-git@aiyionpri.me> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221130203530.3034127-1-git@aiyionpri.me> References: <20221130203530.3034127-1-git@aiyionpri.me> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221130_123557_936262_A76099EB X-CRM114-Status: GOOD ( 15.67 ) X-Spam-Score: -0.9 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Wavlink WS-WN572HP3 4G is an 802.11ac dual-band outdoor router with LTE support. Specifications; * Soc: MT7621DAT * RAM: 128MiB * Flash: NOR 16MiB GD-25Q128ESIG3 * Wi-Fi: * MT7613BEN: 5GHz * MT7603EN: 2.4GHz * Ethernet: 2x 1GbE * USB: None - only used internally * LTE Modem: Quect [...] Content analysis details: (-0.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [81.169.146.167 listed in list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Wavlink WS-WN572HP3 4G is an 802.11ac dual-band outdoor router with LTE support. Specifications; * Soc: MT7621DAT * RAM: 128MiB * Flash: NOR 16MiB GD-25Q128ESIG3 * Wi-Fi: * MT7613BEN: 5GHz * MT7603EN: 2.4GHz * Ethernet: 2x 1GbE * USB: None - only used internally * LTE Modem: Quectel EC200T-EU * UART: 115200 baud * LEDs: * 7 blue at the front * 1 Power * 2 LAN / WAN * 1 Status * 3 RSSI (annotated 4G) * 1 green at the bottom (4G LED) * Buttons: 1 reset button Installation: * press and hold the reset button while powering on the device * keep it pressed for ten seconds * connect to 192.168.10.1 via webbrowser (chromium/chrome works, at least Firefox 106.0.3 does not) * upload the sysupgrade image, confirm the checksum, wait 2 minutes until the device reboots Revert to stock firmware: * same as installation but use the recovery image for WL-WN572HP3 Signed-off-by: Jan-Niklas Burfeind Acked-by: Arınç ÜNAL --- Huge thanks to Znevna, he suggested using gpio adresses modulo banksize. No clue where the system get's the info that bank three is the "LED-gpio-bank" but it works. Other than that I added the missing label-mac-alias to the 5GHz wifi device. Thanks again, I think now I'm okay with this patch. Have a nice evening Jan-Niklas .../dts/mt7621_wavlink_ws-wn572hp3-4g.dts | 184 ++++++++++++++++++ target/linux/ramips/image/mt7621.mk | 17 ++ .../mt7621/base-files/etc/board.d/02_network | 1 + 3 files changed, 202 insertions(+) create mode 100644 target/linux/ramips/dts/mt7621_wavlink_ws-wn572hp3-4g.dts diff --git a/target/linux/ramips/dts/mt7621_wavlink_ws-wn572hp3-4g.dts b/target/linux/ramips/dts/mt7621_wavlink_ws-wn572hp3-4g.dts new file mode 100644 index 0000000000..60d0708a80 --- /dev/null +++ b/target/linux/ramips/dts/mt7621_wavlink_ws-wn572hp3-4g.dts @@ -0,0 +1,184 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "mt7621.dtsi" + +#include +#include + +/ { + compatible = "wavlink,ws-wn572hp3-4g", "mediatek,mt7621-soc"; + model = "Wavlink WS-WN572HP3 4G"; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + aliases { + label-mac-device = &wifi1; + led-boot = &led_status_blue; + led-failsafe = &led_status_blue; + led-running = &led_status_blue; + led-upgrade = &led_status_blue; + }; + + keys { + compatible = "gpio-keys"; + + reset { + label = "Reset Button"; + gpios = <&gpio 18 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + rssihigh { + label = "blue:rssihigh"; + gpios = <&gpio 4 GPIO_ACTIVE_LOW>; + }; + + rssimedium { + label = "blue:rssimedium"; + gpios = <&gpio 17 GPIO_ACTIVE_LOW>; + }; + + rssilow { + label = "blue:rssilow"; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; + }; + + led_status_blue: status_blue { + label = "blue:status"; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; + }; + + // gpio 15 would be Quectels PWRKEY if used + }; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "config"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + compatible = "denx,fit"; + label = "firmware"; + reg = <0x50000 0xf30000>; + }; + + partition@f00000 { + label = "vendor"; + reg = <0xf80000 0x80000>; + read-only; + }; + }; + }; +}; + +&pcie { + status = "okay"; +}; + +&pcie0 { + wifi0: mt76@0,0 { + compatible = "mediatek,mt76"; + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x0>; + }; +}; + +&pcie1 { + wifi1: mt76@0,0 { + compatible = "mediatek,mt76"; + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + }; +}; + +&gmac0 { + nvmem-cells = <&macaddr_factory_e000>; + nvmem-cell-names = "mac-address"; +}; + +&gmac1 { + status = "okay"; + label = "wan"; + phy-handle = <ðphy4>; + + nvmem-cells = <&macaddr_factory_e006>; + nvmem-cell-names = "mac-address"; +}; + +&mdio { + ethphy4: ethernet-phy@4 { + reg = <4>; + }; +}; + +&switch0 { + ports { + port@1 { + status = "okay"; + label = "lan"; + }; + }; +}; + +&state_default { + gpio { + groups = "wdt"; + function = "gpio"; + }; +}; + +&factory { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_e000: macaddr@e000 { + reg = <0xe000 0x6>; + }; + + macaddr_factory_e006: macaddr@e006 { + reg = <0xe006 0x6>; + }; +}; + +&wifi0{ + ieee80211-freq-limit = <2400000 2500000>; +}; + +&wifi1{ + ieee80211-freq-limit = <5000000 6000000>; +}; + diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index 943fc62ecd..4028e43e39 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -2158,6 +2158,23 @@ define Device/wavlink_wl-wn533a8 endef TARGET_DEVICES += wavlink_wl-wn533a8 +define Device/wavlink_ws-wn572hp3-4g + $(Device/dsa-migration) + BLOCKSIZE := 64k + DEVICE_VENDOR := Wavlink + DEVICE_MODEL := WS-WN572HP3 + DEVICE_VARIANT := 4G + IMAGE_SIZE := 15040k + KERNEL_LOADADDR := 0x82000000 + KERNEL := kernel-bin | relocate-kernel 0x80001000 | lzma | \ + fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb + IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \ + append-rootfs | pad-rootfs | check-size | append-metadata + DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e kmod-mt7663-firmware-ap \ + kmod-usb3 kmod-usb-net-rndis comgt-ncm +endef +TARGET_DEVICES += wavlink_ws-wn572hp3-4g + define Device/wevo_11acnas $(Device/dsa-migration) $(Device/uimage-lzma-loader) diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network index c4fe2153ac..b7121db64f 100644 --- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network @@ -50,6 +50,7 @@ ramips_setup_interfaces() ;; asiarf,ap7621-001|\ humax,e10|\ + wavlink,ws-wn572hp3-4g|\ winstars,ws-wn583a6) ucidef_set_interfaces_lan_wan "lan" "wan" ;;