Toshiba Visconti DWMAC Ethernet controller

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

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

Maintainers (maintainers): "Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>"

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "toshiba,visconti-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): "toshiba,visconti-dwmac"

Item 2

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

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

main clock

Item 2

PHY reference clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "stmmaceth"

Item 2

Exact value (const): "phy_ref_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", "reg", "clocks", "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/toshiba,tmpv770x.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    piether: ethernet@28000000 {
        compatible = "toshiba,visconti-dwmac", "snps,dwmac-4.20a";
        reg = <0 0x28000000 0 0x10000>;
        interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
        interrupt-names = "macirq";
        clocks = <&pismu TMPV770X_CLK_PIETHER_BUS>, <&pismu TMPV770X_CLK_PIETHER_125M>;
        clock-names = "stmmaceth", "phy_ref_clk";
        snps,txpbl = <4>;
        snps,rxpbl = <4>;
        snps,tso;
        phy-mode = "rgmii-id";
        phy-handle = <&phy0>;

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

            phy0: ethernet-phy@1 {
                device_type = "ethernet-phy";
                reg = <0x1>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page