1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/qcom,ipq8064-mdio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm ipq806x MDIO bus controller
8
9maintainers:
10  - Ansuel Smith <ansuelsmth@gmail.com>
11
12description:
13  The ipq806x soc have a MDIO dedicated controller that is
14  used to communicate with the gmac phy connected.
15
16allOf:
17  - $ref: "mdio.yaml#"
18
19properties:
20  compatible:
21    const: qcom,ipq8064-mdio
22
23  reg:
24    maxItems: 1
25
26  clocks:
27    maxItems: 1
28
29required:
30  - compatible
31  - reg
32  - clocks
33  - "#address-cells"
34  - "#size-cells"
35
36examples:
37  - |
38    #include <dt-bindings/clock/qcom,gcc-ipq806x.h>
39
40    mdio0: mdio@37000000 {
41        #address-cells = <1>;
42        #size-cells = <0>;
43
44        compatible = "qcom,ipq8064-mdio";
45        reg = <0x37000000 0x200000>;
46
47        clocks = <&gcc GMAC_CORE1_CLK>;
48
49        switch@10 {
50            compatible = "qca,qca8337";
51            /* ... */
52        };
53    };
54