Intel DWMAC glue layer

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

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

Maintainers (maintainers): "Vineetha G. Jaya Kumaran <vineetha.g.jaya.kumaran@intel.com>"

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "intel,keembay-dwmac"

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): "intel,keembay-dwmac"

Item 2

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

clocks — required here #

Array item rules (items) #

Item 1

GMAC main clock

Item 2

PTP reference clock

Item 3

Tx clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "stmmaceth"

Item 2

Exact value (const): "ptp_ref"

Item 3

Exact value (const): "tx_clk"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

interrupt-names — not listed as required here #

Exact value (const): "macirq"

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>
#define MOVISOC_KMB_PSS_GBE
#define MOVISOC_KMB_PSS_AUX_GBE_PTP
#define MOVISOC_KMB_PSS_AUX_GBE_TX

stmmac_axi_setup: stmmac-axi-config {
    snps,lpi_en;
    snps,wr_osr_lmt = <0x0>;
    snps,rd_osr_lmt = <0x2>;
    snps,blen = <0 0 0 0 16 8 4>;
};

mtl_rx_setup: rx-queues-config {
    snps,rx-queues-to-use = <2>;
    snps,rx-sched-sp;
    queue0 {
        snps,dcb-algorithm;
        snps,map-to-dma-channel = <0x0>;
        snps,priority = <0x0>;
    };

    queue1 {
        snps,dcb-algorithm;
        snps,map-to-dma-channel = <0x1>;
        snps,priority = <0x1>;
    };
};

mtl_tx_setup: tx-queues-config {
    snps,tx-queues-to-use = <2>;
    snps,tx-sched-wrr;
    queue0 {
       snps,weight = <0x10>;
       snps,dcb-algorithm;
       snps,priority = <0x0>;
    };

    queue1 {
        snps,weight = <0x10>;
        snps,dcb-algorithm;
        snps,priority = <0x1>;
    };
};

gmac0: ethernet@3a000000 {
    compatible = "intel,keembay-dwmac", "snps,dwmac-4.10a";
    interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "macirq";
    reg = <0x3a000000 0x8000>;
    snps,perfect-filter-entries = <128>;
    phy-handle = <&eth_phy0>;
    phy-mode = "rgmii";
    rx-fifo-depth = <4096>;
    tx-fifo-depth = <4096>;
    clock-names = "stmmaceth", "ptp_ref", "tx_clk";
    clocks = <&scmi_clk MOVISOC_KMB_PSS_GBE>,
             <&scmi_clk MOVISOC_KMB_PSS_AUX_GBE_PTP>,
             <&scmi_clk MOVISOC_KMB_PSS_AUX_GBE_TX>;
    snps,pbl = <0x4>;
    snps,axi-config = <&stmmac_axi_setup>;
    snps,mtl-rx-config = <&mtl_rx_setup>;
    snps,mtl-tx-config = <&mtl_tx_setup>;
    snps,tso;

    mdio {
        #address-cells = <1>;
        #size-cells = <0>;
        compatible = "snps,dwmac-mdio";

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

Source notes #

Annotations retained from the schema source

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

Line 58: FIXME: Remove defines and include the correct header file

Line 59: once it is available in mainline.

Edit this page