From patchwork Wed Mar 29 16:00:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 76699 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp531862vqo; Wed, 29 Mar 2023 09:18:46 -0700 (PDT) X-Google-Smtp-Source: AKy350Yn/Mgg+guL7S+jIw6mK4g4aYJSx5pnKRxMEqncByX0cnpn2hUvIocl0TNUnLZiiWqgUSab X-Received: by 2002:a17:906:5850:b0:935:3028:ff58 with SMTP id h16-20020a170906585000b009353028ff58mr20520555ejs.55.1680106726619; Wed, 29 Mar 2023 09:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680106726; cv=none; d=google.com; s=arc-20160816; b=J8FbshixfsbTxvet3Nd7dTcH4frm0N4zAxrgZVGt2GG3mr9tf2udgv1Q6CGyAAcGtR WApZs2IUzbOL1m046gdFTSJ9DWxNFdJfpHnBTmTJSZx/mScQMwHHZZU6q1xnYDkq21QH O61qChY+Wq4mFdn3W1FO0NejSRyTRI5Oi0UynfG+BVsZnjHrF0LpLBfuk1Zn+iVj2B0S nMXqLkedKLgM/OaHxmK14TVlZaA7FPbAWHuS7hc50Uku3AY3evMeFtNP26XMEjzGIfRu uCxoRE/nGZsORoqCLm8ik43wfXZovf7DfCHa8JSdYzSBJX9ibT+x9NaiaKhi5v2SYrMb do2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=2ZzZTeTbACO9jNrXV7gkXRIT2/Za9jKiU5TxwHhZyjc=; b=mUcKH0ukx2n97aEHi1fKckg3jVsOjV0pbZqKWJbwOezRklpjWv1E4eAdzpxoBoZ4WM Ejz1r/kidBiELQoGbPpcuMbpB0srjOsOZ/lx6bYstYzwfbEDZMj/4b7t4ZdKstweFkDu 2mhR46nGLRgNg/47BnYQM2V5IGajq/U4rTSHGxaPny2I7/Ft/AUN9MwMzT8WTgMI6r2d OwksMWRTn71DZHSMsdCqSx5gqE/B/sWsSid+4X3+TDoMEHe00/s3sxGcWNJXmSLgP7RA Bc4nC5LjYjsayhNIQnV5RoTLmWeoOygS+qwOMDFu4dQFVKlvC4B5IHHjxuI1ufEefegk JnKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t6-20020a17090616c600b008e0363188c7si31342652ejd.890.2023.03.29.09.18.22; Wed, 29 Mar 2023 09:18:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230151AbjC2QDv (ORCPT + 99 others); Wed, 29 Mar 2023 12:03:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231347AbjC2QDD (ORCPT ); Wed, 29 Mar 2023 12:03:03 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0156F46BF for ; Wed, 29 Mar 2023 09:01:27 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1phYEH-0003V2-1M; Wed, 29 Mar 2023 18:00:54 +0200 Date: Wed, 29 Mar 2023 17:00:49 +0100 From: Daniel Golle To: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Sean Wang , Landen Chao , DENG Qingfang , Philipp Zabel , Krzysztof Kozlowski , Rob Herring Cc: Sam Shih , Lorenzo Bianconi , John Crispin , Felix Fietkau Subject: [RFC PATCH net-next v3 15/15] dt-bindings: net: dsa: mediatek,mt7530: add mediatek,mt7988-switch Message-ID: <9b504e3e88807bfb62022c0877451933d30abeb5.1680105013.git.daniel@makrotopia.org> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761719590824848591?= X-GMAIL-MSGID: =?utf-8?q?1761719590824848591?= Add documentation for the built-in switch which can be found in the MediaTek MT7988 SoC. Signed-off-by: Daniel Golle --- .../bindings/net/dsa/mediatek,mt7530.yaml | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 5ae9cd8f99a24..15953f0e9d1a6 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -11,16 +11,23 @@ maintainers: - Landen Chao - DENG Qingfang - Sean Wang + - Daniel Golle description: | - There are two versions of MT7530, standalone and in a multi-chip module. + There are three versions of MT7530, standalone, in a multi-chip module and + built-into a SoC. MT7530 is a part of the multi-chip module in MT7620AN, MT7620DA, MT7620DAN, MT7620NN, MT7621AT, MT7621DAT, MT7621ST and MT7623AI SoCs. + The MT7988 SoC comes a built-in switch similar to MT7531 as well as 4 Gigabit + Ethernet PHYs and the switch registers are directly mapped into SoC's memory + map rather than using MDIO. It comes with an internally connected 10G CPU port + and 4 user ports connected to the built-in Gigabit Ethernet PHYs. + MT7530 in MT7620AN, MT7620DA, MT7620DAN and MT7620NN SoCs has got 10/100 PHYs and the switch registers are directly mapped into SoC's memory map rather than - using MDIO. The DSA driver currently doesn't support this. + using MDIO. The DSA driver currently doesn't support MT7620 variants. There is only the standalone version of MT7531. @@ -81,6 +88,10 @@ properties: Multi-chip module MT7530 in MT7621AT, MT7621DAT and MT7621ST SoCs const: mediatek,mt7621 + - description: + Built-in switch of the MT7988 SoC + const: mediatek,mt7988-switch + reg: maxItems: 1 @@ -268,6 +279,17 @@ allOf: required: - mediatek,mcm + - if: + properties: + compatible: + const: mediatek,mt7988-switch + then: + $ref: "#/$defs/mt7530-dsa-port" + properties: + gpio-controller: false + mediatek,mcm: false + reset-names: false + unevaluatedProperties: false examples: