Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10735689rwl; Thu, 12 Jan 2023 01:42:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXuRCksXBaQADDuWURuN83WaCeyeey8hKp0yjSXp1FmOE9tbzeujCtR7mVqnSKJ8pKKRsAGI X-Received: by 2002:a17:902:7205:b0:194:62d9:129e with SMTP id ba5-20020a170902720500b0019462d9129emr634589plb.22.1673516563673; Thu, 12 Jan 2023 01:42:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673516563; cv=none; d=google.com; s=arc-20160816; b=L17NoCLbQXJk2quvt63YqVWJ0TSnrd+6ic/yr5wEbuT+F0U026WfTKs6yWBGHc8QI/ Of6o4K+5g8rUxUfG9rEbCEZpVJcNT2dgWc5wDrrJu9PFQwRy6FEOdSEL+nS3zfGoNV2H aNLvC32M5PmoFfLyBrWje+42IX/S1tA+zvjEv3/HqRMYUl6mMpnnRQgK2yNBwpa2DML2 8H0VhNMHgAaTXtYMRRNxWJAvjHWXhjKBKvxxP1EoeyhKcG8x0/j/Q5ZwgLkj0q6RbYnv ZJpW9trClKRLyuavOX5SXL2wyNI3vmH5Tzxag/ogk0lZVgzP3SUx3V5DqSJV7flP3cRd CEgA== 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=9UOvk5uyQGsRUZs22U+SL6M32TRGuh0Bg7yw7vCjuLU=; b=GJy1VlFXpIm54QKezul5SNCYyvnPr/IziCUJ+pZPR2MSTVLJ9/0CRhtk0vuW58Ugxa 72bz3Gsj+s9NfK5yLrlpw0LbCdUgfPgMUI6j4RS2jGfC9GWlIP1vrs/yjkDP5Kx18hFZ 2Sma8HlTB8yfNynfVkCx7K275Ito6uOdiirJrlH5OP6Zx+wBmB8hZ8lIHvLQf4rYpug6 pBG9orRgBZ/1M1H/qWSniQrCYfcjAk+4LZB8o2ye9I1eqN8HxND2hv4x5l6FwB2f1VL+ GP8PVWwjRqHz8t3JArKyo/KJiVQ5gqtmjbJYizZuPxBBVdwu7twyAZoK6e8jRUfAwCSY 1k7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C58mc0fb; 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 e12-20020a170902ed8c00b00188a7401d89si2400375plj.481.2023.01.12.01.42.37; Thu, 12 Jan 2023 01:42:43 -0800 (PST) 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=C58mc0fb; 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 S229851AbjALJae (ORCPT + 50 others); Thu, 12 Jan 2023 04:30:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240117AbjALJ3r (ORCPT ); Thu, 12 Jan 2023 04:29:47 -0500 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8182350F4E for ; Thu, 12 Jan 2023 01:25:17 -0800 (PST) Received: by mail-ej1-x631.google.com with SMTP id u9so43302862ejo.0 for ; Thu, 12 Jan 2023 01:25:17 -0800 (PST) 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:message-id:reply-to; bh=9UOvk5uyQGsRUZs22U+SL6M32TRGuh0Bg7yw7vCjuLU=; b=C58mc0fbpRuLE3Z72kvAVwtpYKi0LbbX65IN4430jxWeX2xjysqvFoYLXVQUT3GnCr vaiYvBBXQ5VuEJv/D/sJjJIsS4jESwCzgPDTMB+wnHA75UXWCQrf7NKNMyM1VydacYCb ZmfDFRvCr4CWiHKL5waTtfy/u5aYTE5eW1BYdSoEiotOLJzcme0MODZ7ZxnReBZhrHbb dJF81COjYRjNl0BsIQIwtVP/jYBmXclzUp0O8Yy3/LZ3L1HLSICyMgUjTL6V+CIBj/vA jryaJaLINYyct5I6pnaPtPHPRj6RuXWiyuUR3bflR4Ff6YBcuv+zWUNHnOY4IiOQ8JoT T3GQ== 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:message-id:reply-to; bh=9UOvk5uyQGsRUZs22U+SL6M32TRGuh0Bg7yw7vCjuLU=; b=3XLMAT0XMQ4Bi9rbgzu3IH5UKDMbtg7/oNXIsp4izhJA7DfZYH9B49loC1v75js4bQ +FN+26bARZwEub5t9UABfz8EIN7V25fpV6iVws0fF6oUOcWOewb1l+6YXE8zdLz7m6E4 kctzcPVVIO4nmnOZblNfyG/bzQ1LX+pZ/WS70q9fhj7Brz8VLGXEVwTDmbIF3te6MVHA HbUwuJ32TPpWCVUX02DBHzg/7xHzsMiR4UXeV3nBFJ2ovyeA9zfwfuODGcQd4uhJRR1W 6Bsexx1SXqasnuc38IynJcGR/PbJKrJBm5SvyR5+kOT+xU2PWe+HCFea0mogpMzjY5iB 9FvQ== X-Gm-Message-State: AFqh2kraUBNNKEU4MK+E9iN1bq/RArPRzyzg08rer+urkYuFAVyGCwWQ 6Bind1mDpEjFsn9Y6eRdBV0wHQ== X-Received: by 2002:a17:906:99d1:b0:7ad:cf9c:b210 with SMTP id s17-20020a17090699d100b007adcf9cb210mr60573303ejn.18.1673515516080; Thu, 12 Jan 2023 01:25:16 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id gk8-20020a17090790c800b0084d35ffbc20sm6155551ejb.68.2023.01.12.01.25.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Jan 2023 01:25:15 -0800 (PST) Message-ID: Date: Thu, 12 Jan 2023 10:25:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v2 1/4] dt-bindings: net: Add FSD EQoS device tree bindings Content-Language: en-US To: Sriranjani P , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, alexandre.torgue@foss.st.com, peppe.cavallaro@st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, pankaj.dubey@samsung.com, alim.akhtar@samsung.com, ravi.patel@samsung.com References: <20230111075422.107173-1-sriranjani.p@samsung.com> <20230111075422.107173-2-sriranjani.p@samsung.com> From: Krzysztof Kozlowski In-Reply-To: <20230111075422.107173-2-sriranjani.p@samsung.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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 11/01/2023 08:54, Sriranjani P wrote: > Add FSD Ethernet compatible in Synopsys dt-bindings document. Add FSD > Ethernet YAML schema to enable the DT validation. > > Signed-off-by: Pankaj Dubey > Signed-off-by: Ravi Patel > Signed-off-by: Sriranjani P > --- > .../devicetree/bindings/net/snps,dwmac.yaml | 1 + > .../net/tesla,dwc-qos-ethernet-4.21.yaml | 103 ++++++++++++++++++ > 2 files changed, 104 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/tesla,dwc-qos-ethernet-4.21.yaml > > diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml > index 2f909ffe2fe8..e8d53061fd35 100644 > --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml > +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml > @@ -89,6 +89,7 @@ properties: > - snps,dwmac-5.10a > - snps,dwxgmac > - snps,dwxgmac-2.10 > + - tesla,dwc-qos-ethernet-4.21 I don't get, why did you add the IP version number? Can Tesla FSD come with different ones? The compatible should be specific to SoC and that's all. Also keep consistent naming, so this is a "mac", right? > > reg: > minItems: 1 > diff --git a/Documentation/devicetree/bindings/net/tesla,dwc-qos-ethernet-4.21.yaml b/Documentation/devicetree/bindings/net/tesla,dwc-qos-ethernet-4.21.yaml > new file mode 100644 > index 000000000000..d0dfc4a38d17 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/tesla,dwc-qos-ethernet-4.21.yaml > @@ -0,0 +1,103 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/tesla,dwc-qos-ethernet-4.21.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: FSD Ethernet Quality of Service Device Tree Bindings Drop "Device Tree Bindings" > + > +allOf: > + - $ref: "snps,dwmac.yaml#" Drop quoets. > + > +maintainers: > + - Sriranjani P > + > +properties: > + compatible: > + const: tesla,dwc-qos-ethernet-4.21.yaml > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + minItems: 4 > + > + clock-names: > + minItems: 4 Why rx clock might be not connected? > + items: > + - const: ptp_ref > + - const: master_bus > + - const: slave_bus > + - const: tx > + - const: rx > + - const: master2_bus > + - const: slave2_bus > + - const: eqos_rxclk_mux > + - const: eqos_phyrxclk > + - const: dout_peric_rgmii_clk You have here 10 clocks, but snps,dwmac allows maximum 8. You need to update it and fix any other dependent schemas. > + > + rx-clock-skew: Does not look like generic property. Missing vendor prefix, description, constraints. > + $ref: /schemas/types.yaml#/definitions/phandle-array > + > + iommus: > + maxItems: 1 > + > + phy-mode: > + $ref: ethernet-controller.yaml#/properties/phy-connection-type > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + - rx-clock-skew > + - iommus > + - phy-mode > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + > + ethernet_1: ethernet@14300000 { > + compatible = "tesla,dwc-qos-ethernet-4.21"; > + reg = <0x0 0x14300000 0x0 0x10000>; Are you sure you tested the bindings? 100% sure? > + interrupts = ; > + clocks = Don't introduce fake blank lines. > + <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_CLK_PTP_REF_I>, > + <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_ACLK_I>, > + <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_HCLK_I>, > + <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_RGMII_CLK_I>, > + <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_CLK_RX_I>, > + <&clock_peric PERIC_BUS_D_PERIC_IPCLKPORT_EQOSCLK>, > + <&clock_peric PERIC_BUS_P_PERIC_IPCLKPORT_EQOSCLK>, > + <&clock_peric PERIC_EQOS_PHYRXCLK_MUX>, > + <&clock_peric PERIC_EQOS_PHYRXCLK>, > + <&clock_peric PERIC_DOUT_RGMII_CLK>; > + clock-names = Ditto > + "ptp_ref", > + "master_bus", Best regards, Krzysztof