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 <[email protected]> Acked-by: Florian Fainelli <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
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)