From: "Swathi K S" <swathi.ks@samsung.com>
To: "'Andrew Lunn'" <andrew@lunn.ch>
Cc: <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>, <ravi.patel@samsung.com>,
<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>
Subject: RE: [PATCH v3 1/4] dt-bindings: net: Add FSD EQoS device tree bindings
Date: Thu, 6 Jun 2024 14:44:40 +0530 [thread overview]
Message-ID: <000201dab7f2$1c8d4580$55a7d080$@samsung.com> (raw)
In-Reply-To: <4e745c2a-57bd-45da-8bd2-ee1cb2bab84f@lunn.ch>
Hi Andrew,
Sorry for the delay in response.
Starting now, I will be taking over this task.
I have gone through your comments and feedback and will be implementing them
in v4 of this patch.
> -----Original Message-----
> From: Andrew Lunn [mailto:andrew@lunn.ch]
> Sent: 15 August 2023 02:10
> To: Sriranjani P <sriranjani.p@samsung.com>
> Cc: 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; 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
> Subject: Re: [PATCH v3 1/4] dt-bindings: net: Add FSD EQoS device tree
> bindings
>
> > + 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.
>
> What clock are you skew-ing here? And why?
As per customer's requirement, we need 2ns delay in fsys block both in TX
and RX path.
>
> > + ethernet_1: ethernet@14300000 {
> > + compatible = "tesla,dwc-qos-ethernet-4.21";
> > + reg = <0x0 0x14300000 0x0 0x10000>;
> > + interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
> > + 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";
>
> I know it is just an example, but "rgmii" is generally wrong. "rgmii-id"
is
> generally what you need. And when i do see "rgmii", it starts ringing
alarm
> bells for me, it could mean your RGMII delays are being handled wrongly.
Thanks for bringing this to our notice. Will correct this in v4 as rgmii-id.
>
> Andrew
Regards,
Swathi
WARNING: multiple messages have this Message-ID (diff)
From: "Swathi K S" <swathi.ks@samsung.com>
To: "'Andrew Lunn'" <andrew@lunn.ch>
Cc: <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>, <ravi.patel@samsung.com>,
<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>
Subject: RE: [PATCH v3 1/4] dt-bindings: net: Add FSD EQoS device tree bindings
Date: Thu, 6 Jun 2024 14:44:40 +0530 [thread overview]
Message-ID: <000201dab7f2$1c8d4580$55a7d080$@samsung.com> (raw)
In-Reply-To: <4e745c2a-57bd-45da-8bd2-ee1cb2bab84f@lunn.ch>
Hi Andrew,
Sorry for the delay in response.
Starting now, I will be taking over this task.
I have gone through your comments and feedback and will be implementing them
in v4 of this patch.
> -----Original Message-----
> From: Andrew Lunn [mailto:andrew@lunn.ch]
> Sent: 15 August 2023 02:10
> To: Sriranjani P <sriranjani.p@samsung.com>
> Cc: 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; 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
> Subject: Re: [PATCH v3 1/4] dt-bindings: net: Add FSD EQoS device tree
> bindings
>
> > + 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.
>
> What clock are you skew-ing here? And why?
As per customer's requirement, we need 2ns delay in fsys block both in TX
and RX path.
>
> > + ethernet_1: ethernet@14300000 {
> > + compatible = "tesla,dwc-qos-ethernet-4.21";
> > + reg = <0x0 0x14300000 0x0 0x10000>;
> > + interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
> > + 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";
>
> I know it is just an example, but "rgmii" is generally wrong. "rgmii-id"
is
> generally what you need. And when i do see "rgmii", it starts ringing
alarm
> bells for me, it could mean your RGMII delays are being handled wrongly.
Thanks for bringing this to our notice. Will correct this in v4 as rgmii-id.
>
> Andrew
Regards,
Swathi
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2024-06-06 9:37 UTC|newest]
Thread overview: 70+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20230814112600epcas5p49fe29a3ef85e2b0158f5ee3426652fc8@epcas5p4.samsung.com>
2023-08-14 11:25 ` [PATCH v3 0/4] net: stmmac: dwc-qos: Add FSD EQoS support Sriranjani P
2023-08-14 11:25 ` Sriranjani P
2023-08-14 11:25 ` [PATCH v3 1/4] dt-bindings: net: Add FSD EQoS device tree bindings Sriranjani P
2023-08-14 11:25 ` Sriranjani P
2023-08-14 13:33 ` Rob Herring
2023-08-14 13:33 ` Rob Herring
2023-08-16 5:36 ` Sriranjani P
2023-08-16 5:36 ` Sriranjani P
2023-08-16 5:40 ` Krzysztof Kozlowski
2023-08-16 5:40 ` Krzysztof Kozlowski
2023-08-17 14:54 ` Rob Herring
2023-08-17 14:54 ` Rob Herring
2023-08-14 19:39 ` Krzysztof Kozlowski
2023-08-14 19:39 ` Krzysztof Kozlowski
2023-08-16 5:58 ` Sriranjani P
2023-08-16 5:58 ` Sriranjani P
2023-08-16 6:18 ` Krzysztof Kozlowski
2023-08-16 6:18 ` Krzysztof Kozlowski
2024-06-06 9:14 ` Swathi K S
2024-06-06 9:14 ` Swathi K S
2023-08-14 20:39 ` Andrew Lunn
2023-08-14 20:39 ` Andrew Lunn
2024-06-06 9:14 ` Swathi K S [this message]
2024-06-06 9:14 ` Swathi K S
2024-06-06 13:25 ` Andrew Lunn
2024-06-06 13:25 ` Andrew Lunn
2024-07-29 8:47 ` Swathi K S
2023-08-14 11:25 ` [PATCH v3 2/4] net: stmmac: dwc-qos: Add FSD EQoS support Sriranjani P
2023-08-14 11:25 ` Sriranjani P
2023-08-14 19:50 ` Krzysztof Kozlowski
2023-08-14 19:50 ` Krzysztof Kozlowski
2023-08-16 6:38 ` Sriranjani P
2023-08-16 6:38 ` Sriranjani P
2023-08-18 9:27 ` Krzysztof Kozlowski
2023-08-18 9:27 ` Krzysztof Kozlowski
2024-06-06 9:14 ` Swathi K S
2024-06-06 9:14 ` Swathi K S
2024-06-06 12:16 ` Krzysztof Kozlowski
2024-06-06 12:16 ` Krzysztof Kozlowski
2023-08-14 20:47 ` Andrew Lunn
2023-08-14 20:47 ` Andrew Lunn
2024-06-06 9:16 ` Swathi K S
2024-06-06 9:16 ` Swathi K S
2023-08-14 11:25 ` [PATCH v3 3/4] arm64: dts: fsd: Add Ethernet support for FSYS0 Block of FSD SoC Sriranjani P
2023-08-14 11:25 ` Sriranjani P
2023-08-14 19:40 ` Krzysztof Kozlowski
2023-08-14 19:40 ` Krzysztof Kozlowski
2023-08-14 19:56 ` Krzysztof Kozlowski
2023-08-14 19:56 ` Krzysztof Kozlowski
2023-08-16 6:40 ` Sriranjani P
2023-08-16 6:40 ` Sriranjani P
2023-08-14 20:50 ` Andrew Lunn
2023-08-14 20:50 ` Andrew Lunn
2024-06-06 9:14 ` Swathi K S
2024-06-06 9:14 ` Swathi K S
2024-06-06 13:22 ` Andrew Lunn
2024-06-06 13:22 ` Andrew Lunn
2024-07-29 8:49 ` Swathi K S
2023-08-14 20:51 ` Andrew Lunn
2023-08-14 20:51 ` Andrew Lunn
2023-08-14 11:25 ` [PATCH v3 4/4] arm64: dts: fsd: Add Ethernet support for PERIC " Sriranjani P
2023-08-14 11:25 ` Sriranjani P
2023-08-14 19:41 ` Krzysztof Kozlowski
2023-08-14 19:41 ` Krzysztof Kozlowski
2023-08-14 19:41 ` Krzysztof Kozlowski
2023-08-14 19:41 ` Krzysztof Kozlowski
2023-08-16 6:26 ` Sriranjani P
2023-08-16 6:26 ` Sriranjani P
2023-08-14 20:53 ` Andrew Lunn
2023-08-14 20:53 ` Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000201dab7f2$1c8d4580$55a7d080$@samsung.com' \
--to=swathi.ks@samsung.com \
--cc=alexandre.torgue@foss.st.com \
--cc=alim.akhtar@samsung.com \
--cc=andrew@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=joabreu@synopsys.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-fsd@tesla.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pankaj.dubey@samsung.com \
--cc=ravi.patel@samsung.com \
--cc=richardcochran@gmail.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.