Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp838338rwl; Wed, 29 Mar 2023 09:05:58 -0700 (PDT) X-Google-Smtp-Source: AKy350aBFYKrqK4+fju1GF8MrZUKZkmjSjLbqr+RBGzTSGePLMzHgGQMEJC/L20kP/0r5nWGV901 X-Received: by 2002:a17:90a:2b81:b0:23f:2486:5b53 with SMTP id u1-20020a17090a2b8100b0023f24865b53mr2720294pjd.17.1680105958213; Wed, 29 Mar 2023 09:05:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680105958; cv=none; d=google.com; s=arc-20160816; b=eBbbeYTbjwY+lW33vRXsVwzXfozYK6ZagQYt/R3+GUgEEJNlCkeJgWS5AlAr5UT3JG aCYr6jX0iikNpSa8GdUqA3zwbKWsRzZPRdmhr1l+aQtTLFYnyQG9VbkOpTYkIBU6hm6V N5BfqFGqXVMfIB+3KkGiAkmNqCKEHzHbeKrSQY4gI34Z53Dp2eZMzklWJXKSJOJ1d5G3 Tisf29hLTrJbOkAaG8buusU9CQ3JugHRbUxGu7GyNRnrLHnFLPwU0kaPI51phqHHUGHN ++t6Lh9BNNYcasmxAu261DVaciycEflN+FMhF/3/r0IMykcn1nNaxtY5wEcTkf+YfqBm 8FNg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jx8-20020a170903138800b001a1c551bcf9si25390104plb.106.2023.03.29.09.05.42; Wed, 29 Mar 2023 09:05:58 -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 S229874AbjC2QDv (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-Type: text/plain; charset=us-ascii 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 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: -- 2.39.2