fsl-fec.txt 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. * Freescale Fast Ethernet Controller (FEC)
  2. Required properties:
  3. - compatible : Should be "fsl,<soc>-fec"
  4. - reg : Address and length of the register set for the device
  5. - interrupts : Should contain fec interrupt
  6. - phy-mode : See ethernet.txt file in the same directory
  7. Optional properties:
  8. - phy-reset-gpios : Should specify the gpio for phy reset
  9. - phy-reset-duration : Reset duration in milliseconds. Should present
  10. only if property "phy-reset-gpios" is available. Missing the property
  11. will have the duration be 1 millisecond. Numbers greater than 1000 are
  12. invalid and 1 millisecond will be used instead.
  13. - phy-reset-active-high : If present then the reset sequence using the GPIO
  14. specified in the "phy-reset-gpios" property is reversed (H=reset state,
  15. L=operation state).
  16. - phy-reset-post-delay : Post reset delay in milliseconds. If present then
  17. a delay of phy-reset-post-delay milliseconds will be observed after the
  18. phy-reset-gpios has been toggled. Can be omitted thus no delay is
  19. observed. Delay is in range of 1ms to 1000ms. Other delays are invalid.
  20. - phy-supply : regulator that powers the Ethernet PHY.
  21. - phy-handle : phandle to the PHY device connected to this device.
  22. - fixed-link : Assume a fixed link. See fixed-link.txt in the same directory.
  23. Use instead of phy-handle.
  24. - fsl,num-tx-queues : The property is valid for enet-avb IP, which supports
  25. hw multi queues. Should specify the tx queue number, otherwise set tx queue
  26. number to 1.
  27. - fsl,num-rx-queues : The property is valid for enet-avb IP, which supports
  28. hw multi queues. Should specify the rx queue number, otherwise set rx queue
  29. number to 1.
  30. - fsl,magic-packet : If present, indicates that the hardware supports waking
  31. up via magic packet.
  32. - fsl,err006687-workaround-present: If present indicates that the system has
  33. the hardware workaround for ERR006687 applied and does not need a software
  34. workaround.
  35. -interrupt-names: names of the interrupts listed in interrupts property in
  36. the same order. The defaults if not specified are
  37. __Number of interrupts__ __Default__
  38. 1 "int0"
  39. 2 "int0", "pps"
  40. 3 "int0", "int1", "int2"
  41. 4 "int0", "int1", "int2", "pps"
  42. The order may be changed as long as they correspond to the interrupts
  43. property. Currently, only i.mx7 uses "int1" and "int2". They correspond to
  44. tx/rx queues 1 and 2. "int0" will be used for queue 0 and ENET_MII interrupts.
  45. For imx6sx, "int0" handles all 3 queues and ENET_MII. "pps" is for the pulse
  46. per second interrupt associated with 1588 precision time protocol(PTP).
  47. Optional subnodes:
  48. - mdio : specifies the mdio bus in the FEC, used as a container for phy nodes
  49. according to phy.txt in the same directory
  50. Example:
  51. ethernet@83fec000 {
  52. compatible = "fsl,imx51-fec", "fsl,imx27-fec";
  53. reg = <0x83fec000 0x4000>;
  54. interrupts = <87>;
  55. phy-mode = "mii";
  56. phy-reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; /* GPIO2_14 */
  57. local-mac-address = [00 04 9F 01 1B B9];
  58. phy-supply = <&reg_fec_supply>;
  59. };
  60. Example with phy specified:
  61. ethernet@83fec000 {
  62. compatible = "fsl,imx51-fec", "fsl,imx27-fec";
  63. reg = <0x83fec000 0x4000>;
  64. interrupts = <87>;
  65. phy-mode = "mii";
  66. phy-reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; /* GPIO2_14 */
  67. local-mac-address = [00 04 9F 01 1B B9];
  68. phy-supply = <&reg_fec_supply>;
  69. phy-handle = <&ethphy>;
  70. mdio {
  71. ethphy: ethernet-phy@6 {
  72. compatible = "ethernet-phy-ieee802.3-c22";
  73. reg = <6>;
  74. max-speed = <100>;
  75. };
  76. };
  77. };