1*aa1a8ff2SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*aa1a8ff2SEmmanuel Vadot%YAML 1.2
3*aa1a8ff2SEmmanuel Vadot---
4*aa1a8ff2SEmmanuel Vadot$id: http://devicetree.org/schemas/net/xlnx,gmii-to-rgmii.yaml#
5*aa1a8ff2SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*aa1a8ff2SEmmanuel Vadot
7*aa1a8ff2SEmmanuel Vadottitle: Xilinx GMII to RGMII Converter
8*aa1a8ff2SEmmanuel Vadot
9*aa1a8ff2SEmmanuel Vadotmaintainers:
10*aa1a8ff2SEmmanuel Vadot  - Harini Katakam <harini.katakam@amd.com>
11*aa1a8ff2SEmmanuel Vadot
12*aa1a8ff2SEmmanuel Vadotdescription:
13*aa1a8ff2SEmmanuel Vadot  The Gigabit Media Independent Interface (GMII) to Reduced Gigabit Media
14*aa1a8ff2SEmmanuel Vadot  Independent Interface (RGMII) core provides the RGMII between RGMII-compliant
15*aa1a8ff2SEmmanuel Vadot  ethernet physical media devices (PHY) and the Gigabit Ethernet controller.
16*aa1a8ff2SEmmanuel Vadot  This core can be used in all three modes of operation(10/100/1000 Mb/s).
17*aa1a8ff2SEmmanuel Vadot  The Management Data Input/Output (MDIO) interface is used to configure the
18*aa1a8ff2SEmmanuel Vadot  speed of operation. This core can switch dynamically between the three
19*aa1a8ff2SEmmanuel Vadot  different speed modes by configuring the converter register through mdio write.
20*aa1a8ff2SEmmanuel Vadot  The core cannot function without an external phy connected to it.
21*aa1a8ff2SEmmanuel Vadot
22*aa1a8ff2SEmmanuel Vadotproperties:
23*aa1a8ff2SEmmanuel Vadot  compatible:
24*aa1a8ff2SEmmanuel Vadot    const: xlnx,gmii-to-rgmii-1.0
25*aa1a8ff2SEmmanuel Vadot
26*aa1a8ff2SEmmanuel Vadot  reg:
27*aa1a8ff2SEmmanuel Vadot    minimum: 0
28*aa1a8ff2SEmmanuel Vadot    maximum: 31
29*aa1a8ff2SEmmanuel Vadot    description: The ID number for the phy.
30*aa1a8ff2SEmmanuel Vadot
31*aa1a8ff2SEmmanuel Vadot  phy-handle:
32*aa1a8ff2SEmmanuel Vadot    $ref: ethernet-controller.yaml#/properties/phy-handle
33*aa1a8ff2SEmmanuel Vadot
34*aa1a8ff2SEmmanuel Vadotrequired:
35*aa1a8ff2SEmmanuel Vadot  - compatible
36*aa1a8ff2SEmmanuel Vadot  - reg
37*aa1a8ff2SEmmanuel Vadot  - phy-handle
38*aa1a8ff2SEmmanuel Vadot
39*aa1a8ff2SEmmanuel VadotunevaluatedProperties: false
40*aa1a8ff2SEmmanuel Vadot
41*aa1a8ff2SEmmanuel Vadotexamples:
42*aa1a8ff2SEmmanuel Vadot  - |
43*aa1a8ff2SEmmanuel Vadot    mdio {
44*aa1a8ff2SEmmanuel Vadot        #address-cells = <1>;
45*aa1a8ff2SEmmanuel Vadot        #size-cells = <0>;
46*aa1a8ff2SEmmanuel Vadot
47*aa1a8ff2SEmmanuel Vadot        phy: ethernet-phy@0 {
48*aa1a8ff2SEmmanuel Vadot            reg = <0>;
49*aa1a8ff2SEmmanuel Vadot        };
50*aa1a8ff2SEmmanuel Vadot        gmiitorgmii@8 {
51*aa1a8ff2SEmmanuel Vadot            compatible = "xlnx,gmii-to-rgmii-1.0";
52*aa1a8ff2SEmmanuel Vadot            reg = <8>;
53*aa1a8ff2SEmmanuel Vadot            phy-handle = <&phy>;
54*aa1a8ff2SEmmanuel Vadot        };
55*aa1a8ff2SEmmanuel Vadot    };
56