[PATCH net] dt-bindings: net: sparx5: Narrow properly LAN969x register space windows

Krzysztof Kozlowski posted 1 patch 3 months, 2 weeks ago
There is a newer version of this series
.../devicetree/bindings/net/microchip,sparx5-switch.yaml      | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH net] dt-bindings: net: sparx5: Narrow properly LAN969x register space windows
Posted by Krzysztof Kozlowski 3 months, 2 weeks ago
Commit 267bca002c50 ("dt-bindings: net: sparx5: correct LAN969x register
space windows") said that LAN969x has exactly two address spaces ("ref"
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>

---

No in-kernel DTS using it.
---
 .../devicetree/bindings/net/microchip,sparx5-switch.yaml      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml b/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml
index 5caa3779660d..5491d0775ede 100644
--- a/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml
+++ b/Documentation/devicetree/bindings/net/microchip,sparx5-switch.yaml
@@ -180,9 +180,9 @@ allOf:
     then:
       properties:
         reg:
-          minItems: 2
+          maxItems: 2
         reg-names:
-          minItems: 2
+          maxItems: 2
     else:
       properties:
         reg:
-- 
2.48.1
Re: [PATCH net] dt-bindings: net: sparx5: Narrow properly LAN969x register space windows
Posted by Krzysztof Kozlowski 3 months, 2 weeks ago
On 26/10/2025 11:16, Krzysztof Kozlowski wrote:
> Commit 267bca002c50 ("dt-bindings: net: sparx5: correct LAN969x register
> space windows") said that LAN969x has exactly two address spaces ("ref"
> property) but implemented it as 2 or more.  Narrow the constraint to


Typo. I will send v2.

Best regards,
Krzysztof