Skip to content

Commit fbb7033

Browse files
linuswkuba-moo
authored andcommitted
dt-bindings: net: dsa: Require ports or ethernet-ports
Bindings using dsa.yaml#/$defs/ethernet-ports specify that a DSA switch node need to have a ports or ethernet-ports subnode, and that is actually required, so add requirements using oneOf. Suggested-by: Rob Herring <robh@kernel.org> Acked-by: Florian Fainelli <florian.fainelli@broadcom.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20231127-marvell-88e6152-wan-led-v9-1-272934e04681@linaro.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 6afb936 commit fbb7033

File tree

1 file changed

+6
-0
lines changed
  • Documentation/devicetree/bindings/net/dsa

1 file changed

+6
-0
lines changed

Documentation/devicetree/bindings/net/dsa/dsa.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,10 @@ $defs:
4646
$ref: dsa-port.yaml#
4747
unevaluatedProperties: false
4848

49+
oneOf:
50+
- required:
51+
- ports
52+
- required:
53+
- ethernet-ports
54+
4955
...

0 commit comments

Comments
 (0)