Broadcom BCM7xxx Ethernet Controller (GENET)

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

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

Maintainers (maintainers): "Doug Berger <opendmb@gmail.com>", "Florian Fainelli <f.fainelli@gmail.com>"

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "brcm,genet-v1", "brcm,genet-v2", "brcm,genet-v3", "brcm,genet-v4", "brcm,genet-v5", "brcm,bcm2711-genet-v5", "brcm,bcm7712-genet-v5"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

general purpose interrupt line

Item 2

RX and TX rings interrupt line

Item 3

Wake-on-LAN interrupt line

clocks — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

main clock

Item 2

EEE clock

Item 3

Wake-on-LAN clock

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "enet"

Item 2

Exact value (const): "enet-eee"

Item 3

Exact value (const): "enet-wol"

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 1

Properties matching a name pattern (patternProperties) #

^mdio@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Shared schema rule ($ref): brcm,unimac-mdio.yaml

GENET internal UniMAC MDIO bus

Required in this object (required): "reg", "interrupts", "phy-mode", "#address-cells", "#size-cells"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): ethernet-controller.yaml

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

ethernet@f0b60000 {
    phy-mode = "internal";
    phy-handle = <&phy1>;
    mac-address = [ 00 10 18 36 23 1a ];
    compatible = "brcm,genet-v4";
    reg = <0xf0b60000 0xfc4c>;
    interrupts = <0x0 0x14 0x0>, <0x0 0x15 0x0>;
    #address-cells = <1>;
    #size-cells = <1>;

    mdio0: mdio@e14 {
        compatible = "brcm,genet-mdio-v4";
        #address-cells = <1>;
        #size-cells = <0>;
        reg = <0xe14 0x8>;

        phy1: ethernet-phy@1 {
            max-speed = <1000>;
            reg = <1>;
            compatible = "ethernet-phy-ieee802.3-c22";
        };
    };
};
ethernet@f0b80000 {
    phy-mode = "moca";
    fixed-link = <1 0 1000 0 0>;
    mac-address = [ 00 10 18 36 24 1a ];
    compatible = "brcm,genet-v4";
    #address-cells = <1>;
    #size-cells = <1>;
    reg = <0xf0b80000 0xfc4c>;
    interrupts = <0x0 0x16 0x0>, <0x0 0x17 0x0>;

    mdio1: mdio@e14 {
        compatible = "brcm,genet-mdio-v4";
        #address-cells = <1>;
        #size-cells = <0>;
        reg = <0xe14 0x8>;
    };
};
ethernet@f0ba0000 {
    phy-mode = "rgmii";
    phy-handle = <&phy0>;
    mac-address = [ 00 10 18 36 26 1a ];
    compatible = "brcm,genet-v4";
    #address-cells = <1>;
    #size-cells = <1>;
    reg = <0xf0ba0000 0xfc4c>;
    interrupts = <0x0 0x18 0x0>, <0x0 0x19 0x0>;

    mdio2: mdio@e14 {
        compatible = "brcm,genet-mdio-v4";
        #address-cells = <1>;
        #size-cells = <0>;
        reg = <0xe14 0x8>;

        phy0: ethernet-phy@0 {
            max-speed = <1000>;
            reg = <0>;
            compatible = "ethernet-phy-ieee802.3-c22";
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page