mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: aiyengar1990@gmail.com
Cc: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Heiko Stuebner <heiko@sntech.de>,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/3] arm64: dts: rockchip: use rgmii-id for the Orange Pi 5/5B ethernet PHY
Date: Wed, 11 Nov 2026 14:06:47 +0100	[thread overview]
Message-ID: <fdb7836a-67f9-4db0-8820-d72f56beca3f@lunn.ch> (raw)
In-Reply-To: <20261111-opi5-dts-v2-1-821f666418a6@gmail.com>

On Wed, Nov 11, 2026 at 07:19:49AM +0000, Arun Iyengar via B4 Relay wrote:
> From: Arun Iyengar <aiyengar1990@gmail.com>
> 
> The Orange Pi 5 and 5B have a Motorcomm YT8531C RGMII PHY on gmac1
> (the PHY driver binds as "YT8531 Gigabit Ethernet"). The board neither
> uses extra long clock traces for TX nor for RX, yet the device tree
> describes it as "rgmii-rxid", which according to ethernet-controller.yaml
> means that the PCB provides the TX delay, and then makes the MAC insert
> the TX delay with tx_delay = <0x42>. The setting was copied from the
> vendor kernel, which uses the MAC delay lines everywhere.
> 
> Describe the PCB correctly as "rgmii-id" and drop tx_delay, so that the
> MAC adds no delay and the PHY adds both: motorcomm.c programs its
> default 1950 ps for RX (as now) and for TX. This is the setup the
> binding recommends, and the one the same vendor's Orange Pi CM5
> (rk3588s-orangepi-cm5-base.dts), with a YT8531C on gmac1 of the same
> SoC, already uses in mainline.
> 
> Besides being the correct description, this removes the MAC from the
> timing path for both directions, so no board-specific delay-line value
> is needed any more.
> 
> Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

  reply	other threads:[~2026-11-11 13:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-11  7:19 [PATCH v2 0/3] arm64: dts: rockchip: Orange Pi 5/5B ethernet, SPI NOR supply and USB-C DP Arun Iyengar via B4 Relay
2026-11-11  7:19 ` [PATCH v2 1/3] arm64: dts: rockchip: use rgmii-id for the Orange Pi 5/5B ethernet PHY Arun Iyengar via B4 Relay
2026-11-11 13:06   ` Andrew Lunn [this message]
2026-11-11  7:19 ` [PATCH v2 2/3] arm64: dts: rockchip: add the SPI NOR flash supply on Orange Pi 5 Arun Iyengar via B4 Relay
2026-11-11  7:19 ` [PATCH v2 3/3] arm64: dts: rockchip: Add USB-C DP AltMode for Orange Pi 5/5B Arun Iyengar via B4 Relay

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=fdb7836a-67f9-4db0-8820-d72f56beca3f@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=aiyengar1990@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=heiko@sntech.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=robh@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®