dt-bindings: crypto: qcom-qce: constrain clocks for SM8150-compatible QCE
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 12 Dec 2023 10:00:44 +0000 (11:00 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Dec 2023 04:30:19 +0000 (12:30 +0800)
All devices compatible with SM8150 QCE (so SM8250 and newer) do not have
clock inputs (clocks are handled by secure firmware), so explicitly
disallow the clocks in the bindings.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Documentation/devicetree/bindings/crypto/qcom-qce.yaml

index 6435708da202ae1f58717e4e3b184cec6b51fb37..e8c418b614dcea6a01964bd84050ab6598d2c0e1 100644 (file)
@@ -131,6 +131,17 @@ allOf:
         - clocks
         - clock-names
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - qcom,sm8150-qce
+    then:
+      properties:
+        clocks: false
+        clock-names: false
+
 required:
   - compatible
   - reg