AXI 1G/2.5G Ethernet Subsystem

Schema identifier ($id): "http://devicetree.org/schemas/net/xlnx,axi-ethernet.yaml#"

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

Also called AXI 1G/2.5G Ethernet Subsystem, the xilinx axi ethernet IP core provides connectivity to an external ethernet PHY supporting different interfaces: MII, GMII, RGMII, SGMII, 1000BaseX. It also includes two segments of memory for buffering TX and RX, as well as the capability of offloading TX/RX checksum calculation off the processor.

Management configuration is done through the AXI interface, while payload is sent and received through means of an AXI DMA controller. This driver includes the DMA driver code, so this driver is incompatible with AXI DMA driver.

Maintainers (maintainers): "Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "xlnx,axi-ethernet-1.00.a", "xlnx,axi-ethernet-1.01.a", "xlnx,axi-ethernet-2.01.a"

reg — required here #

Address and length of the IO space, as well as the address and length of the AXI DMA controller IO space, unless axistream-connected is specified, in which case the reg attribute of the node referenced by it is used.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupts — required here #

Array item rules (items) #

Item 1

Ethernet core interrupt

Item 2

Tx DMA interrupt

Item 3

Rx DMA interrupt

Ethernet core interrupt is optional. If axistream-connected property is present DMA node should contains TX/RX DMA interrupts else DMA interrupt resources are mentioned on ethernet node.

Minimum number of items (minItems): 1

phy-handle — required here #

true — No constraints added by this property rule.

xlnx,rxmem — required here #

Set to allocated memory buffer for Rx/Tx in the hardware.

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

phy-mode — not listed as required here #

Allowed values (enum): "mii", "gmii", "rgmii", "sgmii", "1000base-x"

xlnx,phy-type — not listed as required here #

Do not use, but still accepted in preference to phy-mode.

Deprecated (deprecated): true

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

xlnx,txcsum — not listed as required here #

TX checksum offload. 0 or empty for disabling TX checksum offload, 1 to enable partial TX checksum offload and 2 to enable full TX checksum offload.

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

Allowed values (enum): 0, 1, 2

xlnx,rxcsum — not listed as required here #

RX checksum offload. 0 or empty for disabling RX checksum offload, 1 to enable partial RX checksum offload and 2 to enable full RX checksum offload.

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

Allowed values (enum): 0, 1, 2

xlnx,switch-x-sgmii — not listed as required here #

Value type (type): "boolean"

Indicate the Ethernet core is configured to support both 1000BaseX and SGMII modes. If set, the phy-mode should be set to match the mode selected on core reset (i.e. by the basex_or_sgmii core input line).

clocks — not listed as required here #

Array item rules (items) #

Item 1

Clock for AXI register slave interface.

Item 2

AXI4-Stream clock for TXD RXD TXC and RXS interfaces.

Item 3

Ethernet reference clock, used by signal delay primitives and transceivers.

Item 4

MGT reference clock (used by optional internal PCS/PMA PHY)

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "s_axi_lite_clk"

Item 2

Exact value (const): "axis_clk"

Item 3

Exact value (const): "ref_clk"

Item 4

Exact value (const): "mgt_clk"

axistream-connected — not listed as required here #

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

Phandle of AXI DMA controller which contains the resources used by this device. If this is specified, the DMA-related resources from that device (DMA registers and DMA TX/RX interrupts) rather than this one will be used.

mdio — not listed as required here #

Value type (type): "object"

pcs-handle — not listed as required here #

Phandle to the internal PCS/PMA PHY in SGMII or 1000Base-X modes, where "pcs-handle" should be used to point to the PCS/PMA PHY, and "phy-handle" should point to an external PHY if exists.

Maximum number of items (maxItems): 1

dmas — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 32

TX and RX DMA channel phandle

dma-names — not listed as required here #

Array item rules (items) #

String pattern (pattern): "^[tr]x_chan([0-9]|1[0-5])$"

Should be "tx_chan0", "tx_chan1" ... "tx_chan15" for DMA Tx channel Should be "rx_chan0", "rx_chan1" ... "rx_chan15" for DMA Rx channel

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 32

Required in this object (required): "compatible", "interrupts", "reg", "xlnx,rxmem", "phy-handle"

All of these rules must match (allOf) #

Rule 1 #

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

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

false

Not allowed by this rule.

Examples (examples) #

axi_ethernet_eth: ethernet@40c00000 {
    compatible = "xlnx,axi-ethernet-1.00.a";
    interrupts = <2 0 1>;
    clock-names = "s_axi_lite_clk", "axis_clk", "ref_clk", "mgt_clk";
    clocks = <&axi_clk>, <&axi_clk>, <&pl_enet_ref_clk>, <&mgt_clk>;
    phy-mode = "mii";
    reg = <0x40c00000 0x40000>,<0x50c00000 0x40000>;
    dmas = <&xilinx_dma 0>, <&xilinx_dma 1>;
    dma-names = "tx_chan0", "rx_chan0";
    xlnx,rxcsum = <0x2>;
    xlnx,rxmem = <0x800>;
    xlnx,txcsum = <0x2>;
    phy-handle = <&phy0>;

    mdio {
        #address-cells = <1>;
        #size-cells = <0>;
        phy0: ethernet-phy@1 {
            device_type = "ethernet-phy";
            reg = <1>;
        };
    };
};
axi_ethernet_eth1: ethernet@40000000 {
    compatible = "xlnx,axi-ethernet-1.00.a";
    interrupts = <0>;
    clock-names = "s_axi_lite_clk", "axis_clk", "ref_clk", "mgt_clk";
    clocks = <&axi_clk>, <&axi_clk>, <&pl_enet_ref_clk>, <&mgt_clk>;
    phy-mode = "mii";
    reg = <0x40000000 0x40000>;
    xlnx,rxcsum = <0x2>;
    xlnx,rxmem = <0x800>;
    xlnx,txcsum = <0x2>;
    phy-handle = <&phy1>;
    axistream-connected = <&dma>;

    mdio {
        #address-cells = <1>;
        #size-cells = <0>;
        phy1: ethernet-phy@1 {
            device_type = "ethernet-phy";
            reg = <1>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page