[PATCH 0/3] phy: lynx: add support for downstream retimer PHYs
Ioana Ciornei
ioana.ciornei at nxp.com
Thu Nov 19 09:25:36 PST 2026
On Thu, Nov 19, 2026 at 04:57:05PM +0100, Vincent Jardin wrote:
> Hi Ioana,
>
> > This patch set adds support in the Lynx SerDes PHY drivers for
> > retimer PHYs which can be found on the board downstream of the SerDes
> > lane towards any connector such as an SFP cage.
>
> It is a good idea, it can be used then to leverage other retimers
> on those serdes too (like a ds250).
>
> So, two questions:
> - in patch 3, a downstream PHY without .validate fails every mode of
> the lane. Could it be stated in the binding or in a kernel doc ? A
> minimal retimer driver would take the port down.
I am not really sure where exactly to document this Lynx SerDes
restriction: the dt bindings do not deal with this kind of restrictions
and I am not sure that in the driver it will actually be visible.
On the other hand, phylink_dbg will print the phy_interface_t bitmap
supported by an SFP and the bitmap supported by the MAC/SerDes +
retimers. So there will be some debug messages to start from.
>
> - for 100G and 40G ports that are 4 lanes under one MAC, and the
> Lynx 28G driver has no lane mode for them, so set_mode would never reach
> their retimers. What's the plan ?
I would think that if a retimer connected to the lanes of a 100G or 40G
port needs to configured at runtime, it would also need to have SerDes
level support in the Lynx 28G driver. So than plan would be to add
100G/40G support first.
>
> One more point: we need to be able to tune the equalization and run PRBS
> on these chips from userspace. A driver that selects a channel and then
> writes would race with such tools. The retimer driver
> would have to deal with it. What could the proper design be ?
>
If PRBS is done in user space then I would expect the Linux drivers
which touch the SerDes lanes and any other retimer on the signal path
to be unbound from the devices. For example, if PRBS is run on a Lynx28G
SerDes lane then the entire SerDes block needs to be in test mode. This
implies that no other lane can be in application mode which is invasive
enough that an unbind is necessary.
Ioana
[1] https://lore.kernel.org/all/aY2lFTIALH7qEJmM@shell.armlinux.org.uk/
More information about the linux-phy
mailing list