[PATCH 3/4] dt-bindings: phy: cadence-torrent: add phy-mode constants
From: Benjamin Robin
Date: Fri Nov 20 2026 - 07:56:48 EST
Add the `CDNS_TORRENT_MODE_*` constants to
include/dt-bindings/phy/phy-cadence.h such as SATA-LP and 2500BASE-X.
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.
Signed-off-by: Benjamin Robin <benjamin.robin@xxxxxxxxxxx>
---
Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml | 9 +++++++++
include/dt-bindings/phy/phy-cadence.h | 8 ++++++++
2 files changed, 17 insertions(+)
diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
index 8e845e2373ac..17a8343ac899 100644
--- a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
+++ b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
@@ -101,6 +101,15 @@ patternProperties:
$ref: /schemas/types.yaml#/definitions/uint32
enum: [1, 2, 3, 4, 5, 6, 7, 8, 9, 12]
+ cdns,phy-mode:
+ description:
+ Specifies an optional mode of PHY for which the group of PHY lanes is used.
+ Refer include/dt-bindings/phy/phy-cadence.h for the constants to be used.
+ $ref: /schemas/types.yaml#/definitions/uint32
+ minimum: 0
+ maximum: 63
+ default: 0
+
cdns,num-lanes:
description:
Number of lanes.
diff --git a/include/dt-bindings/phy/phy-cadence.h b/include/dt-bindings/phy/phy-cadence.h
index 0671991208fc..94945b843288 100644
--- a/include/dt-bindings/phy/phy-cadence.h
+++ b/include/dt-bindings/phy/phy-cadence.h
@@ -15,6 +15,14 @@
#define CDNS_TORRENT_DERIVED_REFCLK 1
#define CDNS_TORRENT_RECEIVED_REFCLK 2
+#define CDNS_TORRENT_MODE_NONE 0x00
+#define CDNS_TORRENT_MODE_USB_G1 0x01
+#define CDNS_TORRENT_MODE_USB_IO_11V 0x02
+#define CDNS_TORRENT_MODE_XAUI_LP 0x04
+#define CDNS_TORRENT_MODE_SATA_LP 0x08
+#define CDNS_TORRENT_MODE_2500_BASEX 0x10
+#define CDNS_TORRENT_MODE_QSGMII 0x20
+
/* Sierra */
#define CDNS_SIERRA_PLL_CMNLC 0
#define CDNS_SIERRA_PLL_CMNLC1 1
--
2.56.1