Commit 7c93392d authored by Rob Herring's avatar Rob Herring Committed by Jakub Kicinski

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: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarArınç ÜNAL <arinc.unal@arinc9.com>
Reviewed-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20231016-dt-net-cleanups-v1-7-a525a090b444@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 491ec40d
...@@ -24,7 +24,7 @@ allOf: ...@@ -24,7 +24,7 @@ allOf:
compatible: compatible:
const: mscc,vsc7514-switch const: mscc,vsc7514-switch
then: then:
$ref: ethernet-switch.yaml# $ref: ethernet-switch.yaml#/$defs/ethernet-ports
required: required:
- interrupts - interrupts
- interrupt-names - interrupt-names
...@@ -33,28 +33,18 @@ allOf: ...@@ -33,28 +33,18 @@ allOf:
minItems: 21 minItems: 21
reg-names: reg-names:
minItems: 21 minItems: 21
ethernet-ports:
patternProperties:
"^port@[0-9a-f]+$":
$ref: ethernet-switch-port.yaml#
unevaluatedProperties: false
- if: - if:
properties: properties:
compatible: compatible:
const: mscc,vsc7512-switch const: mscc,vsc7512-switch
then: then:
$ref: /schemas/net/dsa/dsa.yaml# $ref: /schemas/net/dsa/dsa.yaml#/$defs/ethernet-ports
properties: properties:
reg: reg:
maxItems: 20 maxItems: 20
reg-names: reg-names:
maxItems: 20 maxItems: 20
ethernet-ports:
patternProperties:
"^port@[0-9a-f]+$":
$ref: /schemas/net/dsa/dsa-port.yaml#
unevaluatedProperties: false
properties: properties:
compatible: compatible:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment