blob: f68980352bccd0e27ee3e1763f46a9e4fd844828 [file] [log] [blame]
Bin Menga8ccf752016-01-11 22:41:23 -08001* TSEC-compatible ethernet nodes
2
3Properties:
4
Hou Zhiqiang5966b6d2020-07-16 18:09:14 +08005 - compatible : Should be "fsl,etsec2" or "gianfar"
Bin Mengef4f7e32021-03-14 20:15:00 +08006 - reg : Offset and length of the register set for the device. If this is
7 missing, a subnode with a name prefix "queue-group" must be provided to
8 provide the <reg> property.
Bin Menga8ccf752016-01-11 22:41:23 -08009 - phy-handle : See ethernet.txt file in the same directory.
10 - phy-connection-type : See ethernet.txt file in the same directory. This
11 property is only really needed if the connection is of type "rgmii-id",
12 "rgmii-rxid" and "rgmii-txid" as all other connection types are detected
13 by hardware.
Bin Mengef4f7e32021-03-14 20:15:00 +080014 - ranges : an <empty> value if subnode "queue-group" is present, specifying
15 that no address translation is required between them TSEC parent node and
16 the child "queue-group" node.
Bin Menga8ccf752016-01-11 22:41:23 -080017
18Example:
19 ethernet@24000 {
Hou Zhiqiang27c24702020-05-03 22:48:41 +080020 compatible = "fsl,etsec2";
Bin Menga8ccf752016-01-11 22:41:23 -080021 reg = <0x24000 0x1000>;
22 phy-handle = <&phy0>;
23 phy-connection-type = "sgmii";
24 };
25
Bin Mengef4f7e32021-03-14 20:15:00 +080026An alternate description with "queue-group" subnode example:
27 ethernet@24000 {
28 compatible = "fsl,etsec2";
29 phy-handle = <&phy0>;
30 phy-connection-type = "sgmii";
31 ranges;
32
33 queue-group {
34 reg = <0x24000 0x1000>;
35 };
36 };
37
Bin Menga8ccf752016-01-11 22:41:23 -080038Child nodes of the TSEC controller are typically the individual PHY devices
39connected via the MDIO bus (sometimes the MDIO bus controller is separate).
40
41* MDIO IO device
42
43The MDIO is a bus to which the PHY devices are connected. For each
44device that exists on this bus, a PHY node should be created.
45
46Required properties:
47 - compatible : Should define the compatible device type for the
Vladimir Oltean7c043ea2019-07-19 00:29:58 +030048 mdio. Currently supported string/device is "fsl,etsec2-mdio".
Bin Menga8ccf752016-01-11 22:41:23 -080049 - reg : Offset and length of the register set for the device
50
51Example:
52
53 mdio@24520 {
Vladimir Oltean7c043ea2019-07-19 00:29:58 +030054 compatible = "fsl,etsec2-mdio";
Bin Menga8ccf752016-01-11 22:41:23 -080055 reg = <0x24520 0x20>;
56
57 ethernet-phy@0 {
58 reg = <0>;
59 };
60 };
Bin Meng74314f12016-01-11 22:41:25 -080061
62* TBI Internal MDIO bus
63
64As of this writing, every tsec is associated with an internal TBI PHY.
65This PHY is accessed through the local MDIO bus. These buses are defined
66similarly to the mdio buses. The TBI PHYs underneath them are similar to
67normal PHYs, but the reg property is considered instructive, rather than
68descriptive. The reg property should be chosen so it doesn't interfere
69with other PHYs on the bus. The TBI PHYs are referred to by a "tbi-handle"
70property under the tsec node, which has a similar meaning of "phy-handle".
71
72Example:
73 ethernet@24000 {
74 phy-handle = <&tbi1>;
75 };
76
77 mdio@24520 {
78 tbi1: tbi-phy@1f {
79 reg = <0x1f>;
80 };
81 };