Hirschmann Hellcreek TSN Switch

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

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

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dsa.yaml#/$defs/ethernet-ports

Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Florian Fainelli <f.fainelli@gmail.com>", "Vladimir Oltean <olteanv@gmail.com>", "Kurt Kanzenbach <kurt@linutronix.de>"

The Hellcreek TSN Switch IP is a 802.1Q Ethernet compliant switch. It supports the Precision Time Protocol, Hardware Timestamping as well the Time Aware Shaper.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "hirschmann,hellcreek-de1soc-r1"

reg — required here #

The physical base address and size of TSN and PTP memory base

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tsn"

Item 2

Exact value (const): "ptp"

leds — 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 matching a name pattern (patternProperties) #

^led@[01]$ — name matches this regular expression

Value type (type): "object"

Hellcreek leds

Shared schema rule ($ref): /schemas/leds/common.yaml#

Properties and child nodes (properties)

reg — required here

Array item rules (items)

Item 1

Allowed values (enum): 0, 1

Led number

label — not listed as required here

true — No constraints added by this property rule.

default-state — not listed as required here

true — No constraints added by this property rule.

Required in this object (required): "reg"

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

false

Not allowed by this rule.

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

false

Not allowed by this rule.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

switch0: switch@ff240000 {
    compatible = "hirschmann,hellcreek-de1soc-r1";
    reg = <0xff240000 0x1000>,
          <0xff250000 0x1000>;
    reg-names = "tsn", "ptp";
    dsa,member = <0 0>;

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

        port@0 {
            reg = <0>;
            ethernet = <&gmac0>;
            phy-mode = "mii";

            fixed-link {
                speed = <100>;
                full-duplex;
            };
        };

        port@2 {
            reg = <2>;
            label = "lan0";
            phy-handle = <&phy1>;
        };

        port@3 {
            reg = <3>;
            label = "lan1";
            phy-handle = <&phy2>;
        };
    };

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

        led@0 {
            reg = <0>;
            label = "sync_good";
            default-state = "on";
        };

        led@1 {
            reg = <1>;
            label = "is_gm";
            default-state = "off";
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page