]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: net: sparx5: Narrow properly LAN969x register space windows
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 26 Oct 2025 10:17:42 +0000 (11:17 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 28 Oct 2025 01:23:09 +0000 (18:23 -0700)
Commit 267bca002c50 ("dt-bindings: net: sparx5: correct LAN969x register
space windows") said that LAN969x has exactly two address spaces ("reg"
property) but implemented it as 2 or more.  Narrow the constraint to
properly express that only two items are allowed, which also matches
Linux driver.

Fixes: 267bca002c50 ("dt-bindings: net: sparx5: correct LAN969x register space windows")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20251026101741.20507-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml

index 5caa3779660d8fc755a955d27839cb615d812563..5491d0775edeacc927b625638baafd2a02d4b2bf 100644 (file)
@@ -180,9 +180,9 @@ allOf:
     then:
       properties:
         reg:
-          minItems: 2
+          maxItems: 2
         reg-names:
-          minItems: 2
+          maxItems: 2
     else:
       properties:
         reg: