xref: /freebsd/sys/contrib/device-tree/Bindings/net/mdio-gpio.yaml (revision 29fc4075e69fd27de0cded313ac6000165d99f8b)
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    items:
32      - description: MDC
33      - description: MDIO
34      - description: MDO
35
36#Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases"
37#node.
38additionalProperties:
39  type: object
40
41examples:
42  - |
43    aliases {
44        mdio-gpio0 = &mdio0;
45    };
46
47    mdio0: mdio {
48      compatible = "virtual,mdio-gpio";
49      #address-cells = <1>;
50      #size-cells = <0>;
51      gpios = <&qe_pio_a 11>,
52              <&qe_pio_c 6>;
53      ethphy0: ethernet-phy@0 {
54        reg = <0>;
55      };
56    };
57...
58