[PATCH v2 0/5] Add RPMh and global clock controller support for Qualcomm Halliday (SXR2250P)

From: Stanislav Aleksandrov

Date: Mon Nov 16 2026 - 16:24:34 EST


Add the RPMh clocks and the Global Clock Controller of the Qualcomm
Halliday SoC.

The GCC has the clkref_en gates on the outputs of the QREF block, whose
supplies are shared with the UFS PHY. Patch 4 lets drivers built on
qcom_cc_desc register clk_ref clocks next to their other clocks, so
that the GCC can vote for those supplies.

Halliday (SXR2250P / Snapdragon XR2+ Gen 2) is the SoC in the Samsung
Galaxy XR headset. The DT changes follow in a separate series.

The series is based on v7.4-rc1, like clk-for-7.5. Patch 4 conflicts
with commit 4dd10fbbeb9c ("treewide: Convert devm_kmalloc() family to
the devm_kmalloc_obj() family") in v7.4-rc2, which touches
qcom_clk_ref_register(): the resolution is to take that function from
this series.

This work was made together with Claude, ChatGPT and Gemini.
Reviewed and tested on my Galaxy XR.

Signed-off-by: Stanislav Aleksandrov <lightofmysoul@xxxxxxxxx>
---
Changes in v2:
- common: Return a NULL clock, not -EINVAL, for a protected clk_ref
with an ID above the last regmap clock (Sashiko)
- common, clk-ref: Use devm_kzalloc_obj() and devm_kzalloc_objs() for
the clk_ref allocations
- gcc-halliday: Reuse the wrap0 S0 frequency table for wrap1 S0/S1
(Sashiko)
- Link to v1: https://patch.msgid.link/20261109-halliday-clk-v1-0-20c3ba8be0bd@xxxxxxxxx

---
Stanislav Aleksandrov (5):
dt-bindings: clock: qcom: document the Halliday RPMh Clock Controller
clk: qcom: rpmh: Add support for RPMh clocks on Halliday
dt-bindings: clock: qcom: document the Halliday Global Clock Controller
clk: qcom: common: Register clk_ref clocks from qcom_cc_desc
clk: qcom: Add support for Global clock controller on Halliday

.../bindings/clock/qcom,halliday-gcc.yaml | 84 +
.../devicetree/bindings/clock/qcom,rpmhcc.yaml | 1 +
drivers/clk/qcom/Kconfig | 11 +
drivers/clk/qcom/Makefile | 1 +
drivers/clk/qcom/clk-ref.c | 90 +-
drivers/clk/qcom/clk-rpmh.c | 22 +
drivers/clk/qcom/common.c | 68 +-
drivers/clk/qcom/common.h | 9 +
drivers/clk/qcom/gcc-halliday.c | 3533 ++++++++++++++++++++
include/dt-bindings/clock/qcom,halliday-gcc.h | 249 ++
10 files changed, 4016 insertions(+), 52 deletions(-)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261108-halliday-clk-362190f4f5dd

Best regards,
--
Stanislav Aleksandrov <lightofmysoul@xxxxxxxxx>