From: Kartik Rajput <kkartik@nvidia.com>
To: Alim Akhtar <alim.akhtar@samsung.com>,
Bart Van Assche <bvanassche@acm.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Thierry Reding <thierry.reding@kernel.org>,
Jonathan Hunter <jonathanh@nvidia.com>,
"James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
"Martin K. Petersen" <mkp@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Bean Huo <beanhuo@micron.com>,
Stanley Jhu <stanleyjhu@google.com>
Cc: "Thierry Reding" <treding@nvidia.com>,
"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
linux-scsi@vger.kernel.org, devicetree@vger.kernel.org,
linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org,
"Kartik Rajput" <kkartik@nvidia.com>,
"Krzysztof Kozlowski" <krzysztof.kozlowski@oss.qualcomm.com>
Subject: [PATCH v3 0/4] Add UFS host controller support for NVIDIA Tegra264
Date: Tue, 1 Dec 2026 16:52:07 +0530 [thread overview]
Message-ID: <20261201-tegra264-ufs-v3-0-1d04d40388a4@nvidia.com> (raw)
Add UFS host controller support for NVIDIA Tegra264 SoCs. The controller
supports UFS 3.1 up to HS-G4B on two data lanes.
Changes in v3:
- Rework the Kconfig entry:
- Depend on ARCH_TEGRA instead of ARCH_TEGRA_264_SOC.
- Limit the driver to 64-bit architectures, not just compile testing,
because ARCH_TEGRA also covers 32-bit SoCs and the high-speed link
clock rate exceeds the range of unsigned long on 32-bit systems.
- Select GENERIC_PHY instead of PHY_TEGRA_MPHY, and drop the claimed
dependency on the M-PHY series: the driver only uses the generic
PHY API.
- Drop the Tegra264 references from the prompt and help text.
- Drop the Tegra264 reference from the driver header.
- Use ufshcd_is_hs_mode() instead of checking hs_rate to decide when to
program the high-speed link clock rate.
- Widen the DMA mask from 32 to 39 bits.
- Read back the auxiliary device-control register before the delays
that follow writes to it.
- Use the kernel multi-line comment style, and "hibern8" instead of
"H8".
- Link to v2: https://lore.kernel.org/r/20260929-tegra264-ufs-v2-0-f0467b9c503e@nvidia.com
Changes in v2:
- Rename the UFS functional clock to "core" and the host-consumed UPHY
PLL clock to "hs" in the binding and driver.
- Use raw M-PHY cell values in the binding example so it can be checked
independently of the prerequisite series.
- Drop the unnecessary mod_devicetable.h include and clean up the OF
match table initializers.
- Limit compile testing to 64-bit architectures because the high-speed
link clock rate exceeds the range of unsigned long on 32-bit systems.
- Tear down the M-PHY lanes in reverse initialization order.
- Link to v1: https://lore.kernel.org/r/20260909-tegra264-ufs-v1-0-e4a9831702a0@nvidia.com
Signed-off-by: Kartik Rajput <kkartik@nvidia.com>
---
Kartik Rajput (4):
dt-bindings: ufs: Add nvidia,tegra264-ufs
scsi: ufs: Add UIC DEBUGSAVECONFIGTIME attribute and its field masks
scsi: ufs: hisi: Use VS_DEBUGSAVECONFIGTIME instead of a literal address
scsi: ufs: tegra: Add Tegra264 UFS host controller driver
.../bindings/ufs/nvidia,tegra264-ufs.yaml | 120 ++++
drivers/ufs/host/Kconfig | 13 +
drivers/ufs/host/Makefile | 1 +
drivers/ufs/host/ufs-hisi.c | 6 +-
drivers/ufs/host/ufs-tegra.c | 696 +++++++++++++++++++++
include/ufs/unipro.h | 6 +
6 files changed, 838 insertions(+), 4 deletions(-)
---
base-commit: a9c48428cbd8d96b26f92631d0db6f8519c5fcc5
change-id: 20260909-tegra264-ufs-92edda57c75a
Best regards,
--
Kartik Rajput <kkartik@nvidia.com>
next reply other threads:[~2026-12-01 11:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 11:22 Kartik Rajput [this message]
2026-12-01 11:22 ` [PATCH v3 1/4] dt-bindings: ufs: Add nvidia,tegra264-ufs Kartik Rajput
2026-12-01 11:22 ` [PATCH v3 2/4] scsi: ufs: Add UIC DEBUGSAVECONFIGTIME attribute and its field masks Kartik Rajput
2026-12-01 11:22 ` [PATCH v3 3/4] scsi: ufs: hisi: Use VS_DEBUGSAVECONFIGTIME instead of a literal address Kartik Rajput
2026-12-01 11:22 ` [PATCH v3 4/4] scsi: ufs: tegra: Add Tegra264 UFS host controller driver Kartik Rajput
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=20261201-tegra264-ufs-v3-0-1d04d40388a4@nvidia.com \
--to=kkartik@nvidia.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=alim.akhtar@samsung.com \
--cc=beanhuo@micron.com \
--cc=bvanassche@acm.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jonathanh@nvidia.com \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@oss.qualcomm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mkp@kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=stanleyjhu@google.com \
--cc=thierry.reding@kernel.org \
--cc=treding@nvidia.com \
--cc=u.kleine-koenig@baylibre.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
all inboxes | Powered by JetHome®