Broadcom UniMAC MDIO bus controller

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

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

Maintainers (maintainers): "Doug Berger <opendmb@gmail.com>", "Florian Fainelli <f.fainelli@gmail.com>", "Rafał Miłecki <rafal@milecki.pl>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): mdio.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "brcm,genet-mdio-v1", "brcm,genet-mdio-v2", "brcm,genet-mdio-v3", "brcm,genet-mdio-v4", "brcm,genet-mdio-v5", "brcm,asp-v2.1-mdio", "brcm,asp-v2.2-mdio", "brcm,asp-v3.0-mdio", "brcm,unimac-mdio", "brcm,bcm6846-mdio"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

base register

Item 2

indirect accesses to larger than 16-bits MDIO transactions

reg-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "mdio"

Item 2

Exact value (const): "mdio_indir_rw"

interrupts — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Interrupt shared with the Ethernet MAC or Ethernet switch this MDIO block is integrated from

Rule 2

Array item rules (items)

Item 1

"mdio done" interrupt

Item 2

"mdio error" interrupt

interrupt-names — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "mdio_done_error"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "mdio_done"

Item 2

Exact value (const): "mdio_error"

clocks — not listed as required here #

A reference to the clock supplying the MDIO bus controller

clock-frequency — not listed as required here #

The MDIO bus clock that must be output by the MDIO bus hardware, if absent, the default hardware values are used

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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

Examples (examples) #

mdio@403c0 {
    compatible = "brcm,unimac-mdio";
    reg = <0x403c0 0x8>, <0x40300 0x18>;
    reg-names = "mdio", "mdio_indir_rw";
    #address-cells = <1>;
    #size-cells = <0>;

    ethernet-phy@0 {
        compatible = "ethernet-phy-ieee802.3-c22";
        reg = <0>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page