Skip to content

FROMLIST: scsi: ufs: ufs-qcom: Add specified gear support for multi gear scaling - #98

Merged
Tingwei Zhang (quic-tingweiz) merged 2 commits into
qualcomm-linux:resolute-qcom-develfrom
ggiriprasad:resolute-qcom-devel
Sep 2, 2026
Merged

FROMLIST: scsi: ufs: ufs-qcom: Add specified gear support for multi gear scaling#98
Tingwei Zhang (quic-tingweiz) merged 2 commits into
qualcomm-linux:resolute-qcom-develfrom
ggiriprasad:resolute-qcom-devel

Conversation

@ggiriprasad

Copy link
Copy Markdown

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.

[PATCH v1 1/2] scsi: ufs: ufs-qcom: Add specified gear support for multi gear scaling

The UFS clock frequency and gear speed do not necessarily have a strict one-to-one correspondence on all platforms. Introduce a device tree based configuration interface that allows specifying the HS gear speed for each supported operating frequency via the "opp-level" property in the OPP table. When this property is not configured, the driver falls back to the default frequency-to-gear mapping table.

[PATCH v1 2/2] arm64: dts: qcom: Set specified gear configuration for Hamoa

Assign the appropriate UFS HS gear speed levels to each OPP frequency entry in the device tree, enabling proper per-frequency gear scaling (G1 at 75MHz, G3 at 150MHz, G5 at 300MHz).

Link: https://lore.kernel.org/linux-scsi/20260829074355.946543-1-nitin.rawat@oss.qualcomm.com/

…ear scaling

The UFS clock frequency and gear speed do not necessarily have a strict
one-to-one correspondence on all platforms. Introduce a device tree
based configuration interface that allows specifying the HS gear
speed for each supported operating frequency via the "opp-level"
property in the OPP table. When this property is not configured, the
driver falls back to the default frequency-to-gear mapping table.

Signed-off-by: Ziqi Chen <ziqi.chen@oss.qualcomm.com>
Signed-off-by: Nitin Rawat <nitin.rawat@oss.qualcomm.com>
Signed-off-by: Giri Prasad Goriparthi <giri.goriparthi@oss.qualcomm.com>
Assign the appropriate UFS HS gear speed levels to each OPP frequency
entry in the device tree, enabling proper per-frequency gear
scaling (G1 at 75MHz, G3 at 150MHz, G5 at 300MHz).

Signed-off-by: Nitin Rawat <nitin.rawat@oss.qualcomm.com>
Signed-off-by: Giri Prasad Goriparthi <giri.goriparthi@oss.qualcomm.com>
@quic-tingweiz
Tingwei Zhang (quic-tingweiz) merged commit 7bc2f5e into qualcomm-linux:resolute-qcom-devel Sep 2, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants