brintos

brintos / linux-shallow public Read only

0
0
Text · 2.1 KiB · 4801204 Raw
82 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/net/dsa/dsa-port.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Generic DSA Switch Port8 9maintainers:10  - Andrew Lunn <andrew@lunn.ch>11  - Florian Fainelli <f.fainelli@gmail.com>12  - Vladimir Oltean <olteanv@gmail.com>13 14description:15  A DSA switch port is a component of a switch that manages one MAC, and can16  pass Ethernet frames. It can act as a stanadard Ethernet switch port, or have17  DSA-specific functionality.18 19$ref: /schemas/net/ethernet-switch-port.yaml#20 21properties:22  reg:23    items:24      - description: Port number25 26  label:27    description:28      Describes the label associated with this port, which will become29      the netdev name30    $ref: /schemas/types.yaml#/definitions/string31 32  link:33    description:34      Should be a list of phandles to other switch's DSA port. This35      port is used as the outgoing port towards the phandle ports. The36      full routing information must be given, not just the one hop37      routes to neighbouring switches38    $ref: /schemas/types.yaml#/definitions/phandle-array39    items:40      maxItems: 141 42  ethernet:43    description:44      Should be a phandle to a valid Ethernet device node.  This host45      device is what the switch port is connected to46    $ref: /schemas/types.yaml#/definitions/phandle47 48  dsa-tag-protocol:49    description:50      Instead of the default, the switch will use this tag protocol if51      possible. Useful when a device supports multiple protocols and52      the default is incompatible with the Ethernet device.53    enum:54      - dsa55      - edsa56      - ocelot57      - ocelot-8021q58      - rtl8_459      - rtl8_4t60      - seville61 62# CPU and DSA ports must have phylink-compatible link descriptions63if:64  oneOf:65    - required: [ ethernet ]66    - required: [ link ]67then:68  allOf:69    - required:70        - phy-mode71    - oneOf:72        - required:73            - fixed-link74        - required:75            - phy-handle76        - required:77            - managed78 79additionalProperties: true80 81...82