[PATCH v2 1/4] dt-bindings: clock: qcom,sm8450-videocc: Fix clock inputs for Glymur

From: Shawn Guo

Date: Thu Oct 08 2026 - 04:11:17 EST


The schema describes exactly two clock inputs for every compatible it
covers, a board XO and a video AHB clock from GCC. That does not match
the video clock controller found on Glymur, Nord and SM8750.

Per the hardware documentation, the controller on these SoCs has three
clock inputs: the board XO, the always-on board XO that feeds its PLL
reference, and the 32 kHz chip sleep clock that sources its sleep clock
generator. It has no AHB clock input. The AHB clock the controller uses
for itself is generated inside the block from the XO input.

Because the schema stops at two items, the sleep clock input cannot be
described in device tree at all, and the second item is described as a
clock that is not routed into the controller.

Describe three inputs for the Glymur, Nord and SM8750 compatibles and
keep the existing two-input description for the remaining compatibles.

Assisted-by: LLM
Signed-off-by: Shawn Guo <shengchao.guo@xxxxxxxxxxxxxxxx>
---
.../bindings/clock/qcom,sm8450-videocc.yaml | 26 ++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml b/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml
index e985a450451d..9bd746afbc11 100644
--- a/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,sm8450-videocc.yaml
@@ -42,9 +42,8 @@ properties:
- qcom,x1p42100-videocc

clocks:
- items:
- - description: Board XO source
- - description: Video AHB clock from GCC
+ minItems: 2
+ maxItems: 3

power-domains:
description:
@@ -79,6 +78,27 @@ allOf:
then:
required:
- required-opps
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,glymur-videocc
+ - qcom,nord-videocc
+ - qcom,sm8750-videocc
+ then:
+ properties:
+ clocks:
+ items:
+ - description: Board XO source
+ - description: Board always-on XO source
+ - description: Sleep clock source
+ else:
+ properties:
+ clocks:
+ items:
+ - description: Board XO source
+ - description: Video AHB clock from GCC

unevaluatedProperties: false

--
2.43.0