xref: /freebsd/sys/contrib/device-tree/Bindings/net/fsl,enetc-mdio.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1*0e8011faSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*0e8011faSEmmanuel Vadot%YAML 1.2
3*0e8011faSEmmanuel Vadot---
4*0e8011faSEmmanuel Vadot$id: http://devicetree.org/schemas/net/fsl,enetc-mdio.yaml#
5*0e8011faSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*0e8011faSEmmanuel Vadot
7*0e8011faSEmmanuel Vadottitle: ENETC external MDIO PCIe endpoint device
8*0e8011faSEmmanuel Vadot
9*0e8011faSEmmanuel Vadotdescription:
10*0e8011faSEmmanuel Vadot  NETC provides an external master MDIO interface (EMDIO) for managing external
11*0e8011faSEmmanuel Vadot  devices (PHYs). EMDIO supports both Clause 22 and 45 protocols. And the EMDIO
12*0e8011faSEmmanuel Vadot  provides a means for different software modules to share a single set of MDIO
13*0e8011faSEmmanuel Vadot  signals to access their PHYs.
14*0e8011faSEmmanuel Vadot
15*0e8011faSEmmanuel Vadotmaintainers:
16*0e8011faSEmmanuel Vadot  - Frank Li <Frank.Li@nxp.com>
17*0e8011faSEmmanuel Vadot  - Vladimir Oltean <vladimir.oltean@nxp.com>
18*0e8011faSEmmanuel Vadot  - Wei Fang <wei.fang@nxp.com>
19*0e8011faSEmmanuel Vadot  - Claudiu Manoil <claudiu.manoil@nxp.com>
20*0e8011faSEmmanuel Vadot
21*0e8011faSEmmanuel Vadotproperties:
22*0e8011faSEmmanuel Vadot  compatible:
23*0e8011faSEmmanuel Vadot    items:
24*0e8011faSEmmanuel Vadot      - enum:
25*0e8011faSEmmanuel Vadot          - pci1957,ee01
26*0e8011faSEmmanuel Vadot      - const: fsl,enetc-mdio
27*0e8011faSEmmanuel Vadot
28*0e8011faSEmmanuel Vadot  reg:
29*0e8011faSEmmanuel Vadot    maxItems: 1
30*0e8011faSEmmanuel Vadot
31*0e8011faSEmmanuel Vadotrequired:
32*0e8011faSEmmanuel Vadot  - compatible
33*0e8011faSEmmanuel Vadot  - reg
34*0e8011faSEmmanuel Vadot
35*0e8011faSEmmanuel VadotallOf:
36*0e8011faSEmmanuel Vadot  - $ref: mdio.yaml
37*0e8011faSEmmanuel Vadot  - $ref: /schemas/pci/pci-device.yaml
38*0e8011faSEmmanuel Vadot
39*0e8011faSEmmanuel VadotunevaluatedProperties: false
40*0e8011faSEmmanuel Vadot
41*0e8011faSEmmanuel Vadotexamples:
42*0e8011faSEmmanuel Vadot  - |
43*0e8011faSEmmanuel Vadot    pcie{
44*0e8011faSEmmanuel Vadot        #address-cells = <3>;
45*0e8011faSEmmanuel Vadot        #size-cells = <2>;
46*0e8011faSEmmanuel Vadot
47*0e8011faSEmmanuel Vadot        mdio@0,3 {
48*0e8011faSEmmanuel Vadot            compatible = "pci1957,ee01", "fsl,enetc-mdio";
49*0e8011faSEmmanuel Vadot            reg = <0x000300 0 0 0 0>;
50*0e8011faSEmmanuel Vadot            #address-cells = <1>;
51*0e8011faSEmmanuel Vadot            #size-cells = <0>;
52*0e8011faSEmmanuel Vadot
53*0e8011faSEmmanuel Vadot            ethernet-phy@2 {
54*0e8011faSEmmanuel Vadot                reg = <0x2>;
55*0e8011faSEmmanuel Vadot            };
56*0e8011faSEmmanuel Vadot        };
57*0e8011faSEmmanuel Vadot    };
58