The NIC functionality of NXP NETC

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

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

The NIC functionality in NETC is known as EtherNET Controller (ENETC). ENETC supports virtualization/isolation based on PCIe Single Root IO Virtualization (SR-IOV), advanced QoS with 8 traffic classes and 4 drop resilience levels, and a full range of TSN standards and NIC offload capabilities

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>", "Vladimir Oltean <vladimir.oltean@nxp.com>", "Wei Fang <wei.fang@nxp.com>", "Claudiu Manoil <claudiu.manoil@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "pci1957,e100"

Item 2

Exact value (const): "fsl,enetc"

Rule 2

Allowed values (enum): "pci1131,e101", "pci1131,e110"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Array item rules (items) #

Item 1

MAC transmit/receive reference clock

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "ref"

mdio — not listed as required here #

Shared schema rule ($ref): mdio.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Optional child node for ENETC instance, otherwise use NETC EMDIO.

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

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/pci/pci-device.yaml

Rule 2 #

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

Rule 3 #

Condition (if) #

This rule must not match (not)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "pci1131,e101"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

false — Not permitted by this property rule.

clock-names — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

pcie {
    #address-cells = <3>;
    #size-cells = <2>;

    ethernet@0,0 {
        compatible = "pci1957,e100", "fsl,enetc";
        reg = <0x000000 0 0 0 0>;
        phy-handle = <&sgmii_phy0>;
        phy-connection-type = "sgmii";

        mdio {
            #address-cells = <1>;
            #size-cells = <0>;
            phy@2 {
                reg = <0x2>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page