Generic Ethernet Switch

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

Ethernet switches are multi-port Ethernet controllers. Each port has its own number and is represented as its own Ethernet controller. The minimum required functionality is to pass packets to software. They may or may not be able to forward packets automonously between ports.

Automatic schema selection (select) #

false

Not selected automatically by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "marvell,turris-mox-mv88e6085", "marvell,turris-mox-mv88e6190"

When the condition matches (then) #

Properties and child nodes (properties)

$nodename — not listed as required here

String pattern (pattern): "switch[0-3]@[0-3]+$"

When the condition does not match (else) #

Properties and child nodes (properties)

$nodename — not listed as required here

String pattern (pattern): "^(ethernet-)?switch(@.*)?$"

Properties matching a name pattern (patternProperties) #

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

Value type (type): "object"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

#address-cells — required here

Exact value (const): 1

#size-cells — required here

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

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

Value type (type): "object"

Ethernet switch ports

Required in this object (required): "#address-cells", "#size-cells"

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"

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

true

Allowed by this rule.

Reusable definitions ($defs) #

ethernet-ports #

An ethernet 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): ethernet-switch-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not 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 24: This condition is here to satisfy the case where certain device

Line 25: nodes have to preserve non-standard names because of

Line 26: backward-compatibility with boot loaders inspecting certain

Line 27: node names.

Edit this page