All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@kernel.org>
To: Jon Hunter <jonathanh@nvidia.com>
Cc: JC Kuo <jckuo@nvidia.com>, Vinod Koul <vkoul@kernel.org>,
	 Neil Armstrong <neil.armstrong@linaro.org>,
	Manivannan Sadhasivam <mani@kernel.org>,
	 linux-tegra@vger.kernel.org, linux-phy@lists.infradead.org,
	Wayne Chang <waynec@nvidia.com>
Subject: Re: [PATCH v2 2/2] phy: tegra: xusb-tegra186: Extend Tegra264 fuse calibration
Date: Thu, 3 Dec 2026 15:48:32 +0100	[thread overview]
Message-ID: <axGBCNfg4e9O-Arv@orome> (raw)
In-Reply-To: <20261202-tegra-phy-tegra264-v2-2-2ef15ed73f2c@nvidia.com>


[-- Attachment #1.1: Type: text/plain, Size: 1409 bytes --]

On Wed, Dec 02, 2026 at 02:52:18PM +0000, Jon Hunter wrote:
> From: Wayne Chang <waynec@nvidia.com>
> 
> Add support for receiver offset and squelch offset calibration on
> Tegra264 to compensate for manufacturing variation in the USB2
> receivers. The receiver offset calibrates the receiver differential
> offset between D+ and D-, while squelch offset calibrates the squelch
> detector differential offset used to distinguish valid high-speed
> signaling from low-amplitude noise or idle. Each USB2 port has a 4-bit
> REC_OS (receiver offset) value and an 8-bit SQ_OS (squelch offset) value
> stored in fuses.
> 
> Add a SoC data variable 'has_rec_sq_offsets' to indicate if the USB PHY
> supports the REC_OS and SQ_OS register fields. If the USB PHY supports
> these fields, then read REC_OS for ports 0-2 from FUSE_USB_CALIB_EXT_0
> and for port 3 from FUSE_USB_CALIB_EXT3_0 and read SQ_OS for all four
> ports from FUSE_USB_CALIB_EXT2_0. Apply these values to the corresponding
> fields in each port's USB2 pad-control register when powering on the PHY.
> 
> Signed-off-by: Wayne Chang <waynec@nvidia.com>
> Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
> ---
>  drivers/phy/tegra/xusb-tegra186.c | 57 +++++++++++++++++++++++++++++++++++++++
>  drivers/phy/tegra/xusb.h          |  1 +
>  2 files changed, 58 insertions(+)

Reviewed-by: Thierry Reding <treding@nvidia.com>

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 112 bytes --]

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

WARNING: multiple messages have this Message-ID (diff)
From: Thierry Reding <thierry.reding@kernel.org>
To: Jon Hunter <jonathanh@nvidia.com>
Cc: JC Kuo <jckuo@nvidia.com>, Vinod Koul <vkoul@kernel.org>,
	 Neil Armstrong <neil.armstrong@linaro.org>,
	Manivannan Sadhasivam <mani@kernel.org>,
	 linux-tegra@vger.kernel.org, linux-phy@lists.infradead.org,
	Wayne Chang <waynec@nvidia.com>
Subject: Re: [PATCH v2 2/2] phy: tegra: xusb-tegra186: Extend Tegra264 fuse calibration
Date: Thu, 3 Dec 2026 15:48:32 +0100	[thread overview]
Message-ID: <axGBCNfg4e9O-Arv@orome> (raw)
In-Reply-To: <20261202-tegra-phy-tegra264-v2-2-2ef15ed73f2c@nvidia.com>

[-- Attachment #1: Type: text/plain, Size: 1409 bytes --]

On Wed, Dec 02, 2026 at 02:52:18PM +0000, Jon Hunter wrote:
> From: Wayne Chang <waynec@nvidia.com>
> 
> Add support for receiver offset and squelch offset calibration on
> Tegra264 to compensate for manufacturing variation in the USB2
> receivers. The receiver offset calibrates the receiver differential
> offset between D+ and D-, while squelch offset calibrates the squelch
> detector differential offset used to distinguish valid high-speed
> signaling from low-amplitude noise or idle. Each USB2 port has a 4-bit
> REC_OS (receiver offset) value and an 8-bit SQ_OS (squelch offset) value
> stored in fuses.
> 
> Add a SoC data variable 'has_rec_sq_offsets' to indicate if the USB PHY
> supports the REC_OS and SQ_OS register fields. If the USB PHY supports
> these fields, then read REC_OS for ports 0-2 from FUSE_USB_CALIB_EXT_0
> and for port 3 from FUSE_USB_CALIB_EXT3_0 and read SQ_OS for all four
> ports from FUSE_USB_CALIB_EXT2_0. Apply these values to the corresponding
> fields in each port's USB2 pad-control register when powering on the PHY.
> 
> Signed-off-by: Wayne Chang <waynec@nvidia.com>
> Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
> ---
>  drivers/phy/tegra/xusb-tegra186.c | 57 +++++++++++++++++++++++++++++++++++++++
>  drivers/phy/tegra/xusb.h          |  1 +
>  2 files changed, 58 insertions(+)

Reviewed-by: Thierry Reding <treding@nvidia.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2026-12-03 14:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 14:52 [PATCH v2 0/2] Update USB PHY fuse calibration for Tegra264 Jon Hunter
2026-12-02 14:52 ` Jon Hunter
2026-12-02 14:52 ` [PATCH v2 1/2] soc/tegra: fuse: Add USB fuse calibration registers " Jon Hunter
2026-12-02 14:52   ` Jon Hunter
2026-12-03 14:37   ` Thierry Reding
2026-12-03 14:37     ` Thierry Reding
2026-12-02 14:52 ` [PATCH v2 2/2] phy: tegra: xusb-tegra186: Extend Tegra264 fuse calibration Jon Hunter
2026-12-02 14:52   ` Jon Hunter
2026-12-03 14:48   ` Thierry Reding [this message]
2026-12-03 14:48     ` Thierry Reding

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=axGBCNfg4e9O-Arv@orome \
    --to=thierry.reding@kernel.org \
    --cc=jckuo@nvidia.com \
    --cc=jonathanh@nvidia.com \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=vkoul@kernel.org \
    --cc=waynec@nvidia.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.