xref: /freebsd-src/sys/contrib/device-tree/Bindings/net/xilinx_gmii2rgmii.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotXILINX GMIITORGMII Converter Driver Device Tree Bindings
2*c66ec88fSEmmanuel Vadot--------------------------------------------------------
3*c66ec88fSEmmanuel Vadot
4*c66ec88fSEmmanuel VadotThe Gigabit Media Independent Interface (GMII) to Reduced Gigabit Media
5*c66ec88fSEmmanuel VadotIndependent Interface (RGMII) core provides the RGMII between RGMII-compliant
6*c66ec88fSEmmanuel VadotEthernet physical media devices (PHY) and the Gigabit Ethernet controller.
7*c66ec88fSEmmanuel VadotThis core can be used in all three modes of operation(10/100/1000 Mb/s).
8*c66ec88fSEmmanuel VadotThe Management Data Input/Output (MDIO) interface is used to configure the
9*c66ec88fSEmmanuel VadotSpeed of operation. This core can switch dynamically between the three
10*c66ec88fSEmmanuel VadotDifferent speed modes by configuring the conveter register through mdio write.
11*c66ec88fSEmmanuel Vadot
12*c66ec88fSEmmanuel VadotThis converter sits between the ethernet MAC and the external phy.
13*c66ec88fSEmmanuel VadotMAC <==> GMII2RGMII <==> RGMII_PHY
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotFor more details about mdio please refer phy.txt file in the same directory.
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel VadotRequired properties:
18*c66ec88fSEmmanuel Vadot- compatible	: Should be "xlnx,gmii-to-rgmii-1.0"
19*c66ec88fSEmmanuel Vadot- reg		: The ID number for the phy, usually a small integer
20*c66ec88fSEmmanuel Vadot- phy-handle	: Should point to the external phy device.
21*c66ec88fSEmmanuel Vadot		  See ethernet.txt file in the same directory.
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel VadotExample:
24*c66ec88fSEmmanuel Vadot	mdio {
25*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
26*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
27*c66ec88fSEmmanuel Vadot		phy: ethernet-phy@0 {
28*c66ec88fSEmmanuel Vadot			......
29*c66ec88fSEmmanuel Vadot		};
30*c66ec88fSEmmanuel Vadot		gmiitorgmii: gmiitorgmii@8 {
31*c66ec88fSEmmanuel Vadot			compatible = "xlnx,gmii-to-rgmii-1.0";
32*c66ec88fSEmmanuel Vadot			reg = <8>;
33*c66ec88fSEmmanuel Vadot			phy-handle = <&phy>;
34*c66ec88fSEmmanuel Vadot		};
35*c66ec88fSEmmanuel Vadot	};
36