1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/mdio-gpio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MDIO on GPIOs
8
9maintainers:
10  - Andrew Lunn <andrew@lunn.ch>
11  - Heiner Kallweit <hkallweit1@gmail.com>
12  - Russell King <linux@armlinux.org.uk>
13
14allOf:
15  - $ref: "mdio.yaml#"
16
17properties:
18  compatible:
19    enum:
20      - virtual,mdio-gpio
21      - microchip,mdio-smi0
22
23  "#address-cells":
24    const: 1
25
26  "#size-cells":
27    const: 0
28
29  gpios:
30    minItems: 2
31    maxItems: 3
32    items:
33      - description: MDC
34      - description: MDIO
35      - description: MDO
36
37#Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases"
38#node.
39additionalProperties:
40  type: object
41
42examples:
43  - |
44    aliases {
45        mdio-gpio0 = &mdio0;
46    };
47
48    mdio0: mdio {
49      compatible = "virtual,mdio-gpio";
50      #address-cells = <1>;
51      #size-cells = <0>;
52      gpios = <&qe_pio_a 11>,
53              <&qe_pio_c 6>;
54      ethphy0: ethernet-phy@0 {
55        reg = <0>;
56      };
57    };
58...
59