xref: /freebsd/sys/contrib/device-tree/Bindings/net/brcm,unimac-mdio.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1354d7675SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2354d7675SEmmanuel Vadot%YAML 1.2
3354d7675SEmmanuel Vadot---
4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/net/brcm,unimac-mdio.yaml#
5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6354d7675SEmmanuel Vadot
7354d7675SEmmanuel Vadottitle: Broadcom UniMAC MDIO bus controller
8354d7675SEmmanuel Vadot
9354d7675SEmmanuel Vadotmaintainers:
10e67e8565SEmmanuel Vadot  - Doug Berger <opendmb@gmail.com>
11e67e8565SEmmanuel Vadot  - Florian Fainelli <f.fainelli@gmail.com>
12354d7675SEmmanuel Vadot  - Rafał Miłecki <rafal@milecki.pl>
13354d7675SEmmanuel Vadot
14354d7675SEmmanuel VadotallOf:
15354d7675SEmmanuel Vadot  - $ref: mdio.yaml#
16354d7675SEmmanuel Vadot
17354d7675SEmmanuel Vadotproperties:
18354d7675SEmmanuel Vadot  compatible:
19354d7675SEmmanuel Vadot    enum:
20354d7675SEmmanuel Vadot      - brcm,genet-mdio-v1
21354d7675SEmmanuel Vadot      - brcm,genet-mdio-v2
22354d7675SEmmanuel Vadot      - brcm,genet-mdio-v3
23354d7675SEmmanuel Vadot      - brcm,genet-mdio-v4
24354d7675SEmmanuel Vadot      - brcm,genet-mdio-v5
25*aa1a8ff2SEmmanuel Vadot      - brcm,asp-v2.0-mdio
26*aa1a8ff2SEmmanuel Vadot      - brcm,asp-v2.1-mdio
27354d7675SEmmanuel Vadot      - brcm,unimac-mdio
28354d7675SEmmanuel Vadot
29354d7675SEmmanuel Vadot  reg:
30354d7675SEmmanuel Vadot    minItems: 1
31354d7675SEmmanuel Vadot    items:
32354d7675SEmmanuel Vadot      - description: base register
33354d7675SEmmanuel Vadot      - description: indirect accesses to larger than 16-bits MDIO transactions
34354d7675SEmmanuel Vadot
35354d7675SEmmanuel Vadot  reg-names:
36354d7675SEmmanuel Vadot    minItems: 1
37354d7675SEmmanuel Vadot    items:
38354d7675SEmmanuel Vadot      - const: mdio
39354d7675SEmmanuel Vadot      - const: mdio_indir_rw
40354d7675SEmmanuel Vadot
41354d7675SEmmanuel Vadot  interrupts:
42354d7675SEmmanuel Vadot    oneOf:
43354d7675SEmmanuel Vadot      - description: >
44354d7675SEmmanuel Vadot          Interrupt shared with the Ethernet MAC or Ethernet switch this MDIO
45354d7675SEmmanuel Vadot          block is integrated from
46354d7675SEmmanuel Vadot      - items:
47354d7675SEmmanuel Vadot          - description: |
48354d7675SEmmanuel Vadot              "mdio done" interrupt
49354d7675SEmmanuel Vadot          - description: |
50354d7675SEmmanuel Vadot              "mdio error" interrupt
51354d7675SEmmanuel Vadot
52354d7675SEmmanuel Vadot  interrupt-names:
53354d7675SEmmanuel Vadot    oneOf:
54354d7675SEmmanuel Vadot      - const: mdio_done_error
55354d7675SEmmanuel Vadot      - items:
56354d7675SEmmanuel Vadot          - const: mdio_done
57354d7675SEmmanuel Vadot          - const: mdio_error
58354d7675SEmmanuel Vadot
59354d7675SEmmanuel Vadot  clocks:
60354d7675SEmmanuel Vadot    description: A reference to the clock supplying the MDIO bus controller
61354d7675SEmmanuel Vadot
62354d7675SEmmanuel Vadot  clock-frequency:
63354d7675SEmmanuel Vadot    description: >
64354d7675SEmmanuel Vadot      The MDIO bus clock that must be output by the MDIO bus hardware, if
65354d7675SEmmanuel Vadot      absent, the default hardware values are used
66354d7675SEmmanuel Vadot
67354d7675SEmmanuel VadotunevaluatedProperties: false
68354d7675SEmmanuel Vadot
69354d7675SEmmanuel Vadotrequired:
70354d7675SEmmanuel Vadot  - reg
71354d7675SEmmanuel Vadot  - '#address-cells'
72354d7675SEmmanuel Vadot  - '#size-cells'
73354d7675SEmmanuel Vadot
74354d7675SEmmanuel Vadotexamples:
75354d7675SEmmanuel Vadot  - |
76354d7675SEmmanuel Vadot    mdio@403c0 {
77354d7675SEmmanuel Vadot        compatible = "brcm,unimac-mdio";
78354d7675SEmmanuel Vadot        reg = <0x403c0 0x8>, <0x40300 0x18>;
79354d7675SEmmanuel Vadot        reg-names = "mdio", "mdio_indir_rw";
80354d7675SEmmanuel Vadot        #address-cells = <1>;
81354d7675SEmmanuel Vadot        #size-cells = <0>;
82354d7675SEmmanuel Vadot
83354d7675SEmmanuel Vadot        ethernet-phy@0 {
84354d7675SEmmanuel Vadot            compatible = "ethernet-phy-ieee802.3-c22";
85354d7675SEmmanuel Vadot            reg = <0>;
86354d7675SEmmanuel Vadot        };
87354d7675SEmmanuel Vadot    };
88