mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Alastair D'Silva <alastair@d-silva.org>
Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org,
	linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Chen-Yu Tsai <wens@kernel.org>,
	Jernej Skrabec <jernej.skrabec@gmail.com>,
	Samuel Holland <samuel@sholland.org>,
	Maxime Chevallier <maxime.chevallier@bootlin.com>,
	Maxime Ripard <mripard@kernel.org>
Subject: Re: [PATCH 5/5] arm64: dts: allwinner: sun60i-a733-orangepi-4-pro: Enable GMAC0 Ethernet
Date: Wed, 25 Nov 2026 18:30:24 +0100	[thread overview]
Message-ID: <292b18e4-dbad-42ba-9f1f-cfbe2af52148@lunn.ch> (raw)
In-Reply-To: <20261125130613.4191841-6-alastair@d-silva.org>

On Thu, Nov 26, 2026 at 12:06:13AM +1100, Alastair D'Silva wrote:
> The Orange Pi 4 Pro connects A733 GMAC0 to a Motorcomm YT8531 Gigabit
> PHY over RGMII without PCB trace delays. Use phy-mode = "rgmii" rather
> than "rgmii-id" so PHY-side delays stay disabled and the MAC applies the
> calibrated TX (2160 ps) and RX (3780 ps) delays directly.

https://elixir.bootlin.com/linux/v6.15/source/Documentation/devicetree/bindings/net/ethernet-controller.yaml#L287

phy-mode describes the PCB. If the PCB has no delays, rgmii-id should
be used.

The MAC/PHY pair need to decide which of the two add the delays. This
is not decided by phy-mode.

3780 ps is also huge, much greater than the 2ns required by the
standard. It suggests something else is going on, maybe a clock is
inverted? Please investigate.

   Andrew

      reply	other threads:[~2026-11-25 17:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 13:06 [PATCH 0/5] net: stmmac: dwmac-sun55i: Add Allwinner A733 GMAC210 support Alastair D'Silva
2026-11-25 13:06 ` [PATCH 1/5] dt-bindings: net: allwinner,sun8i-a83t-emac: Add Allwinner A733 GMAC210 Alastair D'Silva
2026-11-25 13:06 ` [PATCH 2/5] net: stmmac: dwmac-sun55i: Add per-compatible match data Alastair D'Silva
2026-11-25 13:06 ` [PATCH 3/5] net: stmmac: dwmac-sun55i: Add Allwinner A733 GMAC210 support Alastair D'Silva
2026-11-25 17:25   ` Andrew Lunn
2026-11-25 13:06 ` [PATCH 4/5] arm64: dts: allwinner: sun60i-a733: Add GMAC0 node Alastair D'Silva
2026-11-25 13:06 ` [PATCH 5/5] arm64: dts: allwinner: sun60i-a733-orangepi-4-pro: Enable GMAC0 Ethernet Alastair D'Silva
2026-11-25 17:30   ` Andrew Lunn [this message]

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=292b18e4-dbad-42ba-9f1f-cfbe2af52148@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=alastair@d-silva.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@kernel.org \
    --cc=jernej.skrabec@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@lists.linux.dev \
    --cc=maxime.chevallier@bootlin.com \
    --cc=mripard@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=robh@kernel.org \
    --cc=samuel@sholland.org \
    --cc=wens@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®