1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/ti,davinci-mdio.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: TI SoC Davinci/Keystone2 MDIO Controller
8
9maintainers:
10  - Grygorii Strashko <grygorii.strashko@ti.com>
11
12description:
13  TI SoC Davinci/Keystone2 MDIO Controller
14
15allOf:
16  - $ref: "mdio.yaml#"
17
18properties:
19  compatible:
20    oneOf:
21      - const: ti,davinci_mdio
22      - items:
23          - const: ti,keystone_mdio
24          - const: ti,davinci_mdio
25      - items:
26          - const: ti,cpsw-mdio
27          - const: ti,davinci_mdio
28      - items:
29          - const: ti,am4372-mdio
30          - const: ti,cpsw-mdio
31          - const: ti,davinci_mdio
32
33  reg:
34    maxItems: 1
35
36  bus_freq:
37    maximum: 2500000
38    description: MDIO Bus frequency
39
40  clocks:
41    maxItems: 1
42
43  clock-names:
44    items:
45      - const: fck
46
47  ti,hwmods:
48    description: TI hwmod name
49    deprecated: true
50    $ref: /schemas/types.yaml#/definitions/string-array
51    items:
52      const: davinci_mdio
53
54if:
55  properties:
56    compatible:
57      contains:
58        const: ti,davinci_mdio
59  required:
60    - bus_freq
61
62required:
63  - compatible
64  - reg
65  - "#address-cells"
66  - "#size-cells"
67
68unevaluatedProperties: false
69
70examples:
71  - |
72    davinci_mdio: mdio@4a101000 {
73         compatible = "ti,davinci_mdio";
74         #address-cells = <1>;
75         #size-cells = <0>;
76         reg = <0x4a101000 0x1000>;
77         bus_freq = <1000000>;
78    };
79