fsl-fec.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. Optional subnodes:
  24. - mdio : specifies the mdio bus in the FEC, used as a container for phy nodes
  25. according to phy.txt in the same directory
  26. Example:
  27. ethernet@83fec000 {
  28. compatible = "fsl,imx51-fec", "fsl,imx27-fec";
  29. reg = <0x83fec000 0x4000>;
  30. interrupts = <87>;
  31. phy-mode = "mii";
  32. phy-reset-gpios = <&gpio2 14 0>; /* GPIO2_14 */
  33. local-mac-address = [00 04 9F 01 1B B9];
  34. phy-supply = <&reg_fec_supply>;
  35. };
  36. Example with phy specified:
  37. ethernet@83fec000 {
  38. compatible = "fsl,imx51-fec", "fsl,imx27-fec";
  39. reg = <0x83fec000 0x4000>;
  40. interrupts = <87>;
  41. phy-mode = "mii";
  42. phy-reset-gpios = <&gpio2 14 0>; /* GPIO2_14 */
  43. local-mac-address = [00 04 9F 01 1B B9];
  44. phy-supply = <&reg_fec_supply>;
  45. phy-handle = <&ethphy>;
  46. mdio {
  47. ethphy: ethernet-phy@6 {
  48. compatible = "ethernet-phy-ieee802.3-c22";
  49. reg = <6>;
  50. max-speed = <100>;
  51. };
  52. };
  53. };