MDIO Bus Common Properties

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

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

Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Florian Fainelli <f.fainelli@gmail.com>", "Heiner Kallweit <hkallweit1@gmail.com>"

These are generic properties that can apply to any MDIO bus. Any MDIO bus must have a list of child nodes, one per device on the bus. These should follow the generic ethernet-phy.yaml document, or a device specific binding document.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^mdio(-(bus|external))?(@.+|-([0-9]+))?$"

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

The phandle and specifier for the GPIO that controls the RESET lines of all devices on that MDIO bus.

reset-delay-us — not listed as required here #

RESET pulse width in microseconds. It applies to all MDIO devices and must therefore be appropriately determined based on all devices requirements (maximum value of all per-device RESET pulse widths).

reset-post-delay-us — not listed as required here #

Delay after reset deassert in microseconds. It applies to all MDIO devices and it's determined by how fast all devices are ready for communication. This delay happens just before e.g. Ethernet PHY type ID auto detection.

clock-frequency — not listed as required here #

Desired MDIO bus clock frequency in Hz. Values greater than IEEE 802.3 defined 2.5MHz should only be used when all devices on the bus support the given clock speed.

suppress-preamble — not listed as required here #

The 32 bit preamble should be suppressed. In order for this to work, all devices on the bus must support suppressed preamble.

Value type (type): "boolean"

Properties matching a name pattern (patternProperties) #

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

Value type (type): "object"

Properties and child nodes (properties) #

reg — required here

Minimum value (minimum): 0

Maximum value (maximum): 31

The ID number for the device.

broken-turn-around — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

If set, indicates the MDIO device does not correctly release the turn around line low at end of the control phase of the MDIO transaction.

reset-gpios — not listed as required here

Maximum number of items (maxItems): 1

The GPIO phandle and specifier for the MDIO reset signal.

reset-assert-us — not listed as required here

Delay after the reset was asserted in microseconds. If this property is missing the delay will be skipped.

reset-deassert-us — not listed as required here

Delay after the reset was deasserted in microseconds. If this property is missing the delay will be skipped.

Required in this object (required): "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Examples (examples) #

davinci_mdio: mdio@5c030000 {
    reg = <0x5c030000 0x1000>;
    #address-cells = <1>;
    #size-cells = <0>;

    reset-gpios = <&gpio2 5 1>;
    reset-delay-us = <2>;

    ethphy0: ethernet-phy@1 {
        reg = <1>;
    };

    ethphy1: ethernet-phy@3 {
        reg = <3>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page