From patchwork Mon Apr 3 01:19:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 78332 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2006821vqo; Sun, 2 Apr 2023 18:44:54 -0700 (PDT) X-Google-Smtp-Source: AKy350bf0t2MNF4lzOTbTNhtZvbbLEG2/HlR3aS016ke0mpZc9JSEjEdbecwyz6HmvGeR7Ix5W0x X-Received: by 2002:a05:6a20:3545:b0:e4:2a2c:869b with SMTP id f5-20020a056a20354500b000e42a2c869bmr9538334pze.36.1680486294207; Sun, 02 Apr 2023 18:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680486294; cv=none; d=google.com; s=arc-20160816; b=MLMSAVpmjPTkpDv1Xp8YwpcJt3HKaC7QPYtlWG466cNXe5SNFuJPecfCv7a3LlBkT3 eU0baTVzka6kV0+WADi/5QRg0bJpQ8skUr8svbzA4Ym8+YomDdZ06jy2vbTAyVJbyOxv Jwvr0+TT5kLfVww0taVKtMHesZcpOJbTnJ60tPZzNu5SPCQwa9BBPHTkyxZ0OEpHo01/ qcEOyPYRJkqVcdPW4aBHPMvIvvBGTdAOxFO+qOwnFSOcix5OOYiz/Ugwg4LF+UgLRsFG rL0IOvpSCe88INHbfz32IpVXHtSUz7nWo3wOoRpE8QMhy3wO+JYGoMBXB1uqH5d5PWLA XZaw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r2-20020aa79622000000b005a8b3c6b5c1si7475178pfg.245.2023.04.02.18.44.41; Sun, 02 Apr 2023 18:44:54 -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 S231384AbjDCBUn (ORCPT + 99 others); Sun, 2 Apr 2023 21:20:43 -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-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?1762117596447965887?= X-GMAIL-MSGID: =?utf-8?q?1762117596447965887?= 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: