From patchwork Sun Feb 13 08:15:23 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: 1592085 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=d6TxqioU; 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=CIScKV9H; 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 4JxL23459cz9sFr for ; Sun, 13 Feb 2022 19:22:33 +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=WNlbK4OPN5P9pBZEE2ymJthrfcdT0nUOS1DOetyBIM0=; b=d6TxqioUDXRJr4 2TufyAS4OwR7qE2Goq/pzYHquPnpklNVvQqrIXrD+ZUlIAP59UMIKF4MLx+fkh5yEYeFk3cSVuvB8 0pfGuFuGlKicSnImlK3S2ypPl2CizBhKTI5EL6ZsnDI4h+7YEiFShUR5bEiv5O6JLO+UM0n1vw71n /lLCr+nY6IRHdIYwSuigBP5a/vWISx6KvYKrZ0WG0EXWlbcJD1rybsT73g9mvcuPn2BOmrkaxXxAO G3pzhB2f6sXzkkwGdwNITH/7ju/pVEmXdexSdUw87tjAbTRAN8ef7WBxnif186pxwuCTWdV/jC3gw riLDiQk3w/68Dx4CKJvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nJA3L-00BCVB-UM; Sun, 13 Feb 2022 08:16:16 +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 1nJA36-00BCRd-Mg for openwrt-devel@lists.openwrt.org; Sun, 13 Feb 2022 08:16:01 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1644740145; cv=none; d=zohomail.com; s=zohoarc; b=fKrGYWwyxl5AYm2BerkVh0FJKYBrLqyGDsovLTEEmR3WKavZPi/mo6x9P22b1BxoVATg9WCA4DUfvT++AOgFmP0yETciKMNUqJwEvnqOvNnXA977uGF3FuHRXeliki4TtItDwYy8lf+GIVVjsYnP8PlbbuznP3tIHHgf5rb+vLA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1644740145; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=tJeswRusjjK8aBz5tX1WS7j7okCIg2hu3mXvb6mazvU=; b=X6cBMJL/o93LwRR3p5AC4Hun4UtbSrIuGCeRILZ4/kKlHtGS6J0Sgt9JgeyaHoFixLGSI9+X+eIiaL6KEPeOu27ODyE4VWhbouX3O7Im5ZaJHOfo3jP5hSrehhqXxDzdL2A8WYhBSbumcCIPjL6nVQO8IcEF23oQCqd1OerJ57s= 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=1644740144; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=tJeswRusjjK8aBz5tX1WS7j7okCIg2hu3mXvb6mazvU=; b=CIScKV9HvYZ/DrXvjG28bl9e2am9obO8KS7TAiihC03rvy4QIFZrCiXCU5R4RMRD GIZQ4qWlVxTVp02kvl/esJXy5RvOkyAVrfllRMY9BD9foSV7yo2DRl6Vg4ruKfovXki 7Q+jktoNoCfl5NMD4RecvjVga3lvhcaJ+PHuWCiY= Received: from arinc9-PC.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1644740144233362.2782807938678; Sun, 13 Feb 2022 00:15:44 -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 v3 1/3] ramips: mt7621-dts: fix switch@1f warnings Date: Sun, 13 Feb 2022 11:15:23 +0300 Message-Id: <20220213081525.1865-2-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220213081525.1865-1-arinc.unal@arinc9.com> References: <20220213081525.1865-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220213_001600_815588_104DB091 X-CRM114-Status: UNSURE ( 6.08 ) 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: Remove reg property from ports node to fix this warning: Warning (unit_address_vs_reg): /ethernet@1e100000/mdio-bus/switch@1f/ports: node has a reg or ranges property, but no unit name Another warning surfaces afterwards. Remove #address-cells and #size-cells from switch@1f node to fix this warning: 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 Remove reg property from ports node to fix this warning: Warning (unit_address_vs_reg): /ethernet@1e100000/mdio-bus/switch@1f/ports: node has a reg or ranges property, but no unit name Another warning surfaces afterwards. Remove #address-cells and #size-cells from switch@1f node to fix this warning: Warning (avoid_unnecessary_addr_size): /ethernet@1e100000/mdio-bus/switch@1f: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property Signed-off-by: Arınç ÜNAL --- target/linux/ramips/dts/mt7621.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi index b784a9d60c..ec95223a62 100644 --- a/target/linux/ramips/dts/mt7621.dtsi +++ b/target/linux/ramips/dts/mt7621.dtsi @@ -481,8 +481,6 @@ switch0: switch@1f { compatible = "mediatek,mt7621"; - #address-cells = <1>; - #size-cells = <0>; reg = <0x1f>; mediatek,mcm; resets = <&rstctrl 2>; @@ -494,7 +492,6 @@ ports { #address-cells = <1>; #size-cells = <0>; - reg = <0>; port@0 { status = "disabled";