[PATCH v2 0/3] ufs-qcom: Add specified gear support for multi gear scaling
From: Giri Prasad Goriparthi
Date: Wed Dec 02 2026 - 03:15:39 EST
This patch series adds support for configuring UFS gear speeds on a
per-OPP frequency basis for Qualcomm UFS host controllers, enabling
more flexible multi-gear scaling.
On certain Qualcomm platforms, the UFS clock frequency and gear speed
do not have a strict one-to-one mapping. To handle this, the first patch
introduces a device tree based configuration mechanism using the
"opp-level" property within the OPP table. This allows each supported
operating frequency to be explicitly associated with a specific HS gear
speed. When this property is absent, the driver gracefully falls back to
the existing default frequency-to-gear lookup table.
The second patch applies this configuration to the Hamoa platform,
assigning the appropriate HS gear levels (G1, G3, G5) to the
corresponding OPP frequency entries in the device tree.
The third patch applies this configuration to the Talos platform,
assigning the appropriate HS gear levels (G1, G1, G3) to the
corresponding OPP frequency entries in the device tree.
Changes in V2:
- Retained Reviewed-by tag from Mani on hamoa.dtsi
- Drop __func__ from dev_err() [Mani]
- Fix variable declaration order to preserve Xmas order [Mani]
- Fix opp-level validation to check OPP_LEVEL_UNSET
explicitly [sashiko-bot]
- Add Talos DT opp-level entries
Signed-off-by: Giri Prasad Goriparthi <giri.goriparthi@xxxxxxxxxxxxxxxx>
---
Giri Prasad Goriparthi (3):
scsi: ufs: ufs-qcom: Add specified gear support for multi gear scaling
arm64: dts: qcom: hamoa: Add opp-level for UFS gear speed
arm64: dts: qcom: talos: Add opp-level for UFS gear speed
arch/arm64/boot/dts/qcom/hamoa.dtsi | 3 +++
arch/arm64/boot/dts/qcom/talos.dtsi | 3 +++
drivers/ufs/host/ufs-qcom.c | 24 ++++++++++++++++++++++--
3 files changed, 28 insertions(+), 2 deletions(-)
---
base-commit: d138596e9f822033490b2e577ec2ea64f2aa246c
change-id: 20261201-b4-ufs-qcom-multi-gear-scaling-30e082d0aeb6
Best regards,
--
Giri Prasad Goriparthi <giri.goriparthi@xxxxxxxxxxxxxxxx>