Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2559978rdg; Mon, 14 Aug 2023 06:32:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEfDTgmT0IHsgzbIVcd9XXlyQgjc/if5IhCRQO7WPIA0XkrV5Qu8piukbO0aJJ98rm65FQg X-Received: by 2002:a17:906:5dc1:b0:99b:f3ef:f088 with SMTP id p1-20020a1709065dc100b0099bf3eff088mr7629161ejv.69.1692019979351; Mon, 14 Aug 2023 06:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692019979; cv=none; d=google.com; s=arc-20160816; b=U4gKxUQYtAO262yLB8EUn8uq2rv0nLfKQK2o899yxzayDor6XbMlBqIXbUN/92WW/m tl7bmaAZstSVliS0ry8cbpdt43jjmFSz5UTNlnRCS88WO5KAG4z+XhSFcL3iBuD69xHr TvZgNenISVvGiq+zi8xOXPAxBdjQiYC1qjTLELEQFKdUa4LAn+m5kMRtBBz4VBdA/Y6m Lti5JbWq8AM4wFapwitLxckZ/UDkJTQK7vd5Mqq4xveH+ywEHy+xpzigsWw3R3jYxWwq Vt1ilTCbSvcfOHf/sPrcOutbj+meJJhY8C+/aV/IqUPfvNTi8zT79z82J/cmEnMVDu6t +c2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=ShySZtEk1+xwW7aJlNCSKMFk+9qm6buF6WBsZ7yCoqw=; fh=4cHc3lYQ8arXSMSy73qCECk6uevGTf8A+akPfZRux8Y=; b=mwgK4YJqZV2Y8riCVxkVu8x4ag/lZbIdPeatYBIi1c7C9RqWAswWd2f1b4dT7sa3Kh 1rPdg/WUtTQAAUJR8PM9iOYvJSGNwuoOtRAq/X6Grq5yDY2uDOPbuHAzNwnTsRtRT2GF 8qYYnbMSbGtrUgtII78v74z4KVtOOgA0Xvwa4tAF8z0MHzcfM8LcgN5BG5ov9y0H7Yq+ yz+wBjaP709VfVTdgZTzg5DrhJ5hko5v07KFpZzTibuXEyy7NDnvM8Rcuk2chNLRF18V 3vtk2UttPzMkPfqKbiJxaHVVHpNSl9jKZofCDGmYJmtGwDc4iTrwyJ6LNTdyilcwyd37 lC5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Wl7okINh; 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=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a170906390f00b0099bc0530efesi7567268eje.453.2023.08.14.06.32.35; Mon, 14 Aug 2023 06:32:59 -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=@samsung.com header.s=mail20170921 header.b=Wl7okINh; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233499AbjHNML6 (ORCPT + 99 others); Mon, 14 Aug 2023 08:11:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233666AbjHNMLh (ORCPT ); Mon, 14 Aug 2023 08:11:37 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01559F5 for ; Mon, 14 Aug 2023 05:11:34 -0700 (PDT) Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230814121133epoutp017c1d4089b89b3c9fde160706235f3ac7~7PsNHnnGI0044800448epoutp01b for ; Mon, 14 Aug 2023 12:11:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230814121133epoutp017c1d4089b89b3c9fde160706235f3ac7~7PsNHnnGI0044800448epoutp01b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1692015093; bh=ShySZtEk1+xwW7aJlNCSKMFk+9qm6buF6WBsZ7yCoqw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wl7okINh5HOpZzZBJMVa2RMOOAsOJsoVeNAATuk4U9s8XeIlGWIbtuAqYaV3/ajO8 JRRY6IwHa4Spam/Oj3Masvzr1QAhLRNjYm+dFCCp7jVzqiTOcwXdqo2LXI+ALv7jdU n2v7wKi7E7CdtYh40BtfwBC1TOHN1kudXg/0agds= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20230814121132epcas5p4a13dfe55bdac406e7b4c03e698892a7f~7PsMQfiT52655926559epcas5p4A; Mon, 14 Aug 2023 12:11:32 +0000 (GMT) Received: from epsmges5p2new.samsung.com (unknown [182.195.38.180]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4RPYCk5pZyz4x9Pr; Mon, 14 Aug 2023 12:11:30 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id AE.CF.44250.2F91AD46; Mon, 14 Aug 2023 21:11:30 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p3.samsung.com (KnoxPortal) with ESMTPA id 20230814112605epcas5p31aca7b23e70e8d93df11414291f7ce66~7PEg4nhhO2938329383epcas5p3i; Mon, 14 Aug 2023 11:26:05 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230814112605epsmtrp28467dd192218d7dfcdabb20054318b78~7PEg3jgEE1398813988epsmtrp2a; Mon, 14 Aug 2023 11:26:05 +0000 (GMT) X-AuditID: b6c32a4a-ec1fd7000000acda-27-64da19f210fc Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 17.E3.14748.D4F0AD46; Mon, 14 Aug 2023 20:26:05 +0900 (KST) Received: from cheetah.sa.corp.samsungelectronics.net (unknown [107.109.115.53]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230814112602epsmtip2baeb90e73160c49db1ce52ff1828bd87~7PEd_DqyY1008410084epsmtip2S; Mon, 14 Aug 2023 11:26:02 +0000 (GMT) From: Sriranjani P To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, richardcochran@gmail.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, alim.akhtar@samsung.com, linux-fsd@tesla.com, pankaj.dubey@samsung.com, swathi.ks@samsung.com, ravi.patel@samsung.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sriranjani P Subject: [PATCH v3 1/4] dt-bindings: net: Add FSD EQoS device tree bindings Date: Mon, 14 Aug 2023 16:55:36 +0530 Message-Id: <20230814112539.70453-2-sriranjani.p@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230814112539.70453-1-sriranjani.p@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VTfUxTVxTf7WvfK46ylyJ4IerII5rBwkeVjwsCNhszT3SjDjOTLYIdfaMN pe3aMpnJBgEr4hRFB1sQEYHMAAL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Vu4D2xZdsU7s3eWW+V/9hmrQ8cntQ1ymfkpYVzKujZARu yi0OXBGx+kwNm5iR35Pl198/urP31a+A09t/VnLVJqidb1/ZsT7tUaewcfKEbZpLt90N+bWm fNNOEeGPK593ua/8yOk1SeT78oeqZ/2iUwv7zI7cztGWsquPq5n8ttr9TL2K3747t75dtnF6 FfDt5/3cC5x/7TOY5jskin37UMXSr8RSnJFoqMVcVJwIAEGrb+8UAwAA X-CMS-MailID: 20230814112605epcas5p31aca7b23e70e8d93df11414291f7ce66 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230814112605epcas5p31aca7b23e70e8d93df11414291f7ce66 References: <20230814112539.70453-1-sriranjani.p@samsung.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 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: Swathi K S Signed-off-by: Sriranjani P --- .../devicetree/bindings/net/snps,dwmac.yaml | 5 +- .../devicetree/bindings/net/tesla,ethqos.yaml | 114 ++++++++++++++++++ 2 files changed, 117 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/tesla,ethqos.yaml diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml index ddf9522a5dc2..0ced7901e644 100644 --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml @@ -96,6 +96,7 @@ properties: - snps,dwxgmac - snps,dwxgmac-2.10 - starfive,jh7110-dwmac + - tesla,fsd-ethqos-4.21 reg: minItems: 1 @@ -117,7 +118,7 @@ properties: clocks: minItems: 1 - maxItems: 8 + maxItems: 10 additionalItems: true items: - description: GMAC main clock @@ -129,7 +130,7 @@ properties: clock-names: minItems: 1 - maxItems: 8 + maxItems: 10 additionalItems: true contains: enum: diff --git a/Documentation/devicetree/bindings/net/tesla,ethqos.yaml b/Documentation/devicetree/bindings/net/tesla,ethqos.yaml new file mode 100644 index 000000000000..b78829246364 --- /dev/null +++ b/Documentation/devicetree/bindings/net/tesla,ethqos.yaml @@ -0,0 +1,114 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/tesla,ethqos.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: FSD Ethernet Quality of Service + +maintainers: + - Sriranjani P + - Swathi K S + +description: + dwmmac based tesla ethernet devices which support Gigabit + ethernet. + +allOf: + - $ref: snps,dwmac.yaml# + +properties: + compatible: + const: tesla,fsd-ethqos-4.21.yaml + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 5 + maxItems: 10 + + clock-names: + minItems: 5 + maxItems: 10 + 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 + + fsd-rx-clock-skew: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: phandle to the syscon node + - description: offset of the control register + description: + Should be phandle/offset pair. The phandle to the syscon node. + + 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>; + interrupts = ; + clocks = <&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 = "ptp_ref", + "master_bus", + "slave_bus", + "tx", + "rx", + "master2_bus", + "slave2_bus", + "eqos_rxclk_mux", + "eqos_phyrxclk", + "dout_peric_rgmii_clk"; + pinctrl-names = "default"; + pinctrl-0 = <ð1_tx_clk>, <ð1_tx_data>, <ð1_tx_ctrl>, + <ð1_phy_intr>, <ð1_rx_clk>, <ð1_rx_data>, + <ð1_rx_ctrl>, <ð1_mdio>; + fsd-rx-clock-skew = <&sysreg_peric 0x10>; + iommus = <&smmu_peric 0x0 0x1>; + phy-mode = "rgmii"; + }; + +... -- 2.17.1