summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/net/fsl,cpm-mdio.yaml
blob: b1791a3c490e2fc9522d5889a9ffb8d8b3298fa5 (plain)
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
55
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/net/fsl,cpm-mdio.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Freescale CPM MDIO Device

maintainers:
  - Frank Li <Frank.Li@nxp.com>

properties:
  compatible:
    oneOf:
      - enum:
          - fsl,pq1-fec-mdio
          - fsl,cpm2-mdio-bitbang
      - items:
          - const: fsl,mpc8272ads-mdio-bitbang
          - const: fsl,mpc8272-mdio-bitbang
          - const: fsl,cpm2-mdio-bitbang

  reg:
    maxItems: 1

  fsl,mdio-pin:
    $ref: /schemas/types.yaml#/definitions/uint32
    description: pin of port C controlling mdio data

  fsl,mdc-pin:
    $ref: /schemas/types.yaml#/definitions/uint32
    description: pin of port C controlling mdio clock

required:
  - compatible
  - reg

allOf:
  - $ref: mdio.yaml#

unevaluatedProperties: false

examples:
  - |
    mdio@10d40 {
        compatible = "fsl,mpc8272ads-mdio-bitbang",
                     "fsl,mpc8272-mdio-bitbang",
                     "fsl,cpm2-mdio-bitbang";
        reg = <0x10d40 0x14>;
        #address-cells = <1>;
        #size-cells = <0>;
        fsl,mdio-pin = <12>;
        fsl,mdc-pin = <13>;
    };