[PATCH 2/3] dt-bindings: clock: qcom,sm8450-camcc: Require required-opps on SM8750

From: Krzysztof Kozlowski

Date: Wed Jul 08 2026 - 05:50:04 EST


Reverse the logic within "if:then:" when expecting "required-opps"
property to have negative list of only variants which do not require
these. CAMCC on SM8650 does not need "required-opps" as explained in
the commit db30c1160ca5 ("dt-bindings: clock: qcom: Drop required-opps
in required on SM8650 camcc"). Requirement on CAMCC on SM8475 is not
known.

Reverting the logic in "if:" part has two impacts:

1. Adds requirement of "required-opps" on CAMCC on SM8750 to match
hardware expectation, because it needs minimum voltage levels of MMCX
rail (already expressed in DTS).

2. Reduces the chances of forgetting to update constraints when adding
new compatibles (like for SM8750).

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
---
.../devicetree/bindings/clock/qcom,sm8450-camcc.yaml | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/Documentation/devicetree/bindings/clock/qcom,sm8450-camcc.yaml b/Documentation/devicetree/bindings/clock/qcom,sm8450-camcc.yaml
index e6ffacc81d0a..b41247b257b1 100644
--- a/Documentation/devicetree/bindings/clock/qcom,sm8450-camcc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,sm8450-camcc.yaml
@@ -70,12 +70,11 @@ allOf:
- if:
properties:
compatible:
- contains:
- enum:
- - qcom,kaanapali-cambistmclkcc
- - qcom,kaanapali-camcc
- - qcom,sm8450-camcc
- - qcom,sm8550-camcc
+ not:
+ contains:
+ enum:
+ - qcom,sm8475-camcc
+ - qcom,sm8650-camcc
then:
required:
- required-opps

--
2.53.0