Generic DSA Switch Port
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/dsa-port.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Florian Fainelli <f.fainelli@gmail.com>", "Vladimir Oltean <olteanv@gmail.com>"
A DSA switch port is a component of a switch that manages one MAC, and can pass Ethernet frames. It can act as a stanadard Ethernet switch port, or have DSA-specific functionality.
Shared schema rule ($ref): /schemas/net/ethernet-switch-port.yaml#
Properties and child nodes (properties) #
reg — not listed as required here #
Array item rules (items) #
Item 1
Port number
label — not listed as required here #
Describes the label associated with this port, which will become the netdev name
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
link — not listed as required here #
Should be a list of phandles to other switch's DSA port. This port is used as the outgoing port towards the phandle ports. The full routing information must be given, not just the one hop routes to neighbouring switches
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Maximum number of items (
maxItems):1
ethernet — not listed as required here #
Should be a phandle to a valid Ethernet device node. This host device is what the switch port is connected to
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
dsa-tag-protocol — not listed as required here #
Instead of the default, the switch will use this tag protocol if possible. Useful when a device supports multiple protocols and the default is incompatible with the Ethernet device.
Allowed values (enum): "dsa", "edsa", "ocelot", "ocelot-8021q", "rtl8_4", "rtl8_4t", "seville"
Condition (if) #
Exactly one of these rules must match (
oneOf) #Rule 1 #
Rule 2 #
When the condition matches (then) #
All of these rules must match (
allOf) #Rule 1 #
Rule 2 #
Exactly one of these rules must match (
oneOf)Rule 1
Rule 2
Rule 3
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 62: CPU and DSA ports must have phylink-compatible link descriptions