fixed-link.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Fixed link Device Tree binding
  2. ------------------------------
  3. Some Ethernet MACs have a "fixed link", and are not connected to a
  4. normal MDIO-managed PHY device. For those situations, a Device Tree
  5. binding allows to describe a "fixed link".
  6. Such a fixed link situation is described by creating a 'fixed-link'
  7. sub-node of the Ethernet MAC device node, with the following
  8. properties:
  9. * 'speed' (integer, mandatory), to indicate the link speed. Accepted
  10. values are 10, 100 and 1000
  11. * 'full-duplex' (boolean, optional), to indicate that full duplex is
  12. used. When absent, half duplex is assumed.
  13. * 'pause' (boolean, optional), to indicate that pause should be
  14. enabled.
  15. * 'asym-pause' (boolean, optional), to indicate that asym_pause should
  16. be enabled.
  17. * 'link-gpios' ('gpio-list', optional), to indicate if a gpio can be read
  18. to determine if the link is up.
  19. Old, deprecated 'fixed-link' binding:
  20. * A 'fixed-link' property in the Ethernet MAC node, with 5 cells, of the
  21. form <a b c d e> with the following accepted values:
  22. - a: emulated PHY ID, choose any but but unique to the all specified
  23. fixed-links, from 0 to 31
  24. - b: duplex configuration: 0 for half duplex, 1 for full duplex
  25. - c: link speed in Mbits/sec, accepted values are: 10, 100 and 1000
  26. - d: pause configuration: 0 for no pause, 1 for pause
  27. - e: asymmetric pause configuration: 0 for no asymmetric pause, 1 for
  28. asymmetric pause
  29. Examples:
  30. ethernet@0 {
  31. ...
  32. fixed-link {
  33. speed = <1000>;
  34. full-duplex;
  35. };
  36. ...
  37. };
  38. ethernet@1 {
  39. ...
  40. fixed-link {
  41. speed = <1000>;
  42. pause;
  43. link-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  44. };
  45. ...
  46. };