Ethernet Switch

Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/dsa.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>"

This binding represents Ethernet Switches which have a dedicated CPU port. That port is usually connected to an Ethernet Controller of the SoC. Such setups are typical for embedded devices.

Automatic schema selection (select) #

false

Not selected automatically by this rule.

Shared schema rule ($ref): /schemas/net/ethernet-switch.yaml#

Properties and child nodes (properties) #

dsa,member — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

A two element list indicates which DSA cluster, and position within the cluster a switch takes. <0 0> is cluster 0, switch 0. <0 1> is cluster 0, switch 1. <1 0> is cluster 1, switch 0. A switch not part of any cluster (single device hanging off a CPU port) must not specify this property

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Reusable definitions ($defs) #

ethernet-ports #

A DSA switch without any extra port properties

Shared schema rule ($ref): #

Properties matching a name pattern (patternProperties) #

^(ethernet-)?ports$ — name matches this regular expression

Properties matching a name pattern (patternProperties)

^(ethernet-)?port@[0-9a-f]+$ — name matches this regular expression

Ethernet switch ports

Shared schema rule ($ref): dsa-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "ports"

Rule 2 #

Required in this object (required): "ethernet-ports"

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page