From patchwork Thu Aug 18 09:16:26 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: 12946874 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4C22AC28B2B for ; Thu, 18 Aug 2022 09:20:57 +0000 (UTC) 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=RMQVip+3iC969X8XJRjFgSjIVYXgo2nOlxvTIW02tes=; b=Staiwx9ekCORwM tPZgIz0iS5E5cpTcYzRKa0S1piEfEDXJ5P+nflr+4rtZmzE7ucd0J3NL2W9CLFcCMWVQuPo6a2/ym hKmpWE8HgAxSUr/16SXsukiUZ3DwF5JtZKm2Qqm6TTN8k2A6KReON0h6ySfLI/XuYvZeHHBH9dPZ4 98o6diVL28WKPoUTVkDOLCeEQhMVPCPJ9on0C1unBFv9FktefZ8OLQLIsCBiY888v9c0eokQS9+SC y02gsyeRDonC/e0ki5zkIC0kPpfiNMK4SEE24GXZh9WAGDJXLeuiC28Rfp1PPJGCBmv3R5LhOMGYu ScUybs57D3MYOTmoOpBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oObgf-001WAE-O2; Thu, 18 Aug 2022 09:19:39 +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 1oObei-001UIf-Nf; Thu, 18 Aug 2022 09:17:38 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1660814233; cv=none; d=zohomail.com; s=zohoarc; b=YOeSYr9RupVsEGc02qy+WXfHXsy5yMuWb4tukLhIIkK/zd0mty0OLA4AV6GG2n35qBPGoKyw4ltf/fVbpx3EfVbQ8+c4auurV0S8DI9ZFz2F+aGjYi+5xuhido3c4NUV9v13nwpDMHW28KpPhNasOVVICo34LchIlA1Tpi62QQw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1660814233; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=6WCFNVdLELkDaCKJt4wFLENChRk7qUoEcMMckwo+ZtU=; b=KPPa0YQgg7BzXSDTKAqchdhjk0aAVLvvr0aoQApggfRqp3J672CpTE/J4zWHyUAfrcROP2EKHhBOgI0iMpWRU5S4O4JvKvAgAHuFHEXhB17MTIhir4DA25xlEoQzS833AL3LYKUu7m8FEqp1S1zDOqyPtccGkGjVcYC+SskSgKY= 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=1660814233; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=6WCFNVdLELkDaCKJt4wFLENChRk7qUoEcMMckwo+ZtU=; b=gOezG8XRCN9vBophl5IydUxef5k4lSRImFaKjGrjHc8+wOSCDwsWhhWbMwZwDE7Z aa0Ea9Rfu5G7X3XBcfnG68NFK3JHUadF3IxGbOgBrCHIs74DvlY2r2yvyM3a55MwYa6 mmDxIh5CshjWfvy+cjIta4E/OIz/czEmgsakxGpc= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1660814231021988.2191981946787; Thu, 18 Aug 2022 02:17:11 -0700 (PDT) From: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= To: Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sean Wang , Landen Chao , DENG Qingfang , Frank Wunderlich , Luiz Angelo Daros de Luca , Sander Vanheule , =?utf-8?q?Ren=C3=A9_van_Dorst?= , Daniel Golle , erkin.bozoglu@xeront.com, Sergio Paracuellos Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= Subject: [PATCH v3 5/6] dt-bindings: net: dsa: mediatek,mt7530: define phy-mode for switch models Date: Thu, 18 Aug 2022 12:16:26 +0300 Message-Id: <20220818091627.51878-6-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220818091627.51878-1-arinc.unal@arinc9.com> References: <20220818091627.51878-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-20220818_021736_891017_1623562E X-CRM114-Status: UNSURE ( 9.39 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Define acceptable phy-mode values for the CPU port of mt7530 and mt7531 switches. Remove relevant information from the description of the binding. Signed-off-by: Arınç ÜNAL --- .../bindings/net/dsa/mediatek,mt7530.yaml | 61 +++++++++++++++---- 1 file changed, 50 insertions(+), 11 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index b6c5cf4e706b..b36497c4636e 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -49,17 +49,6 @@ description: | * mt7621: phy-mode = "rgmii-txid"; * mt7623: phy-mode = "rgmii"; - CPU-Ports need a phy-mode property: - Allowed values on mt7530 and mt7621: - - "rgmii" - - "trgmii" - On mt7531: - - "1000base-x" - - "2500base-x" - - "rgmii" - - "sgmii" - - properties: compatible: oneOf: @@ -152,6 +141,30 @@ $defs: items: - const: cpu then: + if: + properties: + reg: + const: 5 + then: + properties: + phy-mode: + enum: + - gmii + - mii + - rgmii + else: + properties: + phy-mode: + enum: + - rgmii + - trgmii + + properties: + reg: + enum: + - 5 + - 6 + required: - phy-mode @@ -172,6 +185,32 @@ $defs: items: - const: cpu then: + if: + properties: + reg: + const: 5 + then: + properties: + phy-mode: + enum: + - 1000base-x + - 2500base-x + - rgmii + - sgmii + else: + properties: + phy-mode: + enum: + - 1000base-x + - 2500base-x + - sgmii + + properties: + reg: + enum: + - 5 + - 6 + required: - phy-mode