dt-bindings: soc: samsung: exynos-sysreg: add clocks for Exynos850
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 27 Nov 2022 12:32:59 +0000 (13:32 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 26 Dec 2022 15:12:38 +0000 (16:12 +0100)
Exynos850 has dedicated clock for accessing SYSREGs.  Allow it, even
though Linux currently does not enable it and relies on bootloader.

Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Link: https://lore.kernel.org/r/20221127123259.20339-4-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Documentation/devicetree/bindings/soc/samsung/samsung,exynos-sysreg.yaml

index 4235746..9f3fc64 100644 (file)
@@ -36,10 +36,27 @@ properties:
   reg:
     maxItems: 1
 
+  clocks:
+    maxItems: 1
+
 required:
   - compatible
   - reg
 
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - samsung,exynos850-sysreg
+    then:
+      required:
+        - clocks
+    else:
+      properties:
+        clocks: false
+
 additionalProperties: false
 
 examples: