Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3920065rwl; Sun, 2 Apr 2023 18:48:43 -0700 (PDT) X-Google-Smtp-Source: AKy350YLZoYw5a9R5K2zEMMaTgWg1bRYp7akfmcAe/s08Sc8WciXITihx+K252H9D0ti7E0B44Ex X-Received: by 2002:a17:90b:2247:b0:237:40a5:7acf with SMTP id hk7-20020a17090b224700b0023740a57acfmr38239914pjb.33.1680486523433; Sun, 02 Apr 2023 18:48:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680486523; cv=none; d=google.com; s=arc-20160816; b=mcJojBDSwYu3oLDSaICtNrqD/KWCToqo8+zOkN/3WSse9FM5O7Z2GoA9yVgE1Tk3+x IT8Y6UHs3LHJeaGaUb86gAn4H+dBvIF7VKbych30gP/GmXl9aMq6L8P1PbAsAFIYwTAq 2K7RhpmyXiMUcC4PpKEATeyB89Fcj2WE5jyZrI2iK0J1FezBXQ41ksTGWKgzCYL27fm5 cE0RTQtHyvpPU4WiuBrK6A85zmSOFtYt5YBWZZCPzxrjx/IeJSNII/J3MWQb71AwkGXY 3THKyMIBrUGkZ10ZvrmHJTao8PTYURseUo8IOW0mPjnV19VgKV5VVrnWsDbr5MHUdeX4 DaNQ== 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=jlf7/+JS7YrXJdR83SP1YoDEG7wsuJl2V4KJUNGjP1s=; b=zx/CQiuINPgvGo6KBQBKYRAVSsIfAV410EOU6gChHF9c3YmBE5Xi3kctVpOmWW7dnn uP1cDHHxFyPQzfoPqPRpAHWFqSgZX6UDMtHCQXXGi5lbWkw2aRCeYjXYOIZcxjpjwWhq 4IhfCm2H1VQMD6lffgnrNED+9fgCMlsTNUq4jkj/854vmebu3PO47Qf1A6hxVEIxJqO0 JEOfC1llGqDYc5KNzodyH9YXGWkjiRV830hs5HQkD5ez18qwZkCyWLtT6pg2IaKs6mia QMLXvV2D2csjQw47KhiRlc9QbKc+dAtSWZGSUy8L+lO2fRnuF49jCI+wNp5Yta577sGr N1sg== 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 m2-20020a17090a414200b0023eb779a705si11349114pjg.64.2023.04.02.18.48.32; Sun, 02 Apr 2023 18:48:43 -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 S231295AbjDCBUm (ORCPT + 99 others); Sun, 2 Apr 2023 21:20:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231378AbjDCBU2 (ORCPT ); Sun, 2 Apr 2023 21:20:28 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77190BDDB; Sun, 2 Apr 2023 18:19:59 -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 1pj8rT-0004p3-1d; Mon, 03 Apr 2023 03:19:55 +0200 Date: Mon, 3 Apr 2023 02:19:51 +0100 From: Daniel Golle To: devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , 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 , Russell King , =?utf-8?B?QXLEsW7DpyDDnG5hbA==?= Cc: Sam Shih , Lorenzo Bianconi , John Crispin , Felix Fietkau Subject: [PATCH net-next v2 14/14] dt-bindings: net: dsa: mediatek,mt7530: add mediatek,mt7988-switch Message-ID: 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..8d6dfed11d8d6 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 with a built-in switch similar to MT7531 as well as four + Gigabit Ethernet PHYs. The switch registers are directly mapped into the SoC's + memory map rather than using MDIO. The switch got 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.40.0