Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp727036rwn; Thu, 8 Sep 2022 08:02:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR5a2/o1YpQBayOfRk8z5Bz8uwWrFy8q+2AhbBAuvsf2j6UBqNeqbHw9CfG4P/Or6w9vUPPa X-Received: by 2002:a65:6d0f:0:b0:42b:42f8:efe0 with SMTP id bf15-20020a656d0f000000b0042b42f8efe0mr8482263pgb.197.1662649332730; Thu, 08 Sep 2022 08:02:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662649332; cv=none; d=google.com; s=arc-20160816; b=gs/dlb1Q7/goBf5WNw0qf7UUp/HmiwHYOnti/+RStAwOLafBovOQBXm+1ChxKdGKO8 sfR/n7Eca8ECzcyQQ5Tujxgd5kM38di5OUX2ppF4oZSHl745wXO30PT8GAekffQx2OZr zr+xe90uUw+ZanPC/0Xn4689nOXPLJkYAIEXtb6iNp0oq3kdDStL/TWqIx3e4oxYoiSO OrIPSzhoYmtLZqF8b9A2dW0g3jExMfElDYMKEimLZP8kKKJYGGjEl4NESNewAyhHsPys IRVpN/5dVIqYhCpRHMpco65n+VvJylf7u+PrrQGY8OwtUhqftNdMlf9neAlTZzQDByFq ijWw== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=zhDS9KW7sHnj2SLt+jmcaCzMtxvUOZtFt25clbGHtkY=; b=UDWYhII+aPv0MnqiYYUELq1J4w1JBptaC4+ngS3UMYn+WUKDkrT6b06a+LgL8q1uib FRxpBIZ5nY3Yxxq/Cp7fSJJJ0mq+GAn6DhEO2Vh1F1MC56ppC3Ua1WeHzzHXBRnMSiMZ hu8GHfeB4nk/GaLKSP3dDoWQYK8ZNcw1we58t/zUQnTyY5p4NNJOVP47j/wIznKxNIpg b4EenMngPijBmbAFxvkCTLevitiE9jn95K2VLmNt70CQRoSzhjJeygON4h49yC/2jhHJ GVYM9NaDT3ZGqpl6zh5ygvoYkoldztfJonmFejrhH41k3XkrubywpVJmAFznMWYglhzj JvaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fUundy2r; 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 l18-20020a170903245200b00170a89f0d8asi5594675pls.310.2022.09.08.08.01.54; Thu, 08 Sep 2022 08:02:12 -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=fUundy2r; 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 S231172AbiIHOip (ORCPT + 99 others); Thu, 8 Sep 2022 10:38:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231337AbiIHOim (ORCPT ); Thu, 8 Sep 2022 10:38:42 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03B4646620 for ; Thu, 8 Sep 2022 07:38:39 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id by6so20131901ljb.11 for ; Thu, 08 Sep 2022 07:38:39 -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:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=zhDS9KW7sHnj2SLt+jmcaCzMtxvUOZtFt25clbGHtkY=; b=fUundy2rLCNtVjL2ivpaZrq0KS9s4lvGmQUzywYHHgCLaXfAPbOHWd9FVCy2ktr25d odNznrQiMl8TqKL03Fa4DGvcJXprQk22h+zOpAMReZ0CTjpWkTQxrIfSFkfRvx9LHvgP lKcZw4uhVvG3YLYYRJfAT2ht2AKcH9WAKomYAHYX0hECQE+xJ4VrM8G7MtvjqLoZIBYG oxxnBDhXODk1bd6XBj2UHYvwSq4GkepYvwtofh6/9gzYS/k4+9yRwmdk8QDu99mL9tmi 4gYUJOcy8Wm5wb0nHfgh18Nua4r38r6ngIr0XdXRyCBsVih38CyhNh3nsJlIGwbMcCVJ ZmfA== 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:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=zhDS9KW7sHnj2SLt+jmcaCzMtxvUOZtFt25clbGHtkY=; b=YwG/KkctSb5wf5iJmOhb731BN+HtW/NtkDpP2dID1sUCUFjbaOWm/lCHbhB4LaICRH /BR4aTS5rNvHl4L/HET8ji9DKpzZWJAwjf/KdORBeXqIEk/9QH/w3RuTVsUrKX2Ravk3 fhnngd7qb2KECEd5sbfulhyHqpEeSQLm48lcBpocK7tuzXaa9U2i1kW8QaFjyKv3/Rci sKuOPhyhQScsc1DnsYqb+gDDzcKWtoWwFKaY/L0z+X8LAOgd5d3E98yOjc6OTyHiuvFq 7GYtHluqj5GFfR8PNyDJoMqYTmHiMGP6I5PhzIpCr4HyxMKbTQlZegmxIv2/X5eders0 dERA== X-Gm-Message-State: ACgBeo398X3y9uAfKMlSFUptPe4aus/hE5TcqYuwiWBzEuZqNnERFW+9 osqLOgkvA8K1GVAM3syS3+0WYw== X-Received: by 2002:a2e:a549:0:b0:25f:e5b8:a826 with SMTP id e9-20020a2ea549000000b0025fe5b8a826mr2714575ljn.207.1662647917912; Thu, 08 Sep 2022 07:38:37 -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 m9-20020a056512358900b004979df1c1fasm1582163lfr.61.2022.09.08.07.38.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Sep 2022 07:38:37 -0700 (PDT) Message-ID: Date: Thu, 8 Sep 2022 16:38:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH 1/4] dt-bindings: net: qcom,ethqos: Convert bindings to yaml Content-Language: en-US To: Bhupesh Sharma , devicetree@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, agross@kernel.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, netdev@vger.kernel.org, Bjorn Andersson , Rob Herring , Vinod Koul , David Miller References: <20220907204924.2040384-1-bhupesh.sharma@linaro.org> <20220907204924.2040384-2-bhupesh.sharma@linaro.org> From: Krzysztof Kozlowski In-Reply-To: <20220907204924.2040384-2-bhupesh.sharma@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 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,T_SCC_BODY_TEXT_LINE 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 07/09/2022 22:49, Bhupesh Sharma wrote: > Convert Qualcomm ETHQOS Ethernet devicetree binding to YAML. > > Cc: Bjorn Andersson > Cc: Rob Herring > Cc: Vinod Koul > Cc: David Miller > Signed-off-by: Bhupesh Sharma Thank you for your patch. There is something to discuss/improve. > --- > .../devicetree/bindings/net/qcom,ethqos.txt | 66 --------- > .../devicetree/bindings/net/qcom,ethqos.yaml | 139 ++++++++++++++++++ You need to update maintainers - old path. > 2 files changed, 139 insertions(+), 66 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/net/qcom,ethqos.txt > create mode 100644 Documentation/devicetree/bindings/net/qcom,ethqos.yaml > > diff --git a/Documentation/devicetree/bindings/net/qcom,ethqos.txt b/Documentation/devicetree/bindings/net/qcom,ethqos.txt > deleted file mode 100644 > index 1f5746849a71..000000000000 > --- a/Documentation/devicetree/bindings/net/qcom,ethqos.txt > +++ /dev/null > @@ -1,66 +0,0 @@ > -Qualcomm Ethernet ETHQOS device > - > -This documents dwmmac based ethernet device which supports Gigabit > -ethernet for version v2.3.0 onwards. > - > -This device has following properties: > - > -Required properties: > - > -- compatible: Should be one of: > - "qcom,qcs404-ethqos" > - "qcom,sm8150-ethqos" > - > -- reg: Address and length of the register set for the device > - > -- reg-names: Should contain register names "stmmaceth", "rgmii" > - > -- clocks: Should contain phandle to clocks > - > -- clock-names: Should contain clock names "stmmaceth", "pclk", > - "ptp_ref", "rgmii" > - > -- interrupts: Should contain phandle to interrupts > - > -- interrupt-names: Should contain interrupt names "macirq", "eth_lpi" > - > -Rest of the properties are defined in stmmac.txt file in same directory > - > - > -Example: > - > -ethernet: ethernet@7a80000 { > - compatible = "qcom,qcs404-ethqos"; > - reg = <0x07a80000 0x10000>, > - <0x07a96000 0x100>; > - reg-names = "stmmaceth", "rgmii"; > - clock-names = "stmmaceth", "pclk", "ptp_ref", "rgmii"; > - clocks = <&gcc GCC_ETH_AXI_CLK>, > - <&gcc GCC_ETH_SLAVE_AHB_CLK>, > - <&gcc GCC_ETH_PTP_CLK>, > - <&gcc GCC_ETH_RGMII_CLK>; > - interrupts = , > - ; > - interrupt-names = "macirq", "eth_lpi"; > - snps,reset-gpio = <&tlmm 60 GPIO_ACTIVE_LOW>; > - snps,reset-active-low; > - > - snps,txpbl = <8>; > - snps,rxpbl = <2>; > - snps,aal; > - snps,tso; > - > - phy-handle = <&phy1>; > - phy-mode = "rgmii"; > - > - mdio { > - #address-cells = <0x1>; > - #size-cells = <0x0>; > - compatible = "snps,dwmac-mdio"; > - phy1: phy@4 { > - device_type = "ethernet-phy"; > - reg = <0x4>; > - }; > - }; > - > -}; > diff --git a/Documentation/devicetree/bindings/net/qcom,ethqos.yaml b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml > new file mode 100644 > index 000000000000..f05df9b0d106 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml > @@ -0,0 +1,139 @@ > +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/qcom,ethqos.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Ethernet ETHQOS device > + > +maintainers: > + - Bhupesh Sharma > + > +description: > + This binding describes the dwmmac based Qualcomm ethernet devices which > + support Gigabit ethernet (version v2.3.0 onwards). > + > + So, this file documents platform glue layer for dwmmac stmmac based Qualcomm > + ethernet devices. > + > +allOf: > + - $ref: "snps,dwmac.yaml#" No need for quotes. > + > +properties: > + compatible: > + enum: > + - qcom,qcs404-ethqos > + - qcom,sm8150-ethqos > + > + reg: true I think both devices use two reg spaces. > + > + reg-names: > + minItems: 1 Why allowing only one item? > + items: > + - const: stmmaceth > + - const: rgmii > + > + interrupts: true This should be specific/fixed. > + > + interrupt-names: true This should be specific/fixed. > + > + clocks: > + minItems: 1 > + maxItems: 4 Why such flexibility? > + > + clock-names: > + minItems: 1 > + items: > + - const: stmmaceth > + - const: pclk > + - const: ptp_ref > + - const: rgmii > + > + iommus: > + minItems: 1 > + maxItems: 2 Aren't we using only one MMU? > + > + mdio: true > + > + phy-handle: true > + > + phy-mode: true > + > + snps,reset-gpio: true > + > + snps,tso: > + $ref: /schemas/types.yaml#/definitions/flag > + description: > + Enables the TSO feature otherwise it will be managed by MAC HW capability register. > + > + power-domains: true > + > + resets: true > + > + rx-fifo-depth: true > + > + tx-fifo-depth: true You do not list all these properties, because you use unevaluatedProperties. Drop all of these "xxx :true". > + > +required: > + - compatible > + - clocks > + - clock-names Best regards, Krzysztof