]> Git Repo - J-linux.git/commitdiff
dt-bindings: soc: rockchip: add clock to RK3588 VO grf
authorSebastian Reichel <[email protected]>
Tue, 13 Feb 2024 16:32:35 +0000 (17:32 +0100)
committerHeiko Stuebner <[email protected]>
Tue, 13 Feb 2024 18:37:15 +0000 (19:37 +0100)
The RK3588 VO GRF needs a clock. This adds the clock to the allowed
properties, makes it mandatory for the RK3588 VO grf and disallows it
for any other Rockchip grf.

Acked-by: Conor Dooley <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Heiko Stuebner <[email protected]>
Documentation/devicetree/bindings/soc/rockchip/grf.yaml

index 61bfe678dc7f869a8730c56da3eac2f44cdaa55b..40b0d01e3b8dcb6f1907b01544a6be9fa211014d 100644 (file)
@@ -67,6 +67,9 @@ properties:
   reg:
     maxItems: 1
 
+  clocks:
+    maxItems: 1
+
   "#address-cells":
     const: 1
 
@@ -249,6 +252,22 @@ allOf:
 
           unevaluatedProperties: false
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - rockchip,rk3588-vo-grf
+
+    then:
+      required:
+        - clocks
+
+    else:
+      properties:
+        clocks: false
+
+
 examples:
   - |
     #include <dt-bindings/clock/rk3399-cru.h>
This page took 0.0471 seconds and 4 git commands to generate.