Hi, On Wed, Jan 21, 2026 at 11:15:45AM +0800, Chaoyi Chen wrote: > From: Chaoyi Chen > > According to the description in the net documentation, PHY modes > "rgmii", "rgmii-rxid" and "rgmii-txid" modes require the clock signal > to be delayed on the PCB. > > The Rockchip platform has long used the above mentioned PHY modes and > private delay prop to describe the internal IO delay settings of the > chip, which is inconsistent with what is described in the documentation. > > Some background, for RK3576, you can assume that: > > tx_delay_time(ns) = 0.0579 * delay_line_count + 0.105 > > For example, tx_delay = <0x20> means: > > time = 0.0579 * 0x20 + 0.105 ns = 1.9578 ns > > Recently, Andrew has often mentioned the problem of phy mode in board > level configuration. So let's start with the RK3576 to modify this. > > Please test this series of patches, thanks. The RTL8211F PHY driver does not use the "tx-internal-delay-ps" property, which would require using phy_get_internal_delay(). Also the hardware only seems to support enabling/disabling a fixed delay of 2ns, so it cannot be implemented as far as I can tell. So unless I missed something, this series makes no sense as-is. My suggestion would be to add support for -internal-delay-ps to the Rockchip GMAC driver by introducing a new rk_gmac_ops entry to translate the standard properties into register values: int rk3576_delay_conversion(unsigned int delay_ps) { return (delay_ps*10 - 1050) / 579; } That allows using standard properties in DT instead of vendor specific "rx_delay"/"tx_delay". This results in a much better board description and shows how far boards derive from the the standard 2ns (which can use rgmii-id without any extra delay specification). Greetings, -- Sebastian