1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/net/dsa/dsa-port.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Ethernet Switch port Device Tree Bindings 8 9maintainers: 10 - Andrew Lunn <andrew@lunn.ch> 11 - Florian Fainelli <f.fainelli@gmail.com> 12 - Vivien Didelot <vivien.didelot@gmail.com> 13 14description: 15 Ethernet switch port Description 16 17allOf: 18 - $ref: "http://devicetree.org/schemas/net/ethernet-controller.yaml#" 19 20properties: 21 reg: 22 description: Port number 23 24 label: 25 description: 26 Describes the label associated with this port, which will become 27 the netdev name 28 $ref: /schemas/types.yaml#/definitions/string 29 30 link: 31 description: 32 Should be a list of phandles to other switch's DSA port. This 33 port is used as the outgoing port towards the phandle ports. The 34 full routing information must be given, not just the one hop 35 routes to neighbouring switches 36 $ref: /schemas/types.yaml#/definitions/phandle-array 37 38 ethernet: 39 description: 40 Should be a phandle to a valid Ethernet device node. This host 41 device is what the switch port is connected to 42 $ref: /schemas/types.yaml#/definitions/phandle 43 44 dsa-tag-protocol: 45 description: 46 Instead of the default, the switch will use this tag protocol if 47 possible. Useful when a device supports multiple protocols and 48 the default is incompatible with the Ethernet device. 49 enum: 50 - dsa 51 - edsa 52 - ocelot 53 - ocelot-8021q 54 - seville 55 56 phy-handle: true 57 58 phy-mode: true 59 60 fixed-link: true 61 62 mac-address: true 63 64 sfp: true 65 66 managed: true 67 68 rx-internal-delay-ps: true 69 70 tx-internal-delay-ps: true 71 72required: 73 - reg 74 75additionalProperties: true 76 77... 78