mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next 1/4] dt-bindings: net: mediatek,net: narrow interrupts per variants
@ 2024-08-18 17:29 Krzysztof Kozlowski
  2024-08-18 17:29 ` [PATCH net-next 2/4] dt-bindings: net: mediatek,net: add top-level constraints Krzysztof Kozlowski
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-18 17:29 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Sergey Shtylyov,
	Kunihiko Hayashi, Masami Hiramatsu, Matthias Brugger,
	AngeloGioacchino Del Regno, Geert Uytterhoeven, Magnus Damm,
	Lorenzo Bianconi, Felix Fietkau, Sergei Shtylyov, netdev,
	devicetree, linux-kernel, linux-renesas-soc, linux-arm-kernel,
	linux-mediatek
  Cc: Krzysztof Kozlowski

Each variable-length property like interrupts must have fixed
constraints on number of items for given variant in binding.  The
clauses in "if:then:" block should define both limits: upper and lower.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 Documentation/devicetree/bindings/net/mediatek,net.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/mediatek,net.yaml b/Documentation/devicetree/bindings/net/mediatek,net.yaml
index 686b5c2fae40..8c00a6f75357 100644
--- a/Documentation/devicetree/bindings/net/mediatek,net.yaml
+++ b/Documentation/devicetree/bindings/net/mediatek,net.yaml
@@ -127,6 +127,7 @@ allOf:
     then:
       properties:
         interrupts:
+          minItems: 3
           maxItems: 3
 
         clocks:
@@ -183,6 +184,7 @@ allOf:
     then:
       properties:
         interrupts:
+          minItems: 3
           maxItems: 3
 
         clocks:
@@ -222,6 +224,7 @@ allOf:
     then:
       properties:
         interrupts:
+          minItems: 3
           maxItems: 3
 
         clocks:
-- 
2.43.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-08-20 22:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-18 17:29 [PATCH net-next 1/4] dt-bindings: net: mediatek,net: narrow interrupts per variants Krzysztof Kozlowski
2024-08-18 17:29 ` [PATCH net-next 2/4] dt-bindings: net: mediatek,net: add top-level constraints Krzysztof Kozlowski
2024-08-19 17:15   ` Rob Herring (Arm)
2024-08-18 17:29 ` [PATCH net-next 3/4] dt-bindings: net: renesas,etheravb: " Krzysztof Kozlowski
2024-08-19 17:15   ` Rob Herring (Arm)
2024-08-18 17:29 ` [PATCH net-next 4/4] dt-bindings: net: socionext,uniphier-ave4: " Krzysztof Kozlowski
2024-08-19 17:15   ` Rob Herring (Arm)
2024-08-19 17:15 ` [PATCH net-next 1/4] dt-bindings: net: mediatek,net: narrow interrupts per variants Rob Herring (Arm)
2024-08-20 22:40 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®