]> www.infradead.org Git - linux.git/commitdiff
dt-bindings: pwm: allwinner,sun4i-a10-pwm: add top-level constraints
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 18 Aug 2024 17:28:28 +0000 (19:28 +0200)
committerUwe Kleine-König <ukleinek@kernel.org>
Mon, 16 Sep 2024 13:24:58 +0000 (15:24 +0200)
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 clock-names.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240818172828.121728-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Documentation/devicetree/bindings/pwm/allwinner,sun4i-a10-pwm.yaml

index 66e400f2a3a4f03a02426285f3e1c17f59e19be1..1b192e197b114fd228a5f14c7ef0d285cc67e68d 100644 (file)
@@ -46,10 +46,11 @@ properties:
       - description: Module Clock
       - description: Bus Clock
 
-  # Even though it only applies to subschemas under the conditionals,
-  # not listing them here will trigger a warning because of the
-  # additionalsProperties set to false.
-  clock-names: true
+  clock-names:
+    minItems: 1
+    items:
+      - const: mod
+      - const: bus
 
   resets:
     maxItems: 1