blob: 8e8574bc97f4a2106d6daf26dc2a2287ae8ceb61 [file] [log] [blame]
Bin Meng69a00872016-01-11 22:41:23 -08001* TSEC-compatible ethernet nodes
2
3Properties:
4
Hou Zhiqianga139ac52020-05-03 22:48:41 +08005 - compatible : Should be "fsl,etsec2"
Bin Meng69a00872016-01-11 22:41:23 -08006 - reg : Offset and length of the register set for the device
7 - phy-handle : See ethernet.txt file in the same directory.
8 - phy-connection-type : See ethernet.txt file in the same directory. This
9 property is only really needed if the connection is of type "rgmii-id",
10 "rgmii-rxid" and "rgmii-txid" as all other connection types are detected
11 by hardware.
12
13Example:
14 ethernet@24000 {
Hou Zhiqianga139ac52020-05-03 22:48:41 +080015 compatible = "fsl,etsec2";
Bin Meng69a00872016-01-11 22:41:23 -080016 reg = <0x24000 0x1000>;
17 phy-handle = <&phy0>;
18 phy-connection-type = "sgmii";
19 };
20
21Child nodes of the TSEC controller are typically the individual PHY devices
22connected via the MDIO bus (sometimes the MDIO bus controller is separate).
23
24* MDIO IO device
25
26The MDIO is a bus to which the PHY devices are connected. For each
27device that exists on this bus, a PHY node should be created.
28
29Required properties:
30 - compatible : Should define the compatible device type for the
Vladimir Oltean1c8ad082019-07-19 00:29:58 +030031 mdio. Currently supported string/device is "fsl,etsec2-mdio".
Bin Meng69a00872016-01-11 22:41:23 -080032 - reg : Offset and length of the register set for the device
33
34Example:
35
36 mdio@24520 {
Vladimir Oltean1c8ad082019-07-19 00:29:58 +030037 compatible = "fsl,etsec2-mdio";
Bin Meng69a00872016-01-11 22:41:23 -080038 reg = <0x24520 0x20>;
39
40 ethernet-phy@0 {
41 reg = <0>;
42 };
43 };
Bin Menga1c76c12016-01-11 22:41:25 -080044
45* TBI Internal MDIO bus
46
47As of this writing, every tsec is associated with an internal TBI PHY.
48This PHY is accessed through the local MDIO bus. These buses are defined
49similarly to the mdio buses. The TBI PHYs underneath them are similar to
50normal PHYs, but the reg property is considered instructive, rather than
51descriptive. The reg property should be chosen so it doesn't interfere
52with other PHYs on the bus. The TBI PHYs are referred to by a "tbi-handle"
53property under the tsec node, which has a similar meaning of "phy-handle".
54
55Example:
56 ethernet@24000 {
57 phy-handle = <&tbi1>;
58 };
59
60 mdio@24520 {
61 tbi1: tbi-phy@1f {
62 reg = <0x1f>;
63 };
64 };