Microchip Sparx5 Ethernet switch controller

Schema identifier ($id): "http://devicetree.org/schemas/net/microchip,sparx5-switch.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Steen Hegelund <steen.hegelund@microchip.com>", "Lars Povlsen <lars.povlsen@microchip.com>", "Daniel Machon <daniel.machon@microchip.com>"

The SparX-5 Enterprise Ethernet switch family provides a rich set of Enterprise switching features such as advanced TCAM-based VLAN and QoS processing enabling delivery of differentiated services, and security through TCAM-based frame processing using versatile content aware processor (VCAP).

IPv4/IPv6 Layer 3 (L3) unicast and multicast routing is supported with up to 18K IPv4/9K IPv6 unicast LPM entries and up to 9K IPv4/3K IPv6 (S,G) multicast groups.

L3 security features include source guard and reverse path forwarding (uRPF) tasks. Additional L3 features include VRF-Lite and IP tunnels (IP over GRE/IP).

The SparX-5 switch family targets managed Layer 2 and Layer 3 equipment in SMB, SME, and Enterprise where high port count 1G/2.5G/5G/10G switching with 10G/25G aggregation links is required.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^switch@[0-9a-f]+$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "microchip,lan9691-switch", "microchip,sparx5-switch"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "microchip,lan969c-switch", "microchip,lan969b-switch", "microchip,lan969a-switch", "microchip,lan9699-switch", "microchip,lan9698-switch", "microchip,lan9697-switch", "microchip,lan9696-switch", "microchip,lan9695-switch", "microchip,lan9694-switch", "microchip,lan9693-switch", "microchip,lan9692-switch"

Item 2

Exact value (const): "microchip,lan9691-switch"

reg — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

cpu target

Item 2

devices target

Item 3

general control block target

reg-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "cpu"

Item 2

Exact value (const): "devices"

Item 3

Exact value (const): "gcb"

interrupts — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

register based extraction

Item 2

frame dma based extraction

Item 3

ptp interrupt

interrupt-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "xtr"

Item 2

Exact value (const): "fdma"

Item 3

Exact value (const): "ptp"

resets — not listed as required here #

Array item rules (items) #

Item 1

Reset controller used for switch core reset (soft reset)

reset-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "switch"

mac-address — not listed as required here #

true — No constraints added by this property rule.

ethernet-ports — required here #

Value type (type): "object"

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

false

Not allowed by this rule.

Properties and child nodes (properties) #

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

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

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

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

reg — required here

Switch port number

phys — not listed as required here

Maximum number of items (maxItems): 1

phandle of a Ethernet SerDes PHY. This defines which SerDes instance will handle the Ethernet traffic.

microchip,bandwidth — required here

Specifies bandwidth in Mbit/s allocated to the port.

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

Maximum value (maximum): 25000

microchip,sd-sgpio — not listed as required here

Index of the ports Signal Detect SGPIO in the set of 384 SGPIOs This is optional, and only needed if the default used index is is not correct.

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

Minimum value (minimum): 0

Maximum value (maximum): 383

rx-internal-delay-ps — not listed as required here

RGMII Receive Clock Delay defined in pico seconds, used to select the DLL phase shift between 1000 ps (45 degree shift at 1Gbps) and 3300 ps (147 degree shift at 1Gbps). A value of 0 ps will disable any delay. The Default is no delay.

Allowed values (enum): 0, 1000, 1700, 2000, 2500, 3000, 3300

Default value (default): 0

tx-internal-delay-ps — not listed as required here

RGMII Transmit Clock Delay defined in pico seconds, used to select the DLL phase shift between 1000 ps (45 degree shift at 1Gbps) and 3300 ps (147 degree shift at 1Gbps). A value of 0 ps will disable any delay. The Default is no delay.

Allowed values (enum): 0, 1000, 1700, 2000, 2500, 3000, 3300

Default value (default): 0

Required in this object (required): "reg", "phy-mode", "microchip,bandwidth"

Condition (if)

This rule must not match (not)

Properties and child nodes (properties)

phy-mode — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "rgmii", "rgmii-id", "rgmii-rxid", "rgmii-txid"

When the condition matches (then)

Required in this object (required): "phys"

Exactly one of these rules must match (oneOf)

Rule 1

Required in this object (required): "phy-handle"

Rule 2

Required in this object (required): "sfp", "managed"

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names", "ethernet-ports"

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): "microchip,lan9691-switch"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 2

reg-names — not listed as required here

Maximum number of items (maxItems): 2

When the condition does not match (else) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 3

reg-names — not listed as required here

Minimum number of items (minItems): 3

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
switch: switch@600000000 {
  compatible = "microchip,sparx5-switch";
  reg =  <0 0x401000>,
         <0x10004000 0x7fc000>,
         <0x11010000 0xaf0000>;
  reg-names = "cpu", "devices", "gcb";
  interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
  interrupt-names = "xtr";
  resets = <&reset 0>;
  reset-names = "switch";
  ethernet-ports {
    #address-cells = <1>;
    #size-cells = <0>;

    port0: port@0 {
      reg = <0>;
      microchip,bandwidth = <1000>;
      phys = <&serdes 13>;
      phy-handle = <&phy0>;
      phy-mode = "qsgmii";
    };
    /* ... */
    /* Then the 25G interfaces */
    port60: port@60 {
      reg = <60>;
      microchip,bandwidth = <25000>;
      phys = <&serdes 29>;
      phy-mode = "10gbase-r";
      sfp = <&sfp_eth60>;
      managed = "in-band-status";
      microchip,sd-sgpio = <365>;
    };
    port61: port@61 {
      reg = <61>;
      microchip,bandwidth = <25000>;
      phys = <&serdes 30>;
      phy-mode = "10gbase-r";
      sfp = <&sfp_eth61>;
      managed = "in-band-status";
      microchip,sd-sgpio = <369>;
    };
    port62: port@62 {
      reg = <62>;
      microchip,bandwidth = <25000>;
      phys = <&serdes 31>;
      phy-mode = "10gbase-r";
      sfp = <&sfp_eth62>;
      managed = "in-band-status";
      microchip,sd-sgpio = <373>;
    };
    port63: port@63 {
      reg = <63>;
      microchip,bandwidth = <25000>;
      phys = <&serdes 32>;
      phy-mode = "10gbase-r";
      sfp = <&sfp_eth63>;
      managed = "in-band-status";
      microchip,sd-sgpio = <377>;
    };
    /* Finally the Management interface */
    port64: port@64 {
      reg = <64>;
      microchip,bandwidth = <1000>;
      phys = <&serdes 0>;
      phy-handle = <&phy64>;
      phy-mode = "sgmii";
      mac-address = [ 00 00 00 01 02 03 ];
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page