Broadcom Starfighter 2 integrated switch

Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/brcm,sf2.yaml#"

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

Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"

Properties and child nodes (properties) #

compatible — not listed as required here #

Array item rules (items) #

Item 1

Allowed values (enum): "brcm,bcm4908-switch", "brcm,bcm7278-switch-v4.0", "brcm,bcm7278-switch-v4.8", "brcm,bcm7445-switch-v4.0"

reg — required here #

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 6

reg-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "reg"

Item 3

Exact value (const): "intrl2_0"

Item 4

Exact value (const): "intrl2_1"

Item 5

Exact value (const): "fcb"

Item 6

Exact value (const): "acb"

interrupts — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "switch_0"

Item 2

Exact value (const): "switch_1"

resets — not listed as required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Exact value (const): "switch"

clocks — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

switch's main clock

Item 2

dividing of the switch core clock

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "sw_switch"

Item 2

Exact value (const): "sw_switch_mdiv"

brcm,num-gphy — not listed as required here #

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

maximum number of integrated gigabit PHYs in the switch

brcm,num-rgmii-ports — not listed as required here #

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

maximum number of RGMII interfaces supported by the switch

brcm,fcb-pause-override — not listed as required here #

if present indicates that the switch supports Failover Control Block pause override capability

Value type (type): "boolean"

brcm,acb-packets-inflight — not listed as required here #

if present indicates that the switch Admission Control Block supports reporting the number of packets in-flight in a switch queue

Value type (type): "boolean"

ports — not listed as required here #

Value type (type): "object"

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

true

Allowed by this rule.

Properties matching a name pattern (patternProperties) #

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

Shared schema rule ($ref): dsa-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

brcm,use-bcm-hdr — not listed as required here

if present, indicates that the switch port has Broadcom tags enabled (per-packet metadata)

Value type (type): "boolean"

Required in this object (required): "reg", "interrupts"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dsa.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "brcm,bcm7278-switch-v4.0", "brcm,bcm7278-switch-v4.8"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 1

clock-names — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 1

Required in this object (required): "clocks", "clock-names"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "brcm,bcm7445-switch-v4.0"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Required in this object (required): "clocks", "clock-names"

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

false

Not allowed by this rule.

Examples (examples) #

switch@f0b00000 {
        compatible = "brcm,bcm7445-switch-v4.0";
        reg = <0xf0b00000 0x40000>,
              <0xf0b40000 0x110>,
              <0xf0b40340 0x30>,
              <0xf0b40380 0x30>,
              <0xf0b40400 0x34>,
              <0xf0b40600 0x208>;
        reg-names = "core", "reg", "intrl2_0", "intrl2_1",
                    "fcb", "acb";
        interrupts = <0 0x18 0>,
                     <0 0x19 0>;
        clocks = <&sw_switch>, <&sw_switch_mdiv>;
        clock-names = "sw_switch", "sw_switch_mdiv";
        brcm,num-gphy = <1>;
        brcm,num-rgmii-ports = <2>;
        brcm,fcb-pause-override;
        brcm,acb-packets-inflight;

        ports {
                #address-cells = <1>;
                #size-cells = <0>;

                port@0 {
                        label = "gphy";
                        reg = <0>;
                };
        };
};

Source notes #

Annotations retained from the schema source

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

Edit this page