treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / net / aspeed,ast2600-mdio.yaml
blob71808e78a495ee7056f23f24b33699fe93e0a1f9
1 # SPDX-License-Identifier: GPL-2.0-or-later
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/net/aspeed,ast2600-mdio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ASPEED AST2600 MDIO Controller
9 maintainers:
10   - Andrew Jeffery <andrew@aj.id.au>
12 description: |+
13   The ASPEED AST2600 MDIO controller is the third iteration of ASPEED's MDIO
14   bus register interface, this time also separating out the controller from the
15   MAC.
17 allOf:
18   - $ref: "mdio.yaml#"
20 properties:
21   compatible:
22     const: aspeed,ast2600-mdio
23   reg:
24     maxItems: 1
25     description: The register range of the MDIO controller instance
27 required:
28   - compatible
29   - reg
30   - "#address-cells"
31   - "#size-cells"
33 examples:
34   - |
35     mdio0: mdio@1e650000 {
36             compatible = "aspeed,ast2600-mdio";
37             reg = <0x1e650000 0x8>;
38             #address-cells = <1>;
39             #size-cells = <0>;
41             ethphy0: ethernet-phy@0 {
42                     compatible = "ethernet-phy-ieee802.3-c22";
43                     reg = <0>;
44             };
45     };