]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: net: mediatek,net: add top-level constraints
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 18 Aug 2024 17:29:03 +0000 (19:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Aug 2024 22:28:41 +0000 (15:28 -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>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20240818172905.121829-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/devicetree/bindings/net/mediatek,net.yaml

index 8c00a6f75357b256d426bd33e2d7c866194fe724..9e02fd80af835f00d8eabf17fc6876e45dc24e61 100644 (file)
@@ -30,8 +30,13 @@ properties:
   reg:
     maxItems: 1
 
-  clocks: true
-  clock-names: true
+  clocks:
+    minItems: 2
+    maxItems: 24
+
+  clock-names:
+    minItems: 2
+    maxItems: 24
 
   interrupts:
     minItems: 1