]> git.dujemihanovic.xyz Git - linux.git/commitdiff
dt-bindings: clock: st,stm32mp1-rcc: add top-level constraints
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 18 Aug 2024 17:30:14 +0000 (19:30 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 28 Aug 2024 17:01:27 +0000 (10:01 -0700)
Properties with variable number of items per each device are expected to
have widest constraints in top-level "properties:" block and further
customized (narrowed) in "if:then:".  Add missing top-level constraints
for clocks and clock-names.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240818173014.122073-5-krzysztof.kozlowski@linaro.org
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.yaml

index 5194be0b410e42be7b7e35fab6cca257d5e16f9f..9b3aaae546cb08cc0bb314a7e037080abac2699f 100644 (file)
@@ -60,8 +60,14 @@ properties:
           - st,stm32mp1-rcc
           - st,stm32mp13-rcc
       - const: syscon
-  clocks: true
-  clock-names: true
+
+  clocks:
+    minItems: 1
+    maxItems: 5
+
+  clock-names:
+    minItems: 1
+    maxItems: 5
 
   reg:
     maxItems: 1