Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Robin <benjamin.robin@bootlin.com>
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>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	Swapnil Kashinath Jakhade <sjakhade@cadence.com>
Cc: "thomas.petazzoni@bootlin.com" <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"
	<linux-arm-kernel@lists.infradead.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"linux-phy@lists.infradead.org" <linux-phy@lists.infradead.org>,
	"Dmitry Guzman" <Dmitry.Guzman@mobileye.com>,
	"stable@vger.kernel.org" <stable@vger.kernel.org>,
	"Milind Parab" <mparab@cadence.com>
Subject: Re: [PATCH v2 06/22] phy: torrent: fix `RX_DIAG_NQST_CTRL` register address
Date: Fri, 04 Dec 2026 15:00:00 +0100	[thread overview]
Message-ID: <h4JgwitLRBSdcLppi-K_Xw@bootlin.com> (raw)
In-Reply-To: <DS0PR07MB11686704DF7F405A563D54C1FC54A2@DS0PR07MB11686.namprd07.prod.outlook.com>

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





  reply	other threads:[~2026-12-04 14:02 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 01/22] arm64: dts: ti: k3-j7200: Fix QSGMII overlay by adding SERDES PHY Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 02/22] drm/bridge: cdns-mhdp8546: Power on/off the PHY in probe/remove 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 04/22] dt-bindings: phy: cadence-torrent: add phy-mode constants Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 05/22] phy: cadence-torrent: make cdns,num-lanes optional again 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 message]
2026-12-02 15:08 ` [PATCH v2 07/22] phy: cadence-torrent: rename symbols to prepare for rewrite Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 08/22] phy: cadence-torrent: replace regmap with readw/writew Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 09/22] phy: cadence-torrent: move refclk clk_init_data to the stack Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 10/22] phy: cadence-torrent: drop diag_tx_drv from DP voltage coeff Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 11/22] phy: cadence-torrent: use link lane count and mlane for DP config Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 12/22] phy: cadence-torrent: use devm_of_clk_add_hw_provider() Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 13/22] phy: cadence-torrent: rework subnode parsing and lane validation Benjamin Robin
2026-12-02 15:08 ` [PATCH v2 14/22] phy: cadence-torrent: rework ref clock init and probe cleanup Benjamin Robin
2026-12-02 15:09 ` [PATCH v2 15/22] phy: cadence-torrent: factor out DP PLL frequency update Benjamin Robin
2026-12-02 15:09 ` [PATCH v2 16/22] phy: cadence-torrent: store clock and reset handles only on success Benjamin Robin
2026-12-02 15:09 ` [PATCH v2 17/22] phy: cadence-torrent: unify link configuration in the probe Benjamin Robin
2026-12-02 15:09 ` [PATCH v2 18/22] phy: cadence-torrent: allow config on an already-configured DP link Benjamin Robin
2026-12-02 15:09 ` [PATCH v2 19/22] phy: cadence-torrent: track current DP link bit rate Benjamin Robin
2026-12-02 15:09 ` [PATCH v2 20/22] phy: cadence-torrent: rework suspend/resume to restore link config Benjamin Robin
2026-12-02 15:09 ` [PATCH v2 22/22] phy: cadence-torrent: support 8 lanes on the sd0801 PHY Benjamin Robin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=h4JgwitLRBSdcLppi-K_Xw@bootlin.com \
    --to=benjamin.robin@bootlin.com \
    --cc=Dmitry.Guzman@mobileye.com \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=a-kumar2@ti.com \
    --cc=afd@ti.com \
    --cc=airlied@gmail.com \
    --cc=andrzej.hajda@intel.com \
    --cc=c-vankar@ti.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gregory.clement@bootlin.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=kristo@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=luca.ceresoli@bootlin.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mani@kernel.org \
    --cc=mparab@cadence.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=nm@ti.com \
    --cc=p.zabel@pengutronix.de \
    --cc=rfoss@kernel.org \
    --cc=robh@kernel.org \
    --cc=s-vadapalli@ti.com \
    --cc=simona@ffwll.ch \
    --cc=sjakhade@cadence.com \
    --cc=stable@vger.kernel.org \
    --cc=tawfik.bayouk@mobileye.com \
    --cc=theo.lebrun@bootlin.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=thomas.richard@bootlin.com \
    --cc=tzimmermann@suse.de \
    --cc=vigneshr@ti.com \
    --cc=vkoul@kernel.org \
    --cc=vladimir.kondratiev@mobileye.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox