[PATCH v8 0/4] Add QCOM RPMH Power Domain Driver Support
Aswin Murugan
aswin.murugan at oss.qualcomm.com
Fri Feb 13 12:10:05 CET 2026
This patch series adds support for the Qualcomm RPMH power domain
driver, responsible for managing power domains on Qualcomm SoCs.
The driver is ported from the Linux kernel and adapted for
U-Boot to enable proper power domain control on SA8775P platform.
When a suitable power domain driver is not found for the power-controller
node, it will be handled with a warning in dev_power_domain_ctrl() and
execution continues without breaking, ensuring compatibility across
different RPMH platforms.
Signed-off-by: Aswin Murugan <aswin.murugan at oss.qualcomm.com>
---
Changes in v8:
- Renamed Kconfig option from QCOM_POWER_DOMAIN to QCOM_RPMH_POWER_DOMAIN
for better specificity as requested in review feedback
- Improved commit message for patch 3 as requested in review feedback
- Link to v7: https://lore.kernel.org/u-boot/20251222114823.2146775-1-aswin.murugan@oss.qualcomm.com/
Changes in v7:
- Droped soc: qcom: cmd-db: Add cmd_db_read_slave_id() & cmd_db_read_aux_data() functions
patch from previous version, since it was already picked
Link: https://lore.kernel.org/u-boot/176363183220.2293399.7296647117885059868.b4-ty@linaro.org/
- Cleaned up the warning logic in drivers/power/domain/power-domain-uclass.c
when power-domain driver is missing
- Link to v6: https://lore.kernel.org/u-boot/20251113113427.2218045-1-aswin.murugan@oss.qualcomm.com/
Changes in v6:
- Added the change in drivers/power/domain/power-domain-uclass.c to give warning
when power-domain driver is missing
- Added the change log 'In qcom-rpmhpd driver, the un-supported power domains are handled with warning
in rpmhpd_power_on() & rpmhpd_power_on()'
- In drivers/power/domain/qcom-rpmhpd.c, the 'ret' variable in rpmhpd_probe() is initialized with 0
- Link to v5: https://lore.kernel.org/u-boot/20251027113312.3815169-1-aswinm@qti.qualcomm.com/
Changes in v5:
- As part of "qcom_rpmhpd" driver removal change did in v4, the rpmh_write() in drivers/power/domain/qcom-rpmhpd.c
should be passed with pd->dev as first argument to align with it.
- Added (ulong) casting in rpmhpd_match_table to address the warning.
Changes in v4:
- Added all soc entries in power domain linux driver to drivers/power/domain/qcom-rpmhpd.c and
stubbed it
- Removed "qcom_rpmhpd" driver & unused members of struct rpmhpd in drivers/power/domain/qcom-rpmhpd.c
- Moved the "soc: qcom: cmd-db" change before the "power-domain" change
- Link to v3: https://lore.kernel.org/u-boot/20250702180133.1889709-1-aswin.murugan@oss.qualcomm.com/
Changes in v3:
- Removed OF_LIVE_SA8775P config in arch/arm/mach-snapdragon/Kconfig & configs/qcs9100_defconfig,
since there is no SA8775p specific fixups are done
- Link to v2: https://lore.kernel.org/u-boot/20250702171335.1811080-1-aswin.murugan@oss.qualcomm.com/
Changes in v2:
- Added ARCH_SNAPDRAGON dependency to QCOM_POWER_DOMAIN in drivers/power/domain/Kconfig
- In drivers/power/domain/qcom-rpmhpd.c, the un-supported power domains are handled with warning
- Power domain fixups have been removed since they are now managed by drivers/power/domain/qcom-rpmhpd.c
- Link to v1: https://lore.kernel.org/u-boot/20250626112441.143064-1-aswin.murugan@oss.qualcomm.com/
---
Aswin Murugan (3):
power-domain: Add warning when power-domain driver is missing
mach-snapdragon: Remove RPMH power domain DT fixup code
qcom_defconfig: Add QCOM_RPMH_POWER_DOMAIN config
Balaji Selvanathan (1):
power-domain: Add QCOM RPMH Power Domain Driver Support
arch/arm/mach-snapdragon/of_fixup.c | 31 ---
configs/qcom_defconfig | 1 +
drivers/power/domain/Kconfig | 8 +
drivers/power/domain/Makefile | 1 +
drivers/power/domain/power-domain-uclass.c | 7 +
drivers/power/domain/qcom-rpmhpd.c | 278 +++++++++++++++++++++
6 files changed, 295 insertions(+), 31 deletions(-)
create mode 100644 drivers/power/domain/qcom-rpmhpd.c
--
2.34.1
More information about the U-Boot
mailing list