xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/phy/phy-ocelot-serdes.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunMicrosemi Ocelot SerDes muxing driver
2*4882a593Smuzhiyun-------------------------------------
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunOn Microsemi Ocelot, there is a handful of registers in HSIO address
5*4882a593Smuzhiyunspace for setting up the SerDes to switch port muxing.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunA SerDes X can be "muxed" to work with switch port Y or Z for example.
8*4882a593SmuzhiyunOne specific SerDes can also be used as a PCIe interface.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunHence, a SerDes represents an interface, be it an Ethernet or a PCIe one.
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunThere are two kinds of SerDes: SERDES1G supports 10/100Mbps in
13*4882a593Smuzhiyunhalf/full-duplex and 1000Mbps in full-duplex mode while SERDES6G supports
14*4882a593Smuzhiyun10/100Mbps in half/full-duplex and 1000/2500Mbps in full-duplex mode.
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunAlso, SERDES6G number (aka "macro") 0 is the only interface supporting
17*4882a593SmuzhiyunQSGMII.
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunThis is a child of the HSIO syscon ("mscc,ocelot-hsio", see
20*4882a593SmuzhiyunDocumentation/devicetree/bindings/mips/mscc.txt) on the Microsemi Ocelot.
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunRequired properties:
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun- compatible: should be "mscc,vsc7514-serdes"
25*4882a593Smuzhiyun- #phy-cells : from the generic phy bindings, must be 2.
26*4882a593Smuzhiyun	       The first number defines the input port to use for a given
27*4882a593Smuzhiyun	       SerDes macro. The second defines the macro to use. They are
28*4882a593Smuzhiyun	       defined in dt-bindings/phy/phy-ocelot-serdes.h
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunExample:
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun	serdes: serdes {
33*4882a593Smuzhiyun		compatible = "mscc,vsc7514-serdes";
34*4882a593Smuzhiyun		#phy-cells = <2>;
35*4882a593Smuzhiyun	};
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun	ethernet {
38*4882a593Smuzhiyun		port1 {
39*4882a593Smuzhiyun			phy-handle = <&phy_foo>;
40*4882a593Smuzhiyun			/* Link SERDES1G_5 to port1 */
41*4882a593Smuzhiyun			phys = <&serdes 1 SERDES1G_5>;
42*4882a593Smuzhiyun		};
43*4882a593Smuzhiyun	};
44