LiteX LiteETH ethernet device

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

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

Maintainers (maintainers): "Joel Stanley <joel@jms.id.au>"

LiteETH is a small footprint and configurable Ethernet core for FPGA based system on chips.

The hardware source is Open Source and can be found on at https://github.com/enjoy-digital/liteeth/.

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): "litex,liteeth"

reg — required here #

Array item rules (items) #

Item 1

MAC registers

Item 2

MDIO registers

Item 3

Packet buffer

reg-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "mac"

Item 2

Exact value (const): "mdio"

Item 3

Exact value (const): "buffer"

interrupts — required here #

Maximum number of items (maxItems): 1

litex,rx-slots — not listed as required here #

Number of slots in the receive buffer

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

Minimum value (minimum): 1

Default value (default): 2

litex,tx-slots — not listed as required here #

Number of slots in the transmit buffer

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

Minimum value (minimum): 1

Default value (default): 2

litex,slot-size — not listed as required here #

Size in bytes of a slot in the tx/rx buffer

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

Minimum value (minimum): 2048

Default value (default): 2048

mac-address — 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.

phy-handle — not listed as required here #

true — No constraints added by this property rule.

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.

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) #

mac: ethernet@8020000 {
    compatible = "litex,liteeth";
    reg = <0x8021000 0x100>,
          <0x8020800 0x100>,
          <0x8030000 0x2000>;
    reg-names = "mac", "mdio", "buffer";
    litex,rx-slots = <2>;
    litex,tx-slots = <2>;
    litex,slot-size = <0x800>;
    interrupts = <0x11 0x1>;
    phy-handle = <&eth_phy>;

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

        eth_phy: ethernet-phy@0 {
            reg = <0>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause

Edit this page