Re: [PATCH 3/4] dt-bindings: phy: cadence-torrent: add phy-mode constants
From: Benjamin Robin
Date: Thu Dec 03 2026 - 08:04:22 EST
On Thursday, December 3, 2026 at 12:14 PM, Krzysztof Kozlowski wrote:
> On Tue, Nov 24, 2026 at 05:41:19PM +0100, Benjamin Robin wrote:
> > > >
> > > > These constants are used by the new Cadence Torrent PHY driver and
> > > > are referenced by the `cdns,phy-mode` property of the Cadence Torrent
> > > > PHY binding to select the PHY mode.
> > >
> > > That's obvious, explain why you are duplicating phy type instead.
> >
> > You are right, the commit message needs improvement.
> >
> > Any guidance on how you would like these options represented in the
> > binding would be much appreciated as I am not entirely sure about the
> > best approach myself.
>
> This looks like duplicating phy-tpe. It is does not, needs reasoning why
> it does not. If it does, it needs to stop duplicating or explain why
> upstream would like to have this duplication.
This is not duplicating the phy-type (at least I am not trying to do that).
The goal is to be able to configure the speed of the PHY (or some other
HW settings).
In v2 (which has quite a lot of issues that I introduced accidentally
during the refactoring, sorry about that), the commit message that I
improved looks like this [1].
The QSGMII mode was removed, since that "speed" can be represented by
an existing phy-type.
As explain in the previous email above:
The Torrent PHY supports multiple standards: PCIe, USB, SATA, XAUI and
SGMII, ... For some of them, additional configuration options exist:
- USB:
We need to know the I/O supply voltage (1.1 V or 1.2 V), since it
affects the TX full-swing magnitude multiplier configuration for the
USB TX/RX pad supply.
The link can also be limited to Gen 1 speed (5 Gb/s SuperSpeed)
instead of Gen 2 (10 Gb/s SuperSpeed+) to reduce power, which is why
the option is named "LP" (low power).
- SATA:
The PHY supports SATA Gen 1 (1.5 Gb/s), Gen 2 (3.0 Gb/s) and Gen 3
(6.0 Gb/s). The link can also be limited to Gen 2 to reduces power.
- XAUI:
The link can be configured to 1X only (3.125 Gb/s lane rate),
dropping the 2X rate (6.25 Gb/s), again to reduce power.
- SGMII:
The link can be "overclocked" to 2500BASE-X (called SGMII+ in the
user guide) instead of 1Gbps.
[1] https://lore.kernel.org/all/20261202-phy-cadence-torrent-ng-v2-4-0b493387347b@xxxxxxxxxxx/
--
Benjamin Robin, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com