tsec.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. Required 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. - mac-address : List of bytes representing the ethernet address of
  25. this controller
  26. - interrupts : <a b> where a is the interrupt number and b is a
  27. field that represents an encoding of the sense and level
  28. information for the interrupt. This should be encoded based on
  29. the information in section 2) depending on the type of interrupt
  30. controller you have.
  31. - interrupt-parent : the phandle for the interrupt controller that
  32. services interrupts for this device.
  33. - phy-handle : The phandle for the PHY connected to this ethernet
  34. controller.
  35. - fixed-link : <a b c d e> where a is emulated phy id - choose any,
  36. but unique to the all specified fixed-links, b is duplex - 0 half,
  37. 1 full, c is link speed - d#10/d#100/d#1000, d is pause - 0 no
  38. pause, 1 pause, e is asym_pause - 0 no asym_pause, 1 asym_pause.
  39. Recommended properties:
  40. - phy-connection-type : a string naming the controller/PHY interface type,
  41. i.e., "mii" (default), "rmii", "gmii", "rgmii", "rgmii-id", "sgmii",
  42. "tbi", or "rtbi". This property is only really needed if the connection
  43. is of type "rgmii-id", as all other connection types are detected by
  44. hardware.
  45. Example:
  46. ethernet@24000 {
  47. #size-cells = <0>;
  48. device_type = "network";
  49. model = "TSEC";
  50. compatible = "gianfar";
  51. reg = <24000 1000>;
  52. mac-address = [ 00 E0 0C 00 73 00 ];
  53. interrupts = <d 3 e 3 12 3>;
  54. interrupt-parent = <40000>;
  55. phy-handle = <2452000>
  56. };