dt-bindings: gpu: samsung-scaler: constrain iommus and power-domains
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 12 Nov 2023 18:44:03 +0000 (19:44 +0100)
committerRob Herring <robh@kernel.org>
Fri, 8 Dec 2023 13:24:20 +0000 (07:24 -0600)
Provide specific constraints for iommus and power-domains, based on
current DTS.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20231112184403.3449-5-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/gpu/samsung-scaler.yaml

index e08fc1e4115f153e938b74a75c0c59bb5822b8b6..9fb530e65d0e8bb2993dd0bdfb5e9e4afeb80035 100644 (file)
@@ -29,8 +29,12 @@ properties:
     minItems: 1
     maxItems: 3
 
-  iommus: {}
-  power-domains: {}
+  iommus:
+    minItems: 1
+    maxItems: 2
+
+  power-domains:
+    maxItems: 1
 
 required:
   - compatible
@@ -54,6 +58,8 @@ allOf:
         clock-names:
           items:
             - const: mscl
+        iommus:
+          minItems: 2
 
     else:
       properties:
@@ -67,6 +73,8 @@ allOf:
             - const: pclk
             - const: aclk
             - const: aclk_xiu
+        iommus:
+          maxItems: 1
 
 additionalProperties: false