NXP i.MX8/9 DWMAC glue layer

Schema identifier ($id): "http://devicetree.org/schemas/net/nxp,dwmac-imx.yaml#"

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

Maintainers (maintainers): "Clark Wang <xiaoning.wang@nxp.com>", "Shawn Guo <shawnguo@kernel.org>", "NXP Linux Team <linux-imx@nxp.com>"

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "nxp,imx8mp-dwmac-eqos", "nxp,imx8dxl-dwmac-eqos", "nxp,imx93-dwmac-eqos"

Required in this object (required): "compatible"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): snps,dwmac.yaml#

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): "nxp,imx8mp-dwmac-eqos", "nxp,imx8dxl-dwmac-eqos", "nxp,imx93-dwmac-eqos"

Item 2

Exact value (const): "snps,dwmac-5.10a"

clocks — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

MAC host clock

Item 2

MAC apb clock

Item 3

MAC timer clock

Item 4

MAC RGMII TX clock

Item 5

EQOS MEM clock

clock-names — required here #

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 5

Rule for matching array elements (contains) #

Allowed values (enum): "stmmaceth", "pclk", "ptp_ref", "tx", "mem"

interrupts — not listed as required here #

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "macirq"

Item 2

Exact value (const): "eth_wake_irq"

intf_mode — not listed as required here #

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

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to the GPR syscon

Item 2

the offset of the GPR register

Should be phandle/offset pair. The phandle to the syscon node which encompases the GPR register, and the offset of the GPR register.

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.

snps,rmii_refclk_ext — not listed as required here #

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

To select RMII reference clock from external.

Required in this object (required): "compatible", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/imx8mp-clock.h>

eqos: ethernet@30bf0000 {
        compatible = "nxp,imx8mp-dwmac-eqos","snps,dwmac-5.10a";
        reg = <0x30bf0000 0x10000>;
        interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
        interrupt-names = "macirq", "eth_wake_irq";
        clocks = <&clk IMX8MP_CLK_ENET_QOS_ROOT>,
                 <&clk IMX8MP_CLK_QOS_ENET_ROOT>,
                 <&clk IMX8MP_CLK_ENET_QOS_TIMER>,
                 <&clk IMX8MP_CLK_ENET_QOS>;
        clock-names = "stmmaceth", "pclk", "ptp_ref", "tx";
        phy-mode = "rgmii";
};

Source notes #

Annotations retained from the schema source

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

Line 14: We need a select here so we don't match all nodes with 'snps,dwmac'

Edit this page