TSN endpoint Ethernet MAC

Schema identifier ($id): "http://devicetree.org/schemas/net/engleder,tsnep.yaml#"

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

Maintainers (maintainers): "Gerhard Engleder <gerhard@engleder-embedded.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "engleder,tsnep"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

interrupt-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "mac"

Item 2

Exact value (const): "txrx-1"

Item 3

Exact value (const): "txrx-2"

Item 4

Exact value (const): "txrx-3"

Item 5

Exact value (const): "txrx-4"

Item 6

Exact value (const): "txrx-5"

Item 7

Exact value (const): "txrx-6"

Item 8

Exact value (const): "txrx-7"

The main interrupt for basic MAC features and the first TX/RX queue pair is named "mac". "txrx-[1-7]" are the interrupts for additional TX/RX queue pairs.

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

local-mac-address — not listed as required here #

true — No constraints added by this property rule.

mac-address — not listed as required here #

true — No constraints added by this property rule.

nvmem-cells — not listed as required here #

true — No constraints added by this property rule.

nvmem-cell-names — not listed as required here #

true — No constraints added by this property rule.

phy-connection-type — not listed as required here #

Allowed values (enum): "mii", "gmii", "rgmii", "rgmii-id"

phy-mode — not listed as required here #

true — No constraints added by this property rule.

phy-handle — not listed as required here #

true — No constraints added by this property rule.

mdio — not listed as required here #

Value type (type): "object"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

optional node for embedded MDIO controller

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

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

false

Not allowed by this rule.

Examples (examples) #

axi {
    #address-cells = <2>;
    #size-cells = <2>;
    tsnep0: ethernet@a0000000 {
        compatible = "engleder,tsnep";
        reg = <0x0 0xa0000000 0x0 0x10000>;
        interrupts = <0 89 1>;
        interrupt-parent = <&gic>;
        local-mac-address = [00 00 00 00 00 00];
        phy-mode = "rgmii";
        phy-handle = <&phy0>;
        mdio {
            #address-cells = <1>;
            #size-cells = <0>;
            suppress-preamble;
            phy0: ethernet-phy@1 {
                reg = <1>;
                rxc-skew-ps = <1080>;
            };
        };
    };

    tsnep1: ethernet@a0010000 {
        compatible = "engleder,tsnep";
        reg = <0x0 0xa0010000 0x0 0x10000>;
        interrupts = <0 93 1>, <0 94 1>, <0 95 1>, <0 96 1>;
        interrupt-names = "mac", "txrx-1", "txrx-2", "txrx-3";
        interrupt-parent = <&gic>;
        local-mac-address = [00 00 00 00 00 00];
        phy-mode = "rgmii";
        phy-handle = <&phy1>;
        mdio {
            #address-cells = <1>;
            #size-cells = <0>;
            suppress-preamble;
            phy1: ethernet-phy@1 {
                reg = <1>;
                rxc-skew-ps = <1080>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page