On Wed, Dec 02, 2026 at 02:52:18PM +0000, Jon Hunter wrote: > From: Wayne Chang > > 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 > Signed-off-by: Jon Hunter > --- > drivers/phy/tegra/xusb-tegra186.c | 57 +++++++++++++++++++++++++++++++++++++++ > drivers/phy/tegra/xusb.h | 1 + > 2 files changed, 58 insertions(+) Reviewed-by: Thierry Reding