MAC in Ingenic SoCs

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

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

Maintainers (maintainers): "周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>"

The Ethernet Media Access Controller in Ingenic SoCs.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ingenic,jz4775-mac", "ingenic,x1000-mac", "ingenic,x1600-mac", "ingenic,x1830-mac", "ingenic,x2000-mac"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-names — required here #

Exact value (const): "macirq"

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "stmmaceth"

mode-reg — required here #

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

An extra syscon register that control ethernet interface and timing delay

rx-clk-delay-ps — not listed as required here #

RGMII receive clock delay defined in pico seconds

tx-clk-delay-ps — not listed as required here #

RGMII transmit clock delay defined in pico seconds

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "mode-reg"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/ingenic,x1000-cgu.h>

mac: ethernet@134b0000 {
    compatible = "ingenic,x1000-mac";
    reg = <0x134b0000 0x2000>;

    interrupt-parent = <&intc>;
    interrupts = <55>;
    interrupt-names = "macirq";

    clocks = <&cgu X1000_CLK_MAC>;
    clock-names = "stmmaceth";

    mode-reg = <&mac_phy_ctrl>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page