diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2023-10-24 16:20:27 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-10-25 12:27:59 +0300 |
commit | b5ef61718ad7c003687c759095fc4ae1419bf602 (patch) | |
tree | faa0bb3516f75f246d83fa707e1298ee83890b78 /Documentation/devicetree/bindings/net | |
parent | 70f06c115bcca26ceeebf938e48bc8143668e38b (diff) | |
download | linux-b5ef61718ad7c003687c759095fc4ae1419bf602.tar.xz |
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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/devicetree/bindings/net')
-rw-r--r-- | Documentation/devicetree/bindings/net/dsa/dsa.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index 6107189d276a..2abd036578d1 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -46,4 +46,10 @@ $defs: $ref: dsa-port.yaml# unevaluatedProperties: false +oneOf: + - required: + - ports + - required: + - ethernet-ports + ... |