Microchip Lan966x Ethernet switch controller

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

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

Maintainers (maintainers): "Horatiu Vultur <horatiu.vultur@microchip.com>"

The lan966x switch is a multi-port Gigabit AVB/TSN Ethernet Switch with two integrated 10/100/1000Base-T PHYs. In addition to the integrated PHYs, it supports up to 2RGMII/RMII, up to 3BASE-X/SERDES/2.5GBASE-X and up to 2 Quad-SGMII/Quad-USGMII interfaces.

Properties and child nodes (properties) #

$nodename — not listed as required here #

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

compatible — required here #

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

reg — required here #

Array item rules (items) #

Item 1

cpu target

Item 2

general control block target

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "cpu"

Item 2

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

analyzer interrupt

Item 4

ptp interrupt

Item 5

ptp external 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): "ana"

Item 4

Exact value (const): "ptp"

Item 5

Exact value (const): "ptp-ext"

resets — required here #

Array item rules (items) #

Item 1

Reset controller used for switch core reset (soft reset)

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "switch"

ethernet-ports — required here #

Value type (type): "object"

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 not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

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

Value type (type): "object"

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)

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

reg — required here

Switch port number

phys — required here

Phandle of a Ethernet SerDes PHY

phy-mode — required here

This specifies the interface used by the Ethernet SerDes towards the PHY or SFP.

Allowed values (enum): "gmii", "sgmii", "qsgmii", "1000base-x", "2500base-x"

phy-handle — not listed as required here

Phandle of a Ethernet PHY.

sfp — not listed as required here

Phandle of an SFP.

managed — not listed as required here

true — No constraints added by this property rule.

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

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", "resets", "reset-names", "ethernet-ports"

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@e0000000 {
  compatible = "microchip,lan966x-switch";
  reg =  <0xe0000000 0x0100000>,
         <0xe2000000 0x0800000>;
  reg-names = "cpu", "gcb";
  interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
  interrupt-names = "xtr";
  resets = <&switch_reset 0>;
  reset-names = "switch";
  ethernet-ports {
    #address-cells = <1>;
    #size-cells = <0>;

    port0: port@0 {
      reg = <0>;
      phy-handle = <&phy0>;
      phys = <&serdes 0 0>;
      phy-mode = "gmii";
    };

    port1: port@1 {
      reg = <1>;
      sfp = <&sfp_eth1>;
      managed = "in-band-status";
      phys = <&serdes 2 4>;
      phy-mode = "sgmii";
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Edit this page