MDIO on GPIOs

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

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

Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Heiner Kallweit <hkallweit1@gmail.com>", "Russell King <linux@armlinux.org.uk>"

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): "virtual,mdio-gpio", "microchip,mdio-smi0"

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

gpios — not listed as required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

MDC

Item 2

MDIO

Item 3

MDO

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

Value type (type): "object"

Examples (examples) #

aliases {
    mdio-gpio0 = &mdio0;
};

mdio0: mdio {
  compatible = "virtual,mdio-gpio";
  #address-cells = <1>;
  #size-cells = <0>;
  gpios = <&qe_pio_a 11>,
          <&qe_pio_c 6>;
  ethphy0: ethernet-phy@0 {
    reg = <0>;
  };
};

Source notes #

Annotations retained from the schema source

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

Line 36: Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases"

Line 37: node.

Edit this page