clk: qcom: Add common clkref support and migrate Glymur
Get series with b4
b4 am [email protected] change-id 20260331-qref_vote-3f38b46d5847Versions newest first · linked by author and title
- v3 Latest4 patches 14 repliesIn review
- v24 patches 2 repliesSuperseded
- v1 RFC4 patches 10 repliesSuperseded
Changes in v3 from the cover letter
- Fix dtb check error: allOf:0: 'then' is a dependency of 'if'.
- Link to v2: https://lore.kernel.org/all/[email protected]/
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | dt-bindings: clock: qcom: Add QREF regulator supplies for glymurDocumentation/ | +57 | 14 replies | |
| 2/4 | clk: qcom: Add generic clkref_en supportdrivers/ drivers/ include/ | +272 | 0 replies | |
| 3/4 | clk: qcom: tcsrcc-glymur: Migrate tcsr_pcie_N_clkref_en to clk_ref common helperdrivers/ | +93 | 0 replies | |
| 4/4 | arm64: dts: qcom: glymur: Add QREF regulator supplies to TCSRarch/ | +19 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/4] clk: qcom: Add common clkref support and migrate Glymur
This series adds a common clkref_en implementation and converts glymur to use it, along with the related binding and DTS updates.
The PCIe clkref clocks on Glymur gate the QREF block which provides reference clocks to the PCIe PHYs. QREF requires LDO supplies and a reference voltage from the refgen block to operate. The refgen block itself requires vdda-refgen_0p9 and vdda-refgen_1p2 LDOs to function.
Previously, these QREF votes were done in PHY drivers. In earlier discussion [1], the feedback was that this is the wrong ownership point:
those supplies are for the QREF controlled by clkref registers, not for PHY directly. Based on that feedback, this series keeps the regulator handling with the clkref control path.
Another reason for this series is reuse. clkref_en registers may live in different blocks across platforms (for example TCSR on Glymur, TLMM on SM8750 [2]), while the behavior is the same. The common helper lets each driver provide simple descriptors (name, offset, optional supplies) and reuse shared registration and runtime logic.
[1] https://lore.kernel.org/lkml/[email protected]/
[2] https://lore.kernel.org/linux-arm-msm/[email protected]/
Changes in v3:
- Fix dtb check error: allOf:0: 'then' is a dependency of 'if'.
- Link to v2: https://lore.kernel.org/all/[email protected]/
Changes in v2:
- RFC tag dropped
- Changed back to additionalProperties: false
- Moved all Glymur supply properties into top-level properties so they are explicitly defined.
- Link to v1: https://lore.kernel.org/all/[email protected]/
---
Qiang Yu (4):
dt-bindings: clock: qcom: Add QREF regulator supplies for glymur
clk: qcom: Add generic clkref_en support
clk: qcom: tcsrcc-glymur: Migrate tcsr_pcie_N_clkref_en to clk_ref common helper
arm64: dts: qcom: glymur: Add QREF regulator supplies to TCSR
.../bindings/clock/qcom,sm8550-tcsr.yaml | 57 ++++ arch/arm64/boot/dts/qcom/glymur-crd.dts | 19 ++ drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clk-ref.c | 202 ++++++++++++ drivers/clk/qcom/tcsrcc-glymur.c | 340 ++++++--------------- include/linux/clk/qcom.h | 69 +++++ 6 files changed, 441 insertions(+), 247 deletions(-)
---
base-commit: 4cd074ae20bbcc293bbbce9163abe99d68ae6ae0
change-id: 20260505-qref_vote_0506-fb14bfb08cd9
Best regards,
Signature · 1 line
Qiang Yu <[email protected]>