* [PATCH v2 00/22] phy: cadence-torrent: rewrite Torrent PHY driver
@ 2026-12-02 15:08 Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 03/22] dt-bindings: phy: cadence-torrent: make cdns,num-lanes optional again Benjamin Robin
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Benjamin Robin @ 2026-12-02 15:08 UTC (permalink / raw)
To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Siddharth Vadapalli,
Andrew Davis, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec, Luca Ceresoli,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Vinod Koul, Manivannan Sadhasivam, Swapnil Jakhade,
Yuti Amonkar, Philipp Zabel
Cc: thomas.petazzoni, Chintan Vankar, Abhash Kumar Jha,
Thomas Richard, Gregory CLEMENT, Théo Lebrun, Tawfik Bayouk,
Vladimir Kondratiev, linux-arm-kernel, devicetree, linux-kernel,
dri-devel, linux-phy, Benjamin Robin, Tomi Valkeinen, stable,
Dmitry Guzman
This series rewrites the driver for the Cadence Torrent multi-protocol
PHY (sd0801).
Motivation
----------
The existing phy-cadence-torrent driver hard-codes, for each supported
configuration, the register values to program. The configuration space
is large: protocol and associated PLL frequency, DisplayPort bit rate,
reference clock frequency, spread-spectrum clocking (SSC), number of
lanes, PHY revision and technology. As a result, every new board or
standard combination requires a full extra table of opaque register
values, which is inflexible and hard to maintain.
The rewrite aims to:
- simplify the addition of support for a new board;
- support every reference clock frequencies supported by the Cadence
Torrent PHY;
- support multiple links per standard without restriction (the previous
driver, for instance, was limited to two PCIe links);
- allow, in the future, the dynamic reconfiguration of the SerDes link
rate (for example, to switch between SGMII and 2500BASE-X).
Because this is a complete rewrite, the diff is large and not well suited
to a line-by-line review. The rewritten driver can be fetched from the
`phy-cadence-torrent` branch at https://github.com/benjarobin/linux
Design
------
The new driver computes the register values instead of hard-coding them:
- registers that depend on the reference clock frequency or on a PLL
frequency are computed at run time, from the reference clock
obtained through the clock framework and from the PLL frequency
derived from the selected standard;
- the remaining registers, which only depend on the standard type, the
PHY revision and the technology, are written through one function per
register, with an internal table selected by a
standard/revision/technology key.
The PHY revision and technology are detected from the PHY identification
registers, and the DisplayPort link initialization and rate-change
sequence were rewritten.
Validation
----------
Because the rewritten driver computes register values instead of
hard-coding them, its output was validated against two independent
references:
- The Cadence "Torrent Programmers Guide" spreadsheet, for the
registers that depend on the reference clock and on the PLL
frequencies. The spreadsheet generates (as a CSV) the expected value
of every register to write; the values computed by the driver were
compared with these expected values over a large number of
combinations of reference clock, PLL frequency.
To make this comparison feasible, the reference-clock and PLL
computation code was extracted into small userspace harnesses,
so that many combinations can be swept without booting the hardware,
and the results are fed to a comparison tool that checks them against
the spreadsheet CSV.
- The existing driver, for the complete set of programmed registers.
Every supported configuration of the old driver was extracted as a
test case. Two userspace harnesses were generated:
- tp-full-old, mirroring the old cdns_torrent_phy_init() /
cdns_torrent_phy_configure_multilink() path;
- tp-full-new, mirroring the new tp_configure_links() path.
These 2 userspace harnesses run the same test cases (single
standards, standard pairs, PCIe-Multilink and internal-SSC variants)
and then compare, register by register, the writes performed by each
driver for the same configuration. The registers written by both
drivers match, with a small number of remaining differences that are
all explained (for example, values that were fixed in a later
revision of the spreadsheet, or obsolete/unused registers);
The last patch of the series adds a debug trace on every register read
or write, so the same comparison can also be performed on real hardware
by capturing the driver logs.
The tooling used for the validation described above is available at:
https://github.com/benjarobin/cadence-torrent-phy-tooling
Status / testing
----------------
The driver has so far been validated on two TI boards:
- J784S4XEVM: two PCIe links (x2, x4), one DisplayPort link (display
output working) and one USB-C port (configured as host);
- J721EXCPXEVM: two PCIe links (x2, x1) and a J721EXENETXPANEVM
daughter card exposing four Ethernet ports over a single QSGMII
link (~1 Gbps per port).
Comments on the overall approach are welcome, as is testing on additional
hardware, for which Tested-by tags would be appreciated.
Dependency
----------
This series should be applied on top of v7.4-rc3. This was done this way
since the commit "treewide: Convert devm_kmalloc() family to the
devm_kmalloc_obj() family" introduced conflicts.
To be able to test this driver, it depends on the following series:
- [1]: needed since the driver requires the consumers to call
phy_power_on() and phy_power_off();
- [2]: needed otherwise the QSGMII SerDes link is never powered ON.
Both series [1] and [2] are included in this one.
[1] https://lore.kernel.org/all/20261124101747.2432344-1-a-kumar2@ti.com/
[2] https://lore.kernel.org/all/20260326134929.1696750-1-c-vankar@ti.com/
Signed-off-by: Benjamin Robin <benjamin.robin@bootlin.com>
---
Changes in v2:
- Split the series into a series of "smaller" patches
- Addressed the sashiko comments
- Link to v1: https://patch.msgid.link/20261120-phy-cadence-torrent-ng-v1-0-da2db7125cd7@bootlin.com
---
Abhash Kumar Jha (1):
drm/bridge: cdns-mhdp8546: Power on/off the PHY in probe/remove
Benjamin Robin (19):
dt-bindings: phy: cadence-torrent: make cdns,num-lanes optional again
dt-bindings: phy: cadence-torrent: add phy-mode constants
phy: cadence-torrent: make cdns,num-lanes optional again
phy: cadence-torrent: rename symbols to prepare for rewrite
phy: cadence-torrent: replace regmap with readw/writew
phy: cadence-torrent: move refclk clk_init_data to the stack
phy: cadence-torrent: drop diag_tx_drv from DP voltage coeff
phy: cadence-torrent: use link lane count and mlane for DP config
phy: cadence-torrent: use devm_of_clk_add_hw_provider()
phy: cadence-torrent: rework subnode parsing and lane validation
phy: cadence-torrent: rework ref clock init and probe cleanup
phy: cadence-torrent: factor out DP PLL frequency update
phy: cadence-torrent: store clock and reset handles only on success
phy: cadence-torrent: unify link configuration in the probe
phy: cadence-torrent: allow config on an already-configured DP link
phy: cadence-torrent: track current DP link bit rate
phy: cadence-torrent: rework suspend/resume to restore link config
phy: cadence-torrent: rewrite Torrent PHY driver
phy: cadence-torrent: support 8 lanes on the sd0801 PHY
Chintan Vankar (1):
arm64: dts: ti: k3-j7200: Fix QSGMII overlay by adding SERDES PHY
Dmitry Guzman (1):
phy: torrent: fix `RX_DIAG_NQST_CTRL` register address
.../bindings/phy/phy-cadence-torrent.yaml | 9 +-
.../dts/ti/k3-j7200-evm-quad-port-eth-exp.dtso | 3 +-
.../gpu/drm/bridge/cadence/cdns-mhdp8546-core.c | 11 +-
drivers/phy/cadence/phy-cadence-torrent.c | 9411 +++++++++-----------
include/dt-bindings/phy/phy-cadence.h | 7 +
5 files changed, 4438 insertions(+), 5003 deletions(-)
---
base-commit: 6515d69692fb374d01e3dc95eef53047ca8f947c
change-id: 20261103-phy-cadence-torrent-ng-8d497bd05f48
Best regards,
--
Benjamin Robin <benjamin.robin@bootlin.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 03/22] dt-bindings: phy: cadence-torrent: make cdns,num-lanes optional again
2026-12-02 15:08 [PATCH v2 00/22] phy: cadence-torrent: rewrite Torrent PHY driver Benjamin Robin
@ 2026-12-02 15:08 ` Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 05/22] " Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 06/22] phy: torrent: fix `RX_DIAG_NQST_CTRL` register address Benjamin Robin
2 siblings, 0 replies; 6+ messages in thread
From: Benjamin Robin @ 2026-12-02 15:08 UTC (permalink / raw)
To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Siddharth Vadapalli,
Andrew Davis, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec, Luca Ceresoli,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Vinod Koul, Manivannan Sadhasivam, Swapnil Jakhade,
Yuti Amonkar, Philipp Zabel
Cc: thomas.petazzoni, Chintan Vankar, Abhash Kumar Jha,
Thomas Richard, Gregory CLEMENT, Théo Lebrun, Tawfik Bayouk,
Vladimir Kondratiev, linux-arm-kernel, devicetree, linux-kernel,
dri-devel, linux-phy, Benjamin Robin, stable
Make the cdns,num-lanes property optional again by defaulting to 4 lanes
when it is absent from the PHY node, restoring the behavior before it
was made mandatory in a previous commit.
Fixes: 074e99153594 ("dt-bindings: phy: cadence-torrent: Update Torrent PHY bindings for generic use")
Cc: stable@vger.kernel.org
Signed-off-by: Benjamin Robin <benjamin.robin@bootlin.com>
---
Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml | 1 -
1 file changed, 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
index 9af39b33646a..827f76e5edba 100644
--- a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
+++ b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml
@@ -129,7 +129,6 @@ patternProperties:
- resets
- "#phy-cells"
- cdns,phy-type
- - cdns,num-lanes
additionalProperties: false
--
2.56.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 05/22] phy: cadence-torrent: make cdns,num-lanes optional again
2026-12-02 15:08 [PATCH v2 00/22] phy: cadence-torrent: rewrite Torrent PHY driver Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 03/22] dt-bindings: phy: cadence-torrent: make cdns,num-lanes optional again Benjamin Robin
@ 2026-12-02 15:08 ` Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 06/22] phy: torrent: fix `RX_DIAG_NQST_CTRL` register address Benjamin Robin
2 siblings, 0 replies; 6+ messages in thread
From: Benjamin Robin @ 2026-12-02 15:08 UTC (permalink / raw)
To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Siddharth Vadapalli,
Andrew Davis, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec, Luca Ceresoli,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Vinod Koul, Manivannan Sadhasivam, Swapnil Jakhade,
Yuti Amonkar, Philipp Zabel
Cc: thomas.petazzoni, Chintan Vankar, Abhash Kumar Jha,
Thomas Richard, Gregory CLEMENT, Théo Lebrun, Tawfik Bayouk,
Vladimir Kondratiev, linux-arm-kernel, devicetree, linux-kernel,
dri-devel, linux-phy, Benjamin Robin, stable
Make the cdns,num-lanes property optional again by defaulting to 4 lanes
when it is absent from the PHY node, restoring the behavior before it
was made mandatory in a previous commit.
Fixes: d09945eacad0 ("phy: cadence-torrent: Check total lane count for all subnodes is within limit")
Cc: stable@vger.kernel.org
Signed-off-by: Benjamin Robin <benjamin.robin@bootlin.com>
---
drivers/phy/cadence/phy-cadence-torrent.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadence/phy-cadence-torrent.c
index 1e178aa2ffd7..42d60102c0f8 100644
--- a/drivers/phy/cadence/phy-cadence-torrent.c
+++ b/drivers/phy/cadence/phy-cadence-torrent.c
@@ -27,6 +27,7 @@
#define REF_CLK_100MHZ 100000000
#define REF_CLK_156_25MHZ 156250000
+#define DEFAULT_NUM_LANES 4
#define MAX_NUM_LANES 4
#define DEFAULT_MAX_BIT_RATE 8100 /* in Mbps */
@@ -3033,13 +3034,8 @@ static int cdns_torrent_phy_probe(struct platform_device *pdev)
goto put_child;
}
- if (of_property_read_u32(child, "cdns,num-lanes",
- &cdns_phy->phys[node].num_lanes)) {
- dev_err(dev, "%s: No \"cdns,num-lanes\"-property.\n",
- child->full_name);
- ret = -EINVAL;
- goto put_child;
- }
+ cdns_phy->phys[node].num_lanes = DEFAULT_NUM_LANES;
+ of_property_read_u32(child, "cdns,num-lanes", &cdns_phy->phys[node].num_lanes);
total_num_lanes += cdns_phy->phys[node].num_lanes;
--
2.56.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 06/22] phy: torrent: fix `RX_DIAG_NQST_CTRL` register address
2026-12-02 15:08 [PATCH v2 00/22] phy: cadence-torrent: rewrite Torrent PHY driver Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 03/22] dt-bindings: phy: cadence-torrent: make cdns,num-lanes optional again Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 05/22] " Benjamin Robin
@ 2026-12-02 15:08 ` Benjamin Robin
2026-12-04 11:50 ` Swapnil Kashinath Jakhade
2 siblings, 1 reply; 6+ messages in thread
From: Benjamin Robin @ 2026-12-02 15:08 UTC (permalink / raw)
To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Siddharth Vadapalli,
Andrew Davis, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec, Luca Ceresoli,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Vinod Koul, Manivannan Sadhasivam, Swapnil Jakhade,
Yuti Amonkar, Philipp Zabel
Cc: thomas.petazzoni, Chintan Vankar, Abhash Kumar Jha,
Thomas Richard, Gregory CLEMENT, Théo Lebrun, Tawfik Bayouk,
Vladimir Kondratiev, linux-arm-kernel, devicetree, linux-kernel,
dri-devel, linux-phy, Benjamin Robin, Dmitry Guzman, stable
From: Dmitry Guzman <Dmitry.Guzman@mobileye.com>
The address of register `RX_DIAG_NQST_CTRL` is defined as 0x01E5.
According to the datasheet, the correct address is 0x01E6.
Fix the register address value by replacing `0x01E5` with `0x01E6`.
Fixes: 6bcf3cb30037 ("phy: cadence-torrent: Add support for PHY multilink configuration")
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Guzman <Dmitry.Guzman@mobileye.com>
[Benjamin: Commit message reformulated]
Signed-off-by: Benjamin Robin <benjamin.robin@bootlin.com>
---
drivers/phy/cadence/phy-cadence-torrent.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadence/phy-cadence-torrent.c
index 42d60102c0f8..9b3ae73c4d78 100644
--- a/drivers/phy/cadence/phy-cadence-torrent.c
+++ b/drivers/phy/cadence/phy-cadence-torrent.c
@@ -217,7 +217,7 @@
#define RX_DIAG_DFE_AMP_TUNE_2 0x01E2U
#define RX_DIAG_DFE_AMP_TUNE_3 0x01E3U
#define RX_DIAG_REE_DAC_CTRL 0x01E4U
-#define RX_DIAG_NQST_CTRL 0x01E5U
+#define RX_DIAG_NQST_CTRL 0x01E6U
#define RX_DIAG_SIGDET_TUNE 0x01E8U
#define RX_DIAG_PI_RATE 0x01F4U
#define RX_DIAG_PI_CAP 0x01F5U
--
2.56.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* RE: [PATCH v2 06/22] phy: torrent: fix `RX_DIAG_NQST_CTRL` register address
2026-12-02 15:08 ` [PATCH v2 06/22] phy: torrent: fix `RX_DIAG_NQST_CTRL` register address Benjamin Robin
@ 2026-12-04 11:50 ` Swapnil Kashinath Jakhade
2026-12-04 14:00 ` Benjamin Robin
0 siblings, 1 reply; 6+ messages in thread
From: Swapnil Kashinath Jakhade @ 2026-12-04 11:50 UTC (permalink / raw)
To: Benjamin Robin, Nishanth Menon, Vignesh Raghavendra, Tero Kristo,
Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Siddharth Vadapalli, Andrew Davis, Andrzej Hajda, Neil Armstrong,
Robert Foss, Laurent Pinchart, Jonas Karlman, Jernej Skrabec,
Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Vinod Koul,
Manivannan Sadhasivam, Philipp Zabel
Cc: thomas.petazzoni@bootlin.com, Chintan Vankar, Abhash Kumar Jha,
Thomas Richard, Gregory CLEMENT, Théo Lebrun, Tawfik Bayouk,
Vladimir Kondratiev, linux-arm-kernel@lists.infradead.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, linux-phy@lists.infradead.org,
Dmitry Guzman, stable@vger.kernel.org, Milind Parab
Hi Benjamin,
> -----Original Message-----
> From: Benjamin Robin <benjamin.robin@bootlin.com>
> Sent: Wednesday, December 2, 2026 8:39 PM
> To: Nishanth Menon <nm@ti.com>; Vignesh Raghavendra <vigneshr@ti.com>;
> Tero Kristo <kristo@kernel.org>; Rob Herring <robh@kernel.org>; Krzysztof
> Kozlowski <krzk+dt@kernel.org>; Conor Dooley <conor+dt@kernel.org>;
> Siddharth Vadapalli <s-vadapalli@ti.com>; Andrew Davis <afd@ti.com>; Andrzej
> Hajda <andrzej.hajda@intel.com>; Neil Armstrong <neil.armstrong@linaro.org>;
> Robert Foss <rfoss@kernel.org>; Laurent Pinchart
> <Laurent.pinchart@ideasonboard.com>; Jonas Karlman <jonas@kwiboo.se>;
> Jernej Skrabec <jernej.skrabec@gmail.com>; Luca Ceresoli
> <luca.ceresoli@bootlin.com>; Maarten Lankhorst
> <maarten.lankhorst@linux.intel.com>; Maxime Ripard <mripard@kernel.org>;
> Thomas Zimmermann <tzimmermann@suse.de>; David Airlie
> <airlied@gmail.com>; Simona Vetter <simona@ffwll.ch>; Vinod Koul
> <vkoul@kernel.org>; Manivannan Sadhasivam <mani@kernel.org>; Swapnil
> Kashinath Jakhade <sjakhade@cadence.com>; Yuti Amonkar
> <yamonkar@cadence.com>; Philipp Zabel <p.zabel@pengutronix.de>
> Cc: thomas.petazzoni@bootlin.com; Chintan Vankar <c-vankar@ti.com>; Abhash
> Kumar Jha <a-kumar2@ti.com>; Thomas Richard
> <thomas.richard@bootlin.com>; Gregory CLEMENT
> <gregory.clement@bootlin.com>; Théo Lebrun <theo.lebrun@bootlin.com>;
> Tawfik Bayouk <tawfik.bayouk@mobileye.com>; Vladimir Kondratiev
> <vladimir.kondratiev@mobileye.com>; linux-arm-kernel@lists.infradead.org;
> devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; dri-
> devel@lists.freedesktop.org; linux-phy@lists.infradead.org; Benjamin Robin
> <benjamin.robin@bootlin.com>; Dmitry Guzman
> <Dmitry.Guzman@mobileye.com>; stable@vger.kernel.org
> Subject: [PATCH v2 06/22] phy: torrent: fix `RX_DIAG_NQST_CTRL` register
> address
>
> EXTERNAL MAIL
>
>
> From: Dmitry Guzman <Dmitry.Guzman@mobileye.com>
>
> The address of register `RX_DIAG_NQST_CTRL` is defined as 0x01E5.
> According to the datasheet, the correct address is 0x01E6.
>
> Fix the register address value by replacing `0x01E5` with `0x01E6`.
>
Could you please clarify which datasheet is being referenced here? The earlier register
offset is correct (as per cdn_sd0801_t16ffc_pmaspec_r130_v0.24.pdf) for the Torrent (SD0801)
PHY implemented on the T16FFC process node.
Register offsets may differ slightly across implementations based on different process nodes,
so, this may need a proper handling.
Thanks & regards,
Swapnil
> Fixes: 6bcf3cb30037 ("phy: cadence-torrent: Add support for PHY multilink
> configuration")
> Cc: stable@vger.kernel.org
> Signed-off-by: Dmitry Guzman <Dmitry.Guzman@mobileye.com>
> [Benjamin: Commit message reformulated]
> Signed-off-by: Benjamin Robin <benjamin.robin@bootlin.com>
> ---
> drivers/phy/cadence/phy-cadence-torrent.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/phy/cadence/phy-cadence-torrent.c
> b/drivers/phy/cadence/phy-cadence-torrent.c
> index 42d60102c0f8..9b3ae73c4d78 100644
> --- a/drivers/phy/cadence/phy-cadence-torrent.c
> +++ b/drivers/phy/cadence/phy-cadence-torrent.c
> @@ -217,7 +217,7 @@
> #define RX_DIAG_DFE_AMP_TUNE_2 0x01E2U
> #define RX_DIAG_DFE_AMP_TUNE_3 0x01E3U
> #define RX_DIAG_REE_DAC_CTRL 0x01E4U
> -#define RX_DIAG_NQST_CTRL 0x01E5U
> +#define RX_DIAG_NQST_CTRL 0x01E6U
> #define RX_DIAG_SIGDET_TUNE 0x01E8U
> #define RX_DIAG_PI_RATE 0x01F4U
> #define RX_DIAG_PI_CAP 0x01F5U
>
> --
> 2.56.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 06/22] phy: torrent: fix `RX_DIAG_NQST_CTRL` register address
2026-12-04 11:50 ` Swapnil Kashinath Jakhade
@ 2026-12-04 14:00 ` Benjamin Robin
0 siblings, 0 replies; 6+ messages in thread
From: Benjamin Robin @ 2026-12-04 14:00 UTC (permalink / raw)
To: Nishanth Menon, Vignesh Raghavendra, Tero Kristo, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Siddharth Vadapalli,
Andrew Davis, Andrzej Hajda, Neil Armstrong, Robert Foss,
Laurent Pinchart, Jonas Karlman, Jernej Skrabec, Luca Ceresoli,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
Simona Vetter, Vinod Koul, Manivannan Sadhasivam, Philipp Zabel,
Swapnil Kashinath Jakhade
Cc: thomas.petazzoni@bootlin.com, Chintan Vankar, Abhash Kumar Jha,
Thomas Richard, Gregory CLEMENT, Théo Lebrun, Tawfik Bayouk,
Vladimir Kondratiev, linux-arm-kernel@lists.infradead.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, linux-phy@lists.infradead.org,
Dmitry Guzman, stable@vger.kernel.org, Milind Parab
On Friday, December 4, 2026 at 12:50 PM, Swapnil Kashinath Jakhade wrote:
> > From: Dmitry Guzman <Dmitry.Guzman@mobileye.com>
> >
> > The address of register `RX_DIAG_NQST_CTRL` is defined as 0x01E5.
> > According to the datasheet, the correct address is 0x01E6.
> >
> > Fix the register address value by replacing `0x01E5` with `0x01E6`.
> >
>
> Could you please clarify which datasheet is being referenced here? The earlier register
> offset is correct (as per cdn_sd0801_t16ffc_pmaspec_r130_v0.24.pdf) for the Torrent (SD0801)
> PHY implemented on the T16FFC process node.
> Register offsets may differ slightly across implementations based on different process nodes,
> so, this may need a proper handling.
I have the following versions, provided by Mobileye:
- cdn_sd0801_t5g_intgrguide_r130_v2.9.pdf (IP Rev: R130 - Doc Rev: V0.11,
June 01, 2023)
- cdn_sd0801_t5g_pmaspec_r130_v0.14.pdf
I have not checked, yet, with Dmitry Guzman why this fix was made;
I'm going to ask him.
Right after receiving your email, I checked on the J784S4XEVM
(TSMC-16, rev 130). The address 0x050783CA (register offset 0x01E5)
returns 0x0B98, which is the default value of RX_DIAG_NQST_CTRL.
So it looks like the previous address for RX_DIAG_NQST_CTRL was right
I will drop that patch (at least in its current form) in v3.
I tried to check the default values of the surrounding registers,
but most of the expected values do not match. Was the
RX_DIAG_DFE_AMP_TUNE_4 register dropped?
Do you know whether a more recent version of the user guide can be shared?
I will ask Mobileye (again), but they previously said that it is the latest
version they have for integrating the Torrent PHY in their SoC.
>
> Thanks & regards,
> Swapnil
>
> > Fixes: 6bcf3cb30037 ("phy: cadence-torrent: Add support for PHY multilink
> > configuration")
> > Cc: stable@vger.kernel.org
> > Signed-off-by: Dmitry Guzman <Dmitry.Guzman@mobileye.com>
> > [Benjamin: Commit message reformulated]
> > Signed-off-by: Benjamin Robin <benjamin.robin@bootlin.com>
> > ---
> > drivers/phy/cadence/phy-cadence-torrent.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/phy/cadence/phy-cadence-torrent.c
> > b/drivers/phy/cadence/phy-cadence-torrent.c
> > index 42d60102c0f8..9b3ae73c4d78 100644
> > --- a/drivers/phy/cadence/phy-cadence-torrent.c
> > +++ b/drivers/phy/cadence/phy-cadence-torrent.c
> > @@ -217,7 +217,7 @@
> > #define RX_DIAG_DFE_AMP_TUNE_2 0x01E2U
> > #define RX_DIAG_DFE_AMP_TUNE_3 0x01E3U
> > #define RX_DIAG_REE_DAC_CTRL 0x01E4U
> > -#define RX_DIAG_NQST_CTRL 0x01E5U
> > +#define RX_DIAG_NQST_CTRL 0x01E6U
> > #define RX_DIAG_SIGDET_TUNE 0x01E8U
> > #define RX_DIAG_PI_RATE 0x01F4U
> > #define RX_DIAG_PI_CAP 0x01F5U
> >
> > --
> > 2.56.1
>
>
--
Benjamin Robin, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-12-04 14:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 15:08 [PATCH v2 00/22] phy: cadence-torrent: rewrite Torrent PHY driver Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 03/22] dt-bindings: phy: cadence-torrent: make cdns,num-lanes optional again Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 05/22] " Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 06/22] phy: torrent: fix `RX_DIAG_NQST_CTRL` register address Benjamin Robin
2026-12-04 11:50 ` Swapnil Kashinath Jakhade
2026-12-04 14:00 ` Benjamin Robin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox