summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/net/qcom,ipq8064-mdio.yaml
blob: 67df3fe861eed9dcc993eb54d66862f2d557d231 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/net/qcom,ipq8064-mdio.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm ipq806x MDIO bus controller

maintainers:
  - Ansuel Smith <ansuelsmth@gmail.com>

description:
  The ipq806x soc have a MDIO dedicated controller that is
  used to communicate with the gmac phy connected.

allOf:
  - $ref: "mdio.yaml#"

properties:
  compatible:
    const: qcom,ipq8064-mdio

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

required:
  - compatible
  - reg
  - clocks
  - "#address-cells"
  - "#size-cells"

examples:
  - |
    #include <dt-bindings/clock/qcom,gcc-ipq806x.h>

    mdio0: mdio@37000000 {
        #address-cells = <1>;
        #size-cells = <0>;

        compatible = "qcom,ipq8064-mdio";
        reg = <0x37000000 0x200000>;

        clocks = <&gcc GMAC_CORE1_CLK>;

        switch@10 {
            compatible = "qca,qca8337";
            reg = <0x10>;
            /* ... */
        };
    };