1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/net/dsa/dsa-port.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Generic DSA Switch Port
10 - Andrew Lunn <andrew@lunn.ch>
11 - Florian Fainelli <f.fainelli@gmail.com>
12 - Vladimir Oltean <olteanv@gmail.com>
15 A DSA switch port is a component of a switch that manages one MAC, and can
16 pass Ethernet frames. It can act as a stanadard Ethernet switch port, or have
17 DSA-specific functionality.
19 $ref: /schemas/net/ethernet-switch-port.yaml#
24 - description: Port number
28 Describes the label associated with this port, which will become
30 $ref: /schemas/types.yaml#/definitions/string
34 Should be a list of phandles to other switch's DSA port. This
35 port is used as the outgoing port towards the phandle ports. The
36 full routing information must be given, not just the one hop
37 routes to neighbouring switches
38 $ref: /schemas/types.yaml#/definitions/phandle-array
44 Should be a phandle to a valid Ethernet device node. This host
45 device is what the switch port is connected to
46 $ref: /schemas/types.yaml#/definitions/phandle
50 Instead of the default, the switch will use this tag protocol if
51 possible. Useful when a device supports multiple protocols and
52 the default is incompatible with the Ethernet device.
62 # CPU and DSA ports must have phylink-compatible link descriptions
65 - required: [ ethernet ]
79 additionalProperties: true