fsl-fec.txt 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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-supply : regulator that powers the Ethernet PHY.
  17. - phy-handle : phandle to the PHY device connected to this device.
  18. - fixed-link : Assume a fixed link. See fixed-link.txt in the same directory.
  19. Use instead of phy-handle.
  20. - fsl,num-tx-queues : The property is valid for enet-avb IP, which supports
  21. hw multi queues. Should specify the tx queue number, otherwise set tx queue
  22. number to 1.
  23. - fsl,num-rx-queues : The property is valid for enet-avb IP, which supports
  24. hw multi queues. Should specify the rx queue number, otherwise set rx queue
  25. number to 1.
  26. - fsl,magic-packet : If present, indicates that the hardware supports waking
  27. up via magic packet.
  28. - fsl,err006687-workaround-present: If present indicates that the system has
  29. the hardware workaround for ERR006687 applied and does not need a software
  30. workaround.
  31. Optional subnodes:
  32. - mdio : specifies the mdio bus in the FEC, used as a container for phy nodes
  33. according to phy.txt in the same directory
  34. Example:
  35. ethernet@83fec000 {
  36. compatible = "fsl,imx51-fec", "fsl,imx27-fec";
  37. reg = <0x83fec000 0x4000>;
  38. interrupts = <87>;
  39. phy-mode = "mii";
  40. phy-reset-gpios = <&gpio2 14 0>; /* GPIO2_14 */
  41. local-mac-address = [00 04 9F 01 1B B9];
  42. phy-supply = <&reg_fec_supply>;
  43. };
  44. Example with phy specified:
  45. ethernet@83fec000 {
  46. compatible = "fsl,imx51-fec", "fsl,imx27-fec";
  47. reg = <0x83fec000 0x4000>;
  48. interrupts = <87>;
  49. phy-mode = "mii";
  50. phy-reset-gpios = <&gpio2 14 0>; /* GPIO2_14 */
  51. local-mac-address = [00 04 9F 01 1B B9];
  52. phy-supply = <&reg_fec_supply>;
  53. phy-handle = <&ethphy>;
  54. mdio {
  55. ethphy: ethernet-phy@6 {
  56. compatible = "ethernet-phy-ieee802.3-c22";
  57. reg = <6>;
  58. max-speed = <100>;
  59. };
  60. };
  61. };