fsl-fec.txt 2.1 KB

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