Allwinner A20 GMAC

Schema identifier ($id): "http://devicetree.org/schemas/net/allwinner,sun7i-a20-gmac.yaml#"

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

All of these rules must match (allOf) #

Rule 1 #

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "allwinner,sun7i-a20-gmac"

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 #

Array item rules (items) #

Item 1

GMAC main clock

Item 2

TX clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "stmmaceth"

Item 2

Exact value (const): "allwinner_gmac_tx"

phy-supply — not listed as required here #

PHY regulator

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

gmac: ethernet@1c50000 {
    compatible = "allwinner,sun7i-a20-gmac";
    reg = <0x01c50000 0x10000>;
    interrupts = <0 85 1>;
    interrupt-names = "macirq";
    clocks = <&ahb_gates 49>, <&gmac_tx>;
    clock-names = "stmmaceth", "allwinner_gmac_tx";
    phy-mode = "mii";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page