treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / net / ti,davinci-mdio.yaml
blob242ac4935a4bfd7186e88fb32d8f7b924f685c27
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#
7 title: TI SoC Davinci/Keystone2 MDIO Controller
9 maintainers:
10   - Grygorii Strashko <grygorii.strashko@ti.com>
12 description:
13   TI SoC Davinci/Keystone2 MDIO Controller
15 allOf:
16   - $ref: "mdio.yaml#"
18 properties:
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
33   reg:
34     maxItems: 1
36   bus_freq:
37       maximum: 2500000
38       description:
39         MDIO Bus frequency
41   ti,hwmods:
42     description: TI hwmod name
43     deprecated: true
44     allOf:
45       - $ref: /schemas/types.yaml#/definitions/string-array
46       - items:
47           const: davinci_mdio
49 if:
50   properties:
51     compatible:
52       contains:
53         const: ti,davinci_mdio
54   required:
55     - bus_freq
57 required:
58   - compatible
59   - reg
60   - "#address-cells"
61   - "#size-cells"
63 examples:
64   - |
65     davinci_mdio: mdio@4a101000 {
66          compatible = "ti,davinci_mdio";
67          #address-cells = <1>;
68          #size-cells = <0>;
69          reg = <0x4a101000 0x1000>;
70          bus_freq = <1000000>;
71     };