Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3211667rwb; Mon, 3 Oct 2022 11:16:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5iJHO12l9GDSim4B2WbzptZS4w5F0CJ9wGeGdLG1iGRuTL2ZzajVZAQ8lpqyybaLecGRS6 X-Received: by 2002:a63:1258:0:b0:439:c1e0:fab6 with SMTP id 24-20020a631258000000b00439c1e0fab6mr20059813pgs.377.1664821009573; Mon, 03 Oct 2022 11:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664821009; cv=none; d=google.com; s=arc-20160816; b=aFDfVKJb3XRb47/k4HOGp119qcaHoHl+9hf3g1Timxr5aeylOymRVC2Nvl/E9O5E58 pPTsQ6qTFIUQqiX5TPhkmJlVILv64SWGOreCcbpUSYv6xN7O5kOP8sgU/kAP5Ca8g6bj cJXAt0+ReFF5TQbl16M5F3AfsVIMDVWKYUw9+rAaAX8l4CajU8GURbDuhX61pjV4tlCk voJyajN3Cd7CTtDLpPnm79JIpmfbpA7aaE7vmhAS4iJbbyuGmv4359gVgieKkeWlLs1R NY0sMu4d4NyEMNxgkIoc0+dSULRV2L+dVd2ijV72T93fp+6STYolcwPr6z/reJYekouC A+vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=6ipOceJJFj+HqQfrKHGaIq1ts4QULB2eTqa5pJ5AnGQ=; b=yFjINSn88E0deR6fuUtjAEB9iX9tqalfcQfuGtl954zDqbHHn8PMHNJu7+RBRCFc13 Z+Zx1E9941yOXaF64JLF6zwI8ZyyP5J7slBx79/7Wggl8Q/ib+xqaM4orkGFCR71/Cmk 90++2Rb5MjIASWYJT7wyYtEtIQjsqiNcFEitGsC38fUshztSHPfwRDRT6ltGfnNRyS4T /V56VSQ3zqqWvRln7xlh7thqjGoCnsZGtosAMotguiYFVYoePMW335o1lJhNEPma7z20 aL4o69p1d92tMI6vt3D/62vpCd/hvn1aEqcV0FBDpDBo5e5m2TnNv+WAXxd7PN9aUWMA PW7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pb6u00JY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x19-20020a170902e05300b0017c65c3152esi7484404plx.60.2022.10.03.11.16.35; Mon, 03 Oct 2022 11:16:49 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Pb6u00JY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229713AbiJCRtf (ORCPT + 99 others); Mon, 3 Oct 2022 13:49:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbiJCRtX (ORCPT ); Mon, 3 Oct 2022 13:49:23 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D034B3D5B5 for ; Mon, 3 Oct 2022 10:48:59 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id o7so10409914lfk.7 for ; Mon, 03 Oct 2022 10:48:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=6ipOceJJFj+HqQfrKHGaIq1ts4QULB2eTqa5pJ5AnGQ=; b=Pb6u00JY40ihS6lWhfk/8psqfFcrlLbyTM/67KyV5kttLM7RrD9ABhM8bgO6Y+82fW o++6jBccSvlcyn7dtnthJEhrgj3tGxEos3d6Rr464yNqf4l+ToeDY8OsJQLshB5LdsNw SiafljJe0dTksArzYypzHGqVehjBcYRFpZhKvq8azF38Vm/iwVYXQ4rfefk7MpaS9/fP 3O/k45mUMWaaluWL/TLIEC75WiOxhevhXPmUATvp0eccltZYD47iWKZzKUsdf/65vX1Z gO3O0zJhUtPHUSOsU/Q34YDuVGE++QkSNob7FNppTV5sUXw5kku0zuPP2MOvvtPtcc64 vHSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=6ipOceJJFj+HqQfrKHGaIq1ts4QULB2eTqa5pJ5AnGQ=; b=B+XUgn/WJoXtKAXv9cF4kzq1edDlvdW6uzUHnSYl8jrZcdipdLq/r3mYHE3QbWXFYn /al0RVfwaukg+F6rseSwPcsD/VO7N08Ot8YtKd+xjH1VYUFrvPwZ1DDaYuGMVIt2BvsC ngBMOBQ7tgpoS5vMAPGL+T5M1ngC6PqYzDp62b3W5g7VPAIPhKhDqG67M+I7clzxe/6a H8qD/BLGS2yBSuG1CT3QS190wNcw5x+FmDGBYhOp4JoSkRhOurnOXJzBO09gRfBYovpQ COUNXbp4nb7Fp2FF8JQXVfywbQAItILi/6qTwd3SKvYN1LG9IgMTvFfrDIVRPykDKC7M nDjA== X-Gm-Message-State: ACrzQf0vOC9M1IgHI76+4rp+dKqeGMYg9lfI95eCnyaW5PogAo+UnAjB QUL56otLHKyYJfNzxX5i/+zydV5oXmMzkA== X-Received: by 2002:a05:6512:22cf:b0:49e:860d:8f4e with SMTP id g15-20020a05651222cf00b0049e860d8f4emr7370759lfu.584.1664819337829; Mon, 03 Oct 2022 10:48:57 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id g14-20020a056512118e00b0049e9122bd1bsm1543958lfr.164.2022.10.03.10.48.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Oct 2022 10:48:57 -0700 (PDT) Message-ID: Date: Mon, 3 Oct 2022 19:48:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [net-next][PATCH v4] dt-bindings: dsa: Add lan9303 yaml Content-Language: en-US To: Jerry Ray , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , UNGLinuxDriver@microchip.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221003164624.4823-1-jerry.ray@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <20221003164624.4823-1-jerry.ray@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 03/10/2022 18:46, Jerry Ray wrote: > Adding the dt binding yaml for the lan9303 3-port ethernet switch. > The microchip lan9354 3-port ethernet switch will also use the > same binding. > > Signed-off-by: Jerry Ray > --- > v3->v4: > - Addressed v3 community feedback > v2->v3: > - removed cpu labels > - now patching against latest net-next > v1->v2: > - fixed dt_binding_check warning > - added max-speed setting on the switches 10/100 ports. > --- > .../devicetree/bindings/net/dsa/lan9303.txt | 100 ------------- > .../bindings/net/dsa/microchip,lan9303.yaml | 134 ++++++++++++++++++ > MAINTAINERS | 8 ++ > 3 files changed, 142 insertions(+), 100 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/net/dsa/lan9303.txt > create mode 100644 Documentation/devicetree/bindings/net/dsa/microchip,lan9303.yaml > > diff --git a/Documentation/devicetree/bindings/net/dsa/lan9303.txt b/Documentation/devicetree/bindings/net/dsa/lan9303.txt > deleted file mode 100644 > index 46a732087f5c..000000000000 > --- a/Documentation/devicetree/bindings/net/dsa/lan9303.txt > +++ /dev/null > @@ -1,100 +0,0 @@ > -SMSC/MicroChip LAN9303 three port ethernet switch > -------------------------------------------------- > - > -Required properties: > - > -- compatible: should be > - - "smsc,lan9303-i2c" for I2C managed mode > - or > - - "smsc,lan9303-mdio" for mdio managed mode > - > -Optional properties: > - > -- reset-gpios: GPIO to be used to reset the whole device > -- reset-duration: reset duration in milliseconds, defaults to 200 ms > - > -Subnodes: > - > -The integrated switch subnode should be specified according to the binding > -described in dsa/dsa.txt. The CPU port of this switch is always port 0. > - > -Note: always use 'reg = <0/1/2>;' for the three DSA ports, even if the device is > -configured to use 1/2/3 instead. This hardware configuration will be > -auto-detected and mapped accordingly. > - > -Example: > - > -I2C managed mode: > - > - master: masterdevice@X { > - > - fixed-link { /* RMII fixed link to LAN9303 */ > - speed = <100>; > - full-duplex; > - }; > - }; > - > - switch: switch@a { > - compatible = "smsc,lan9303-i2c"; > - reg = <0xa>; > - reset-gpios = <&gpio7 6 GPIO_ACTIVE_LOW>; > - reset-duration = <200>; > - > - ports { > - #address-cells = <1>; > - #size-cells = <0>; > - > - port@0 { /* RMII fixed link to master */ > - reg = <0>; > - ethernet = <&master>; > - }; > - > - port@1 { /* external port 1 */ > - reg = <1>; > - label = "lan1"; > - }; > - > - port@2 { /* external port 2 */ > - reg = <2>; > - label = "lan2"; > - }; > - }; > - }; > - > -MDIO managed mode: > - > - master: masterdevice@X { > - phy-handle = <&switch>; > - > - mdio { > - #address-cells = <1>; > - #size-cells = <0>; > - > - switch: switch-phy@0 { > - compatible = "smsc,lan9303-mdio"; > - reg = <0>; > - reset-gpios = <&gpio7 6 GPIO_ACTIVE_LOW>; > - reset-duration = <100>; > - > - ports { > - #address-cells = <1>; > - #size-cells = <0>; > - > - port@0 { > - reg = <0>; > - ethernet = <&master>; > - }; > - > - port@1 { /* external port 1 */ > - reg = <1>; > - label = "lan1"; > - }; > - > - port@2 { /* external port 2 */ > - reg = <2>; > - label = "lan2"; > - }; > - }; > - }; > - }; > - }; > diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,lan9303.yaml b/Documentation/devicetree/bindings/net/dsa/microchip,lan9303.yaml > new file mode 100644 > index 000000000000..ca6cbe83ba75 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/dsa/microchip,lan9303.yaml > @@ -0,0 +1,134 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/dsa/microchip,lan9303.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: LAN9303 Ethernet Switch Series > + > +allOf: > + - $ref: dsa.yaml# > + > +maintainers: > + - UNGLinuxDriver@microchip.com > + > +properties: > + compatible: > + oneOf: > + - enum: > + - smsc,lan9303-mdio > + - microchip,lan9354-mdio > + - enum: > + - smsc,lan9303-i2c > + - microchip,lan9354-i2c This still does not make sense. It is one enum. Drop oneOf. > + > + reg: > + maxItems: 1 > + > + reset-gpios: > + description: Optional reset line > + maxItems: 1 > + > + reset-duration: > + description: Reset duration in milliseconds > + default: 200 This is a friendly reminder during the review process. It seems my previous comments were not fully addressed. Maybe my feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them. Thank you. > + > +required: > + - compatible > + - reg > + Best regards, Krzysztof