xref: /OK3568_Linux_fs/u-boot/doc/device-tree-bindings/net/fsl-tsec-phy.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* TSEC-compatible ethernet nodes
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunProperties:
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun  - compatible : Should be "fsl,tsec"
6*4882a593Smuzhiyun  - reg : Offset and length of the register set for the device
7*4882a593Smuzhiyun  - phy-handle : See ethernet.txt file in the same directory.
8*4882a593Smuzhiyun  - phy-connection-type : See ethernet.txt file in the same directory. This
9*4882a593Smuzhiyun    property is only really needed if the connection is of type "rgmii-id",
10*4882a593Smuzhiyun    "rgmii-rxid" and "rgmii-txid" as all other connection types are detected
11*4882a593Smuzhiyun    by hardware.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunExample:
14*4882a593Smuzhiyun	ethernet@24000 {
15*4882a593Smuzhiyun		compatible = "fsl,tsec";
16*4882a593Smuzhiyun		reg = <0x24000 0x1000>;
17*4882a593Smuzhiyun		phy-handle = <&phy0>;
18*4882a593Smuzhiyun		phy-connection-type = "sgmii";
19*4882a593Smuzhiyun	};
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunChild nodes of the TSEC controller are typically the individual PHY devices
22*4882a593Smuzhiyunconnected via the MDIO bus (sometimes the MDIO bus controller is separate).
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun* MDIO IO device
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunThe MDIO is a bus to which the PHY devices are connected.  For each
27*4882a593Smuzhiyundevice that exists on this bus, a PHY node should be created.
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunRequired properties:
30*4882a593Smuzhiyun  - compatible : Should define the compatible device type for the
31*4882a593Smuzhiyun    mdio. Currently supported string/device is "fsl,tsec-mdio".
32*4882a593Smuzhiyun  - reg : Offset and length of the register set for the device
33*4882a593Smuzhiyun
34*4882a593SmuzhiyunExample:
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun	mdio@24520 {
37*4882a593Smuzhiyun		compatible = "fsl,tsec-mdio";
38*4882a593Smuzhiyun		reg = <0x24520 0x20>;
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun		ethernet-phy@0 {
41*4882a593Smuzhiyun			reg = <0>;
42*4882a593Smuzhiyun		};
43*4882a593Smuzhiyun	};
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun* TBI Internal MDIO bus
46*4882a593Smuzhiyun
47*4882a593SmuzhiyunAs of this writing, every tsec is associated with an internal TBI PHY.
48*4882a593SmuzhiyunThis PHY is accessed through the local MDIO bus.  These buses are defined
49*4882a593Smuzhiyunsimilarly to the mdio buses.  The TBI PHYs underneath them are similar to
50*4882a593Smuzhiyunnormal PHYs, but the reg property is considered instructive, rather than
51*4882a593Smuzhiyundescriptive.  The reg property should be chosen so it doesn't interfere
52*4882a593Smuzhiyunwith other PHYs on the bus.  The TBI PHYs are referred to by a "tbi-handle"
53*4882a593Smuzhiyunproperty under the tsec node, which has a similar meaning of "phy-handle".
54*4882a593Smuzhiyun
55*4882a593SmuzhiyunExample:
56*4882a593Smuzhiyun	ethernet@24000 {
57*4882a593Smuzhiyun		phy-handle = <&tbi1>;
58*4882a593Smuzhiyun	};
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun	mdio@24520 {
61*4882a593Smuzhiyun		tbi1: tbi-phy@1f {
62*4882a593Smuzhiyun			reg = <0x1f>;
63*4882a593Smuzhiyun		};
64*4882a593Smuzhiyun	};
65