Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: net: mscc,vsc7514-switch: Simplify DSA and switch references

The mscc,vsc7514-switch schema doesn't add any custom port properties,
so it can just reference ethernet-switch.yaml#/$defs/base and
dsa.yaml#/$defs/ethernet-ports instead of the base file and can skip
defining port nodes.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20231016-dt-net-cleanups-v1-7-a525a090b444@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Rob Herring and committed by
Jakub Kicinski
7c93392d 491ec40d

+2 -12
+2 -12
Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml
··· 24 24 compatible: 25 25 const: mscc,vsc7514-switch 26 26 then: 27 - $ref: ethernet-switch.yaml# 27 + $ref: ethernet-switch.yaml#/$defs/ethernet-ports 28 28 required: 29 29 - interrupts 30 30 - interrupt-names ··· 33 33 minItems: 21 34 34 reg-names: 35 35 minItems: 21 36 - ethernet-ports: 37 - patternProperties: 38 - "^port@[0-9a-f]+$": 39 - $ref: ethernet-switch-port.yaml# 40 - unevaluatedProperties: false 41 36 42 37 - if: 43 38 properties: 44 39 compatible: 45 40 const: mscc,vsc7512-switch 46 41 then: 47 - $ref: /schemas/net/dsa/dsa.yaml# 42 + $ref: /schemas/net/dsa/dsa.yaml#/$defs/ethernet-ports 48 43 properties: 49 44 reg: 50 45 maxItems: 20 51 46 reg-names: 52 47 maxItems: 20 53 - ethernet-ports: 54 - patternProperties: 55 - "^port@[0-9a-f]+$": 56 - $ref: /schemas/net/dsa/dsa-port.yaml# 57 - unevaluatedProperties: false 58 48 59 49 properties: 60 50 compatible: