tsec.txt 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 below for an example of how to define
  5. a PHY.
  6. Required properties:
  7. - reg : Offset and length of the register set for the device
  8. - compatible : Should define the compatible device type for the
  9. mdio. Currently, this is most likely to be "fsl,gianfar-mdio"
  10. Example:
  11. mdio@24520 {
  12. reg = <24520 20>;
  13. compatible = "fsl,gianfar-mdio";
  14. ethernet-phy@0 {
  15. ......
  16. };
  17. };
  18. * Gianfar-compatible ethernet nodes
  19. Properties:
  20. - device_type : Should be "network"
  21. - model : Model of the device. Can be "TSEC", "eTSEC", or "FEC"
  22. - compatible : Should be "gianfar"
  23. - reg : Offset and length of the register set for the device
  24. - local-mac-address : List of bytes representing the ethernet address of
  25. this controller
  26. - interrupts : For FEC devices, the first interrupt is the device's
  27. interrupt. For TSEC and eTSEC devices, the first interrupt is
  28. transmit, the second is receive, and the third is error.
  29. - phy-handle : The phandle for the PHY connected to this ethernet
  30. controller.
  31. - fixed-link : <a b c d e> where a is emulated phy id - choose any,
  32. but unique to the all specified fixed-links, b is duplex - 0 half,
  33. 1 full, c is link speed - d#10/d#100/d#1000, d is pause - 0 no
  34. pause, 1 pause, e is asym_pause - 0 no asym_pause, 1 asym_pause.
  35. - phy-connection-type : a string naming the controller/PHY interface type,
  36. i.e., "mii" (default), "rmii", "gmii", "rgmii", "rgmii-id", "sgmii",
  37. "tbi", or "rtbi". This property is only really needed if the connection
  38. is of type "rgmii-id", as all other connection types are detected by
  39. hardware.
  40. - fsl,magic-packet : If present, indicates that the hardware supports
  41. waking up via magic packet.
  42. Example:
  43. ethernet@24000 {
  44. device_type = "network";
  45. model = "TSEC";
  46. compatible = "gianfar";
  47. reg = <0x24000 0x1000>;
  48. local-mac-address = [ 00 E0 0C 00 73 00 ];
  49. interrupts = <29 2 30 2 34 2>;
  50. interrupt-parent = <&mpic>;
  51. phy-handle = <&phy0>
  52. };