[PATCH net v1 1/2] dt-bindings: ethernet: eswin: refine delay model and HSP register description
李志
lizhi2 at eswincomputing.com
Fri May 15 00:31:16 PDT 2026
> -----Original Messages-----
> From: "Andrew Lunn" <andrew at lunn.ch>
> Send time:Thursday, 07/05/2026 20:29:10
> To: lizhi2 at eswincomputing.com
> Cc: andrew+netdev at lunn.ch, davem at davemloft.net, edumazet at google.com, kuba at kernel.org, pabeni at redhat.com, robh at kernel.org, krzk+dt at kernel.org, conor+dt at kernel.org, netdev at vger.kernel.org, devicetree at vger.kernel.org, linux-kernel at vger.kernel.org, mcoquelin.stm32 at gmail.com, alexandre.torgue at foss.st.com, rmk+kernel at armlinux.org.uk, maxime.chevallier at bootlin.com, linux-stm32 at st-md-mailman.stormreply.com, linux-arm-kernel at lists.infradead.org, ningyu at eswincomputing.com, linmin at eswincomputing.com, pinkesh.vaghela at einfochips.com, pritesh.patel at einfochips.com, weishangjuan at eswincomputing.com
> Subject: Re: [PATCH net v1 1/2] dt-bindings: ethernet: eswin: refine delay model and HSP register description
>
> > ethernet at 50400000 {
> > compatible = "eswin,eic7700-qos-eth", "snps,dwmac-5.20";
> > reg = <0x50400000 0x10000>;
> > - clocks = <&d0_clock 186>, <&d0_clock 171>, <&d0_clock 40>,
> > - <&d0_clock 193>;
> > - clock-names = "axi", "cfg", "stmmaceth", "tx";
> > interrupt-parent = <&plic>;
> > interrupts = <61>;
> > interrupt-names = "macirq";
> > - phy-mode = "rgmii-id";
> > - phy-handle = <&phy0>;
> > + clocks = <&d0_clock 186>, <&d0_clock 171>, <&d0_clock 40>,
> > + <&d0_clock 193>;
> > + clock-names = "axi", "cfg", "stmmaceth", "tx";
>
> Please don't move the clocks around, since they have nothing to do
> with RGMII delays.
>
>
> > resets = <&reset 95>;
> > reset-names = "stmmaceth";
> > - rx-internal-delay-ps = <200>;
> > - tx-internal-delay-ps = <200>;
> > - eswin,hsp-sp-csr = <&hsp_sp_csr 0x100 0x108 0x118>;
> > - snps,axi-config = <&stmmac_axi_setup>;
> > + eswin,hsp-sp-csr = <&hsp_sp_csr 0x100 0x108 0x118 0x114 0x11c>;
> > + phy-handle = <&phy0>;
> > + phy-mode = "rgmii-id";
> > snps,aal;
> > snps,fixed-burst;
> > snps,tso;
> > - stmmac_axi_setup: stmmac-axi-config {
> > + snps,axi-config = <&stmmac_axi_setup_gmac0>;
> > +
> > + stmmac_axi_setup_gmac0: stmmac-axi-config {
>
> And what do these changes have to do with RGMII delays?
>
Hi Andrew,
Before sending the next revision, I would like to confirm one point about
the binding update.
In your previous review comment:
https://lore.kernel.org/lkml/7e593ede-59eb-4316-ab72-949a51c008c6@lunn.ch/
you mentioned that "a well designed board should not need delays".
Based on that, I am planning to remove rx-internal-delay-ps and
tx-internal-delay-ps from the required list.
The intention is that these properties remain available for MAC-side
fine tuning when needed, but are optional since the required RGMII delay
may instead be provided by the PHY (for example with rgmii-id) or by the
board design.
Would you consider this to be a fix to an overly restrictive schema
requirement, or more of a schema relaxation / improvement?
This will help determine whether this change should remain in the net
series or be moved to a follow-up net-next series.
Thanks,
Zhi Li
More information about the linux-arm-kernel
mailing list