[PATCH V5 0/4] ufs: ufs-qcom: Add support firmware managed platforms

Ram Kumar Dwivedi posted 4 patches 3 weeks, 3 days ago
.../bindings/ufs/qcom,sa8255p-ufshc.yaml      |  56 +++++++
MAINTAINERS                                   |   2 +-
drivers/ufs/core/ufs-sysfs.c                  |   2 +-
drivers/ufs/host/ufs-qcom.c                   | 156 +++++++++++++++++-
drivers/ufs/host/ufs-qcom.h                   |   1 +
include/ufs/ufshcd.h                          |   2 +
6 files changed, 216 insertions(+), 3 deletions(-)
create mode 100644 Documentation/devicetree/bindings/ufs/qcom,sa8255p-ufshc.yaml
[PATCH V5 0/4] ufs: ufs-qcom: Add support firmware managed platforms
Posted by Ram Kumar Dwivedi 3 weeks, 3 days ago
On Qualcomm automotive SoC SA8255P, platform resource like clocks,
interconnect, resets, regulators and PHY are configured remotely by
firmware.

Logical power domain is used to abstract these resources in firmware
and SCMI power protocol is used to request resource operations by using
runtime PM framework APIs such as pm_runtime_get/put_sync to invoke
power_on/_off calls from kernel respectively.

Changes from V1:
1. Updated "dma-coherent" property type from boolean to just true.
2. Switched from QUIC mail ID to OSS mail ID. 
3. Added Acknowledged by tag from Dmitry for patch 1/3 
4. Added Reviewed-by tag from Manivannan for patch 1/3 

Changes from V2:
1. Added new patch "scsi: ufs: core Enforce minimum pm level for sysfs
   configuration" to prevent users from selecting unsupported power
   levels via sysfs.
2. Set minimum power level (UFS_PM_LVL_5) for SA8255P platforms.
3. Changed DT example in qcom,sa8255p-ufshc.yaml to use single-cell
   addressing instead of dual-cell addressing.

Changes from V3:
1. Removed address-cells and size-cells from example DT in
   qcom,sa8255p-ufshc.yaml.

Changes from V4:
1. Fixed indentation in example DT in qcom,sa8255p-ufshc.yaml.
2. Added missing kernel-doc description for pm_lvl_min in ufshcd.h.
3. Removed redundant spm_lvl check.
4. Consolidated spm_lvl, rpm_lvl, and pm_lvl_min assignments into
   a single line.

Ram Kumar Dwivedi (4):
  MAINTAINERS: broaden UFS Qualcomm binding file pattern
  dt-bindings: ufs: Document bindings for SA8255P UFS Host Controller
  scsi: ufs: core Enforce minimum pm level for sysfs configuration
  ufs: ufs-qcom: Add support for firmware-managed resource abstraction

 .../bindings/ufs/qcom,sa8255p-ufshc.yaml      |  56 +++++++
 MAINTAINERS                                   |   2 +-
 drivers/ufs/core/ufs-sysfs.c                  |   2 +-
 drivers/ufs/host/ufs-qcom.c                   | 156 +++++++++++++++++-
 drivers/ufs/host/ufs-qcom.h                   |   1 +
 include/ufs/ufshcd.h                          |   2 +
 6 files changed, 216 insertions(+), 3 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/ufs/qcom,sa8255p-ufshc.yaml

-- 
2.34.1
Re: [PATCH V5 0/4] ufs: ufs-qcom: Add support firmware managed platforms
Posted by Martin K. Petersen 2 days, 23 hours ago
On Tue, 13 Jan 2026 13:30:42 +0530, Ram Kumar Dwivedi wrote:

> On Qualcomm automotive SoC SA8255P, platform resource like clocks,
> interconnect, resets, regulators and PHY are configured remotely by
> firmware.
> 
> Logical power domain is used to abstract these resources in firmware
> and SCMI power protocol is used to request resource operations by using
> runtime PM framework APIs such as pm_runtime_get/put_sync to invoke
> power_on/_off calls from kernel respectively.
> 
> [...]

Applied to 6.20/scsi-queue, thanks!

[1/4] MAINTAINERS: broaden UFS Qualcomm binding file pattern
      https://git.kernel.org/mkp/scsi/c/7f386b05f994
[2/4] dt-bindings: ufs: Document bindings for SA8255P UFS Host Controller
      https://git.kernel.org/mkp/scsi/c/e2725ed2a7fb
[3/4] scsi: ufs: core Enforce minimum pm level for sysfs configuration
      https://git.kernel.org/mkp/scsi/c/26c06d0baeb7
[4/4] ufs: ufs-qcom: Add support for firmware-managed resource abstraction
      https://git.kernel.org/mkp/scsi/c/ad44cf1b2845

-- 
Martin K. Petersen
Re: [PATCH V5 0/4] ufs: ufs-qcom: Add support firmware managed platforms
Posted by Martin K. Petersen 1 week, 6 days ago
Ram,

> On Qualcomm automotive SoC SA8255P, platform resource like clocks,
> interconnect, resets, regulators and PHY are configured remotely by
> firmware.
>
> Logical power domain is used to abstract these resources in firmware
> and SCMI power protocol is used to request resource operations by
> using runtime PM framework APIs such as pm_runtime_get/put_sync to
> invoke power_on/_off calls from kernel respectively.

Applied to 6.20/scsi-staging, thanks!

-- 
Martin K. Petersen