Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1896172rwl; Thu, 6 Apr 2023 02:57:39 -0700 (PDT) X-Google-Smtp-Source: AKy350YlrDLU69tmeqzD8LTCJqGGCqtZNQdM/Nu33hJ4zJF+YgJ9bVcrsdxPNs7dlT1eQfW1a7IF X-Received: by 2002:a05:6a00:1d8b:b0:626:9a1:3731 with SMTP id z11-20020a056a001d8b00b0062609a13731mr5332477pfw.7.1680775059022; Thu, 06 Apr 2023 02:57:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680775059; cv=none; d=google.com; s=arc-20160816; b=ic362eHRuriEW7Le/a0+mTLjeDw+Z0P3mwsas8x53V9Y2XDpkqFbbwd0AvsO7twMkK 6hrA73IQo1EgiH9lL2ftrFVAm7JjjuWTPKVXKZJ07GzK7WExcUX/txGQrmi6yjJX+QHc nppvf68yisGM0H9V0Ig/0O2IT9UU+9aIpospRY05wyN4RvTzi4f51BeE+iEcJgNNDudi 9P7TRytb1TbpHTePpBNefRRlLXdkH68OhVjXiiHHsEPuLXjq9qUmQEypJYJrLdDUxu/8 kIlMq4TvlmPbOGf6CgFRaI3l49AKqGbphgzjPFGgHQdHICJzFlzGZUn/RrwmZqsdeYTG 46Fw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=EMAAzjoxghzuYPYu2mwwJpHwylO5OVQJssvnVC4wWic=; b=Afx9zjWUTYENQKIzzTKyTDP/8vOD4CHL1F6Ba2YHe7W/bAA+iBXwnGnp8bqngyRpmn uvFLk+iPOuEPUQUIjVdUvu8mp23UgmxjrcERlCkfr7CksmULDpQkEGu2tPmFE0LdfA7A w/eW0t3HxppMDqqNyq20iroJt+eyxzrAWyA6lPRUGOCXToGBFwaMPdiGCYoksqvY6FkD 0dcXgP14TpayIto1MIuWgR292+lhHZfIu4/eBLZPdg4cbOjNzgDgq7btWyNGD6DbuUyv 37gCm+VkD2r6lcaOBRtAyKQr0LMavdpgQ5CZW2Jle6Td7BF7XYQesdlwIVJCr8zKTY+l ewng== 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 g18-20020a632012000000b0050fa6fbde46si888071pgg.492.2023.04.06.02.57.27; Thu, 06 Apr 2023 02:57:38 -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 S236651AbjDFJuQ (ORCPT + 99 others); Thu, 6 Apr 2023 05:50:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236982AbjDFJts (ORCPT ); Thu, 6 Apr 2023 05:49:48 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D400561AE; Thu, 6 Apr 2023 02:48:16 -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 1pkMCs-0000AJ-2t; Thu, 06 Apr 2023 11:47:03 +0200 Date: Thu, 6 Apr 2023 10:46:59 +0100 From: Daniel Golle To: arinc9.unal@gmail.com Cc: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Landen Chao , DENG Qingfang , Sean Wang , =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , erkin.bozoglu@xeront.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH 3/7] dt-bindings: net: dsa: mediatek,mt7530: add port bindings for MT7988 Message-ID: References: <20230406080141.22924-1-arinc.unal@arinc9.com> <20230406080141.22924-3-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230406080141.22924-3-arinc.unal@arinc9.com> 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 On Thu, Apr 06, 2023 at 11:01:37AM +0300, arinc9.unal@gmail.com wrote: > From: Arınç ÜNAL > > The switch on MT7988 has got only port 6 as a CPU port. The only phy-mode > to be used is internal. Add this. > > Some bindings are incorrect for this switch now, so move them to more > specific places. > > Address the incorrect information of which ports can be used as a user > port. Any port can be used as a user port. > > Signed-off-by: Arınç ÜNAL Acked-by: Daniel Golle > --- > .../bindings/net/dsa/mediatek,mt7530.yaml | 63 ++++++++++++++----- > 1 file changed, 46 insertions(+), 17 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml > index 7045a98d9593..605888ce2bc6 100644 > --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml > +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml > @@ -160,22 +160,6 @@ patternProperties: > "^(ethernet-)?port@[0-9]+$": > type: object > > - properties: > - reg: > - description: > - Port address described must be 5 or 6 for CPU port and from 0 to 5 > - for user ports. > - > - allOf: > - - if: > - required: [ ethernet ] > - then: > - properties: > - reg: > - enum: > - - 5 > - - 6 > - > required: > - compatible > - reg > @@ -186,9 +170,21 @@ $defs: > "^(ethernet-)?ports$": > patternProperties: > "^(ethernet-)?port@[0-9]+$": > + properties: > + reg: > + description: > + Port address described must be 5 or 6 for the CPU port. User > + ports can be 0 to 6. > + > if: > required: [ ethernet ] > then: > + properties: > + reg: > + enum: > + - 5 > + - 6 > + > if: > properties: > reg: > @@ -212,9 +208,21 @@ $defs: > "^(ethernet-)?ports$": > patternProperties: > "^(ethernet-)?port@[0-9]+$": > + properties: > + reg: > + description: > + Port address described must be 5 or 6 for the CPU port. User > + ports can be 0 to 6. > + > if: > required: [ ethernet ] > then: > + properties: > + reg: > + enum: > + - 5 > + - 6 > + > if: > properties: > reg: > @@ -235,6 +243,27 @@ $defs: > - 2500base-x > - sgmii > > + mt7988-dsa-port: > + patternProperties: > + "^(ethernet-)?ports$": > + patternProperties: > + "^(ethernet-)?port@[0-9]+$": > + properties: > + reg: > + description: > + Port address described must be 6 for the CPU port. User ports > + can be 0 to 3, and 6. > + > + if: > + required: [ ethernet ] > + then: > + properties: > + reg: > + const: 6 > + > + phy-mode: > + const: internal > + > allOf: > - $ref: dsa.yaml#/$defs/ethernet-ports > - if: > @@ -285,7 +314,7 @@ allOf: > compatible: > const: mediatek,mt7988-switch > then: > - $ref: "#/$defs/mt7530-dsa-port" > + $ref: "#/$defs/mt7988-dsa-port" > properties: > gpio-controller: false > mediatek,mcm: false > -- > 2.37.2 >