2021-11-30 22:16:24 +01:00
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id : http://devicetree.org/schemas/net/dsa/dsa-port.yaml#
$schema : http://devicetree.org/meta-schemas/core.yaml#
2023-01-12 07:56:12 -10:00
title : Generic DSA Switch Port
2021-11-30 22:16:24 +01:00
maintainers :
- Andrew Lunn <andrew@lunn.ch>
- Florian Fainelli <f.fainelli@gmail.com>
2023-01-12 07:56:04 -10:00
- Vladimir Oltean <olteanv@gmail.com>
2021-11-30 22:16:24 +01:00
description :
2023-01-12 07:56:12 -10:00
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.
2021-11-30 22:16:24 +01:00
2023-01-12 07:56:12 -10:00
$ref : /schemas/net/ethernet-switch-port.yaml#
2021-11-30 22:16:24 +01:00
properties :
reg :
2022-11-02 12:15:12 -04:00
items :
- description : Port number
2021-11-30 22:16:24 +01:00
label :
description :
Describes the label associated with this port, which will become
the netdev name
$ref : /schemas/types.yaml#/definitions/string
link :
description :
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
$ref : /schemas/types.yaml#/definitions/phandle-array
2022-01-18 19:50:38 -06:00
items :
maxItems : 1
2021-11-30 22:16:24 +01:00
ethernet :
description :
Should be a phandle to a valid Ethernet device node. This host
device is what the switch port is connected to
$ref : /schemas/types.yaml#/definitions/phandle
dsa-tag-protocol :
description :
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.
enum :
- dsa
- edsa
- ocelot
- ocelot-8021q
2022-03-02 22:52:33 -03:00
- rtl8_4
- rtl8_4t
2021-11-30 22:16:24 +01:00
- seville
2022-08-18 14:54:56 +03:00
# CPU and DSA ports must have phylink-compatible link descriptions
if :
oneOf :
- required : [ ethernet ]
- required : [ link ]
then :
allOf :
- required :
- phy-mode
- oneOf :
- required :
- fixed-link
- required :
- phy-handle
- required :
- managed
2021-11-30 22:16:24 +01:00
additionalProperties : true
...