Skip to content

Commit

Permalink
dt-bindings: net: mscc,vsc7514-switch: utilize generic ethernet-switc…
Browse files Browse the repository at this point in the history
…h.yaml

Several bindings for ethernet switches are available for non-dsa switches
by way of ethernet-switch.yaml. Remove these duplicate entries and utilize
the common bindings for the VSC7514.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Colin Foster authored and David S. Miller committed Jan 16, 2023
1 parent 68e3e3b commit 1f4d4ad
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions Documentation/devicetree/bindings/net/mscc,vsc7514-switch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ description: |
packets using CPU. Additionally, PTP is supported as well as FDMA for faster
packet extraction/injection.
properties:
$nodename:
pattern: "^switch@[0-9a-f]+$"
$ref: ethernet-switch.yaml#

properties:
compatible:
const: mscc,vsc7514-switch

Expand Down Expand Up @@ -100,35 +99,11 @@ properties:

patternProperties:
"^port@[0-9a-f]+$":
type: object
description: Ethernet ports handled by the switch

$ref: ethernet-controller.yaml#
$ref: ethernet-switch-port.yaml#

unevaluatedProperties: false

properties:
reg:
description: Switch port number

phy-handle: true

phy-mode: true

fixed-link: true

mac-address: true

required:
- reg
- phy-mode

oneOf:
- required:
- phy-handle
- required:
- fixed-link

required:
- compatible
- reg
Expand Down

0 comments on commit 1f4d4ad

Please sign in to comment.