From patchwork Mon Feb 14 07:00:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 1592264 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=j+3zUKvT; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=arinc9.com header.i=arinc.unal@arinc9.com header.a=rsa-sha256 header.s=zmail header.b=MahdCRZ+; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JxwbS2zCFz9s8s for ; Mon, 14 Feb 2022 18:20:03 +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=tMZ3HVLO2mzAIYS7Pg5pf3YwQ/lUa9Y728pAwYaLXHU=; b=j+3zUKvTas1Ca3 pGxXnxahOQ0seKTE8EFiNHYiFQkpbxpkLfsyVz41qfU2tB8juo6kjL/lS8x2ABqThH5J92bDpdeQw eI2Fd7BMXFHtEyp72JH5+W2+HdWaD88JW2oHKl3u7TBQX5G/2ABOuFyscwwGaAfkOjnNbAksQelsx BQn4KZRJqNOrYoviCFcUItw0p5Hspl2XyIWjdC//+db2y90m513yqU6yF/ByX6fJ8+WIDZt9nhgMh VD7Wt2xLwT4nfiXjEOCbZRI4d0nlaOQtqfrLs6JQLI/mYVPI6ik9BNjgVs86+KmUvA69CVv9eYt67 bHE8GRNYJ7VZ4hYp27rQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJVbR-00Ddpa-Gk; Mon, 14 Feb 2022 07:16:54 +0000 Received: from sender4-op-o14.zoho.com ([136.143.188.14]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJVMi-00DXdk-26 for openwrt-devel@lists.openwrt.org; Mon, 14 Feb 2022 07:01:42 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1644822065; cv=none; d=zohomail.com; s=zohoarc; b=cGvhhEhifaHy/oPy6xuEXhVNmn3Ah/SaBJPKqo72dAwinKwzs0EQZF5JxmHgLiy2s5uy5KiD7VeN7K22JUKSy9nzMjzaoXfHwMclrML4PrhCXSDsyklUIkVxRRaaggJQQpwpK51iXzcbuj2Cod4RSUCdqP5joUKOphwTPA1CKpY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1644822065; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=L1POuu3uy+dofHgz3yz/QN6rbNEQy3U5NTw+LaUSmlk=; b=QuXLkkVmQjLZkAhNPLzaBGc+UmZUr1px0i2blEOFgwwJy7qJQx/RO3tEtKCVZdc4rJFKEk1M4ZJp9PGMT/07H4WI+a1mvap2/TmuHXuN5VTa8r4625vpmHZ8P4J3CDyxdE3J/CYvB8Wfo/mHZms+i2gDYYK9In1342dFCtTptsg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1644822065; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=L1POuu3uy+dofHgz3yz/QN6rbNEQy3U5NTw+LaUSmlk=; b=MahdCRZ+DecSS16kf3SEAEbmD/rbzPMvKCuKHOmgUnYzCMNtv5WCdvNNAfosskvs O+5kwmrzbOdWE6dfMQFcVNjHblQ3sVDlG3liGcyEAlqpyXXsCpRQC0i8tX1HQ145RVn IqKTNYymFn0985v0zgi/XYyWVTv9TjlxhBPq0W5o= Received: from arinc9-PC.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1644822064513688.6532987507715; Sun, 13 Feb 2022 23:01:04 -0800 (PST) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: DENG Qingfang , Sander Vanheule , Stijn Tintel , Chuanhong Guo , Rosen Penev , Daniel Golle , Sungbo Eo Cc: openwrt-devel@lists.openwrt.org, =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= Subject: [PATCH v4 0/3] ramips: mt7621-dts: fix dtc warning, links and pinctrl Date: Mon, 14 Feb 2022 10:00:37 +0300 Message-Id: <20220214070040.5091-1-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220213_230140_205849_B5FD67EC X-CRM114-Status: UNSURE ( 9.05 ) 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: Hey everyone, With this patch series: - Fix dtc warning on switch@1f node - Enable flow control on port@6 node to match the other side, GMAC0. - Add pinctrl properties on ethernet node on the mt7621.dtsi. Overwrite [...] 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 [136.143.188.14 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an 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 Hey everyone, With this patch series: - Fix dtc warning on switch@1f node - Enable flow control on port@6 node to match the other side, GMAC0. - Add pinctrl properties on ethernet node on the mt7621.dtsi. Overwrite pinctrl-0 property without rgmii2_pins on devicetrees which use the rgmii2 pins as GPIO (22 - 33). Give gpio function to rgmii2 pin group on mt7621_tplink_archer-x6-v3.dtsi which uses GPIO 28. Now that pinctrl properties are properly defined on the ethernet node, GMAC1 will start working. The third patch opens the path to mux PHY 0 or 4 (usually one of it is a wan port) directly to the second GMAC of the SoC. In a future patch, this can be done on the majority of the devicetrees to give the wan port its dedicated 1 Gbps link. I might do that once this series is applied. Traffic flow on GMAC1 was tested on an mt7621a board with these modes: External phy <-> GMAC1 PHY 0/4 <-> GMAC1 The patch series was tested on a TP-Link RE650 v1 which rgmii2 pin group is given gpio function along with some other devicetrees. Cheers. Arınç v4: Fix pinctrl-0 property items to comply with Sander’s suggestion. v3: Send with less recipients and add Sungbo Eo’s Tested-by tag on the second patch. v2: Overwrite pinctrl-0 property for devicetrees which give gpio function to the rgmii2 pin group. Arınç ÜNAL (3): ramips: mt7621-dts: fix switch@1f warnings ramips: mt7621-dts: enable flow control on port@6 ramips: mt7621-dts: add pinctrl properties for ethernet target/linux/ramips/dts/mt7621.dtsi | 7 ++++--- target/linux/ramips/dts/mt7621_alfa-network_quad-e4g.dts | 4 ++++ target/linux/ramips/dts/mt7621_buffalo_wsr-1166dhp.dts | 4 ++++ target/linux/ramips/dts/mt7621_buffalo_wsr-600dhp.dts | 4 ++++ target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts | 4 ++++ target/linux/ramips/dts/mt7621_firefly_firewrt.dts | 4 ++++ target/linux/ramips/dts/mt7621_gnubee_gb-pc1.dts | 4 ++++ target/linux/ramips/dts/mt7621_gnubee_gb-pc2.dts | 4 ++++ target/linux/ramips/dts/mt7621_mediatek_ap-mt7621a-v60.dts | 4 ++++ target/linux/ramips/dts/mt7621_mediatek_mt7621-eval-board.dts | 4 ++++ target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts | 4 ++++ target/linux/ramips/dts/mt7621_mtc_wr1201.dts | 4 ++++ target/linux/ramips/dts/mt7621_netgear_ex6150.dts | 4 ++++ target/linux/ramips/dts/mt7621_sercomm_na502.dts | 4 ++++ target/linux/ramips/dts/mt7621_telco-electronics_x1.dts | 4 ++++ target/linux/ramips/dts/mt7621_tplink_archer-x6-v3.dtsi | 6 +++++- target/linux/ramips/dts/mt7621_tplink_re350-v1.dts | 4 ++++ target/linux/ramips/dts/mt7621_tplink_rexx0-v1.dtsi | 4 ++++ target/linux/ramips/dts/mt7621_ubnt_edgerouter-x.dtsi | 4 ++++ target/linux/ramips/dts/mt7621_wavlink_wl-wn531a6.dts | 4 ++++ target/linux/ramips/dts/mt7621_wevo_w2914ns-v2.dtsi | 4 ++++ target/linux/ramips/dts/mt7621_winstars_ws-wn583a6.dts | 4 ++++ target/linux/ramips/dts/mt7621_xzwifi_creativebox-v1.dts | 4 ++++ target/linux/ramips/dts/mt7621_zbtlink_zbt-wg1602.dtsi | 4 ++++ target/linux/ramips/dts/mt7621_zbtlink_zbt-wg2626.dts | 4 ++++ target/linux/ramips/dts/mt7621_zbtlink_zbt-wg3526.dtsi | 4 ++++ target/linux/ramips/dts/mt7621_zyxel_nr7101.dts | 4 ++++ 27 files changed, 109 insertions(+), 4 deletions(-)