From nobody Sun Feb 8 21:47:14 2026 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAE143128D2 for ; Mon, 2 Feb 2026 08:05:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770019555; cv=none; b=NlBWUe7DLG3qsO5148TVFIdBDgsVFheQEEb3J0VzixDSZ4+8rK+kBUhTWyT8LYKB8XdglV1aoAoJtRJ1YD72/iZTHsPB6B9vncR4qka+z+glOef4kGtT/Ou/WIbbgJZ3Rmm1V8o+3bP6ZP/wyweDBNdRKb/fp/NXlASVTBETkhw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770019555; c=relaxed/simple; bh=4DLuHDpXAVSEadkbFoPphu57qatbcSuZfLy7Dg1mEiY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cOnXHqiMJ05Aw/izkDOR/v7pAFU24JtVU2Io1PAH/VX0BRQInTICrL40R/jQC74/74tn7xw7DNDSc6/om52qqBgAdirGG5mmal4IztZk84c+DMRC9T/EXeO2TTGcCXbyvlqUSwUK+7kpxQC19MS6yRM9iVWyVGWBzBfwpBnIhHI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Ic+NJa+V; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ic+NJa+V" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-480142406b3so29482945e9.1 for ; Mon, 02 Feb 2026 00:05:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770019552; x=1770624352; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=W9k1zjIr03iooF2YM3kRmAjERuwBowXr3HGt8AVXOiw=; b=Ic+NJa+V03sLjetxA/dH8u42g5eBTmgG+dMAFgpYxQyMSZq/i+UpgVL4jgu8f60iPH DQ+XA2y19M9nQNk7Fk8jPPMvb1k6PLS4L9oCYrt3VU/i6KGR+yQFQ4FcF+++fAqtf0fQ lfSTIpIIM1rWOA2j+/2iJ9ANcHAoX1Q76kcIj6DyJBNhRk6mGwEAsuIQJ3HPsQ3a9B0v BSr/qPRxonn5279mm56b6d8LGQwk1cmVlqM+GFXWrdrgEdBo0RXNbII8of+opeUA58rq JASeWkISpCRJm72gMzwn+2bA5pC/+Evtwh3IC1YQfHlr+4+LjXhnLS/eReBxkAK9mYhw Nn/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770019552; x=1770624352; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=W9k1zjIr03iooF2YM3kRmAjERuwBowXr3HGt8AVXOiw=; b=mYKs8Slv9IkPY/CP/ufAtFCDqqST1w2OaWOmhyBJrz9//hMU1ZhV9jkEdqxjMok+LZ eIRZ1wERClKXN95/kNsdTETwWeOol3PevvfTKsxtkbjOH+aChH/0jBG8dvdb/ksEVlZY FjIK0WjlgDrMWM9RRHW+q07XWBLrsSZ7vCuKuHFQqNEpZtKGR5ZMwlqpPT7uXEoYloT8 HJrlzVGYRE13rlOEwYixX8RNw+REa3O9t6fbV9+Vnf2nLErQpXkvnnDEPrtdmIIpQTp3 B4FT2tFxfkAvLyUhQo3VQSBYARPj8wrs6y4ZJzpD+VvFJMIqBSHm7EnG5nBfLTbqsnaB vP/Q== X-Forwarded-Encrypted: i=1; AJvYcCUNfguJXEX3v8iRnhWBUf5bb0Xhlx6q6u0cX/HwRlgDKwVguZYZSXzNlgpWHhzJaLkucG67dDb8B0lhHVE=@vger.kernel.org X-Gm-Message-State: AOJu0YxzznJtnh2qmPgT0jtbHxj6l5QNl28eqUOcAXdFUUyE3Psmntvd +UsBZyFXTpVPl1+EnD2VZGQRxHdOr/Mq6PHSzRCdQ3jlEB82MZ7eW+Qw X-Gm-Gg: AZuq6aKAUWK2Sy+fUYplE4347F0c8g3Zp9uHqHcWP+pLemlGTmD6AV59e+IMXIkjhVc bE0Iw+UhBPTWmCUT5/tL1b1+N1v6DtyDDk522/5hrWpyQ9XFrE/IGek7e+l+guoN6kI7FLmO6WG ZWsix/+6BfZZSmI4KdDua6Jb71OcvDOnvrBUXz2H01OM82dRXjlbJ8e7/vogRyiocBzaCQBDw0Q K6Mm9KCBYADnZTv6Jf9J25w5amjw7ft1T/fa7YDVfe/NGNlcB7XhZRqvQ472f8pzYekCPxnVd0B nUa4vcgQoBlbPE+5a5yxIkPSalcTjnWxh4CIPLTgJyqb6iesZFErQrE03YPchQi6QumNwwYb6BJ fJ+EUFKDpT4XjcaoJ+PgkdWagAN8FSJYLnSnIKcnd4kLaHMUbCX7v9tnTGDl2vSX38i5wQvvWei 4Tdr6vcFriEUk= X-Received: by 2002:a05:600c:4e56:b0:480:53ce:45d3 with SMTP id 5b1f17b1804b1-482db47cdc5mr122394605e9.18.1770019552325; Mon, 02 Feb 2026 00:05:52 -0800 (PST) Received: from xeon ([188.163.112.49]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48066c37420sm475043365e9.9.2026.02.02.00.05.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Feb 2026 00:05:51 -0800 (PST) From: Svyatoslav Ryhel To: Greg Kroah-Hartman , Mikko Perttunen , Thierry Reding , Jonathan Hunter , Svyatoslav Ryhel Cc: linux-usb@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 3/4] usb: phy: tegra: parametrize HSIC PTS value Date: Mon, 2 Feb 2026 10:05:25 +0200 Message-ID: <20260202080526.23487-4-clamor95@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260202080526.23487-1-clamor95@gmail.com> References: <20260202080526.23487-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The parallel transceiver select used in HSIC mode differs on Tegra20, where it uses the UTMI value (0), whereas Tegra30+ uses a dedicated HSIC value. Reflect this in the SoC config. Signed-off-by: Svyatoslav Ryhel --- drivers/usb/phy/phy-tegra-usb.c | 7 +++---- include/linux/usb/tegra_usb_phy.h | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/usb/phy/phy-tegra-usb.c b/drivers/usb/phy/phy-tegra-us= b.c index 6173b240c3ea..812d99443180 100644 --- a/drivers/usb/phy/phy-tegra-usb.c +++ b/drivers/usb/phy/phy-tegra-usb.c @@ -957,10 +957,7 @@ static int uhsic_phy_power_on(struct tegra_usb_phy *ph= y) writel_relaxed(val, base + USB_USBMODE); } =20 - if (phy->soc_config->has_hostpc) - set_pts(phy, TEGRA_USB_HOSTPC1_DEVLC_PTS_HSIC); - else - set_pts(phy, 0); + set_pts(phy, phy->soc_config->uhsic_pts_value); =20 val =3D readl_relaxed(base + USB_TXFILLTUNING); if ((val & USB_FIFO_TXFILL_MASK) !=3D USB_FIFO_TXFILL_THRES(0x10)) { @@ -1474,6 +1471,7 @@ static const struct tegra_phy_soc_config tegra20_soc_= config =3D { .requires_pmc_ao_power_up =3D false, .uhsic_registers_offset =3D 0, .uhsic_tx_rtune =3D 0, /* 40 ohm */ + .uhsic_pts_value =3D 0, /* UTMI */ }; =20 static const struct tegra_phy_soc_config tegra30_soc_config =3D { @@ -1484,6 +1482,7 @@ static const struct tegra_phy_soc_config tegra30_soc_= config =3D { .requires_pmc_ao_power_up =3D true, .uhsic_registers_offset =3D 0x400, .uhsic_tx_rtune =3D 8, /* 50 ohm */ + .uhsic_pts_value =3D TEGRA_USB_HOSTPC1_DEVLC_PTS_HSIC, }; =20 static const struct of_device_id tegra_usb_phy_id_table[] =3D { diff --git a/include/linux/usb/tegra_usb_phy.h b/include/linux/usb/tegra_us= b_phy.h index fbdd2dcb3a2b..81d9f22e58b5 100644 --- a/include/linux/usb/tegra_usb_phy.h +++ b/include/linux/usb/tegra_usb_phy.h @@ -27,6 +27,7 @@ struct gpio_desc; * uhsic_registers_offset: for Tegra30+ where HSIC registers were offset * comparing to Tegra20 by 0x400, since Tegra20 has no UTMIP on PHY2 * uhsic_tx_rtune: fine tuned 50 Ohm termination resistor for NMOS/PMOS dr= iver + * uhsic_pts_value: parallel transceiver select enumeration value */ =20 struct tegra_phy_soc_config { @@ -37,6 +38,7 @@ struct tegra_phy_soc_config { bool requires_pmc_ao_power_up; u32 uhsic_registers_offset; u32 uhsic_tx_rtune; + u32 uhsic_pts_value; }; =20 struct tegra_utmip_config { --=20 2.51.0