fsl-tsec-phy.txt 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. * TSEC-compatible ethernet nodes
  2. Properties:
  3. - compatible : Should be "fsl,tsec"
  4. - reg : Offset and length of the register set for the device
  5. - phy-handle : See ethernet.txt file in the same directory.
  6. - phy-connection-type : See ethernet.txt file in the same directory. This
  7. property is only really needed if the connection is of type "rgmii-id",
  8. "rgmii-rxid" and "rgmii-txid" as all other connection types are detected
  9. by hardware.
  10. Example:
  11. ethernet@24000 {
  12. compatible = "fsl,tsec";
  13. reg = <0x24000 0x1000>;
  14. phy-handle = <&phy0>;
  15. phy-connection-type = "sgmii";
  16. };
  17. Child nodes of the TSEC controller are typically the individual PHY devices
  18. connected via the MDIO bus (sometimes the MDIO bus controller is separate).
  19. * MDIO IO device
  20. The MDIO is a bus to which the PHY devices are connected. For each
  21. device that exists on this bus, a PHY node should be created.
  22. Required properties:
  23. - compatible : Should define the compatible device type for the
  24. mdio. Currently supported string/device is "fsl,etsec2-mdio".
  25. - reg : Offset and length of the register set for the device
  26. Example:
  27. mdio@24520 {
  28. compatible = "fsl,etsec2-mdio";
  29. reg = <0x24520 0x20>;
  30. ethernet-phy@0 {
  31. reg = <0>;
  32. };
  33. };
  34. * TBI Internal MDIO bus
  35. As of this writing, every tsec is associated with an internal TBI PHY.
  36. This PHY is accessed through the local MDIO bus. These buses are defined
  37. similarly to the mdio buses. The TBI PHYs underneath them are similar to
  38. normal PHYs, but the reg property is considered instructive, rather than
  39. descriptive. The reg property should be chosen so it doesn't interfere
  40. with other PHYs on the bus. The TBI PHYs are referred to by a "tbi-handle"
  41. property under the tsec node, which has a similar meaning of "phy-handle".
  42. Example:
  43. ethernet@24000 {
  44. phy-handle = <&tbi1>;
  45. };
  46. mdio@24520 {
  47. tbi1: tbi-phy@1f {
  48. reg = <0x1f>;
  49. };
  50. };