fsl-tsec-phy.txt 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. * MDIO IO device
  2. The MDIO is a bus to which the PHY devices are connected. For each
  3. device that exists on this bus, a child node should be created. See
  4. the definition of the PHY node in booting-without-of.txt for an example
  5. of how to define a PHY.
  6. Required properties:
  7. - reg : Offset and length of the register set for the device, and optionally
  8. the offset and length of the TBIPA register (TBI PHY address
  9. register). If TBIPA register is not specified, the driver will
  10. attempt to infer it from the register set specified (your mileage may
  11. vary).
  12. - compatible : Should define the compatible device type for the
  13. mdio. Currently supported strings/devices are:
  14. - "fsl,gianfar-tbi"
  15. - "fsl,gianfar-mdio"
  16. - "fsl,etsec2-tbi"
  17. - "fsl,etsec2-mdio"
  18. - "fsl,ucc-mdio"
  19. - "fsl,fman-mdio"
  20. When device_type is "mdio", the following strings are also considered:
  21. - "gianfar"
  22. - "ucc_geth_phy"
  23. Example:
  24. mdio@24520 {
  25. reg = <24520 20>;
  26. compatible = "fsl,gianfar-mdio";
  27. ethernet-phy@0 {
  28. ......
  29. };
  30. };
  31. * TBI Internal MDIO bus
  32. As of this writing, every tsec is associated with an internal TBI PHY.
  33. This PHY is accessed through the local MDIO bus. These buses are defined
  34. similarly to the mdio buses, except they are compatible with "fsl,gianfar-tbi".
  35. The TBI PHYs underneath them are similar to normal PHYs, but the reg property
  36. is considered instructive, rather than descriptive. The reg property should
  37. be chosen so it doesn't interfere with other PHYs on the bus.
  38. * Gianfar-compatible ethernet nodes
  39. Properties:
  40. - device_type : Should be "network"
  41. - model : Model of the device. Can be "TSEC", "eTSEC", or "FEC"
  42. - compatible : Should be "gianfar"
  43. - reg : Offset and length of the register set for the device
  44. - interrupts : For FEC devices, the first interrupt is the device's
  45. interrupt. For TSEC and eTSEC devices, the first interrupt is
  46. transmit, the second is receive, and the third is error.
  47. - phy-handle : See ethernet.txt file in the same directory.
  48. - fixed-link : See fixed-link.txt in the same directory.
  49. - phy-connection-type : See ethernet.txt file in the same directory.
  50. This property is only really needed if the connection is of type
  51. "rgmii-id", as all other connection types are detected by hardware.
  52. - fsl,magic-packet : If present, indicates that the hardware supports
  53. waking up via magic packet.
  54. - fsl,wake-on-filer : If present, indicates that the hardware supports
  55. waking up by Filer General Purpose Interrupt (FGPI) asserted on the
  56. Rx int line. This is an advanced power management capability allowing
  57. certain packet types (user) defined by filer rules to wake up the system.
  58. - bd-stash : If present, indicates that the hardware supports stashing
  59. buffer descriptors in the L2.
  60. - rx-stash-len : Denotes the number of bytes of a received buffer to stash
  61. in the L2.
  62. - rx-stash-idx : Denotes the index of the first byte from the received
  63. buffer to stash in the L2.
  64. Example:
  65. ethernet@24000 {
  66. device_type = "network";
  67. model = "TSEC";
  68. compatible = "gianfar";
  69. reg = <0x24000 0x1000>;
  70. local-mac-address = [ 00 E0 0C 00 73 00 ];
  71. interrupts = <29 2 30 2 34 2>;
  72. interrupt-parent = <&mpic>;
  73. phy-handle = <&phy0>
  74. };
  75. * Gianfar PTP clock nodes
  76. Refer to Documentation/devicetree/bindings/ptp/ptp-qoriq.txt