micrel-ksz90x1.txt 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. Micrel KSZ9021/KSZ9031 Gigabit Ethernet PHY
  2. Some boards require special tuning values, particularly when it comes to
  3. clock delays. You can specify clock delay values by adding
  4. micrel-specific properties to an Ethernet OF device node.
  5. Note that these settings are applied after any phy-specific fixup from
  6. phy_fixup_list (see phy_init_hw() from drivers/net/phy/phy_device.c),
  7. and therefore may overwrite them.
  8. KSZ9021:
  9. All skew control options are specified in picoseconds. The minimum
  10. value is 0, the maximum value is 3000, and it is incremented by 200ps
  11. steps.
  12. Optional properties:
  13. - rxc-skew-ps : Skew control of RXC pad
  14. - rxdv-skew-ps : Skew control of RX CTL pad
  15. - txc-skew-ps : Skew control of TXC pad
  16. - txen-skew-ps : Skew control of TX CTL pad
  17. - rxd0-skew-ps : Skew control of RX data 0 pad
  18. - rxd1-skew-ps : Skew control of RX data 1 pad
  19. - rxd2-skew-ps : Skew control of RX data 2 pad
  20. - rxd3-skew-ps : Skew control of RX data 3 pad
  21. - txd0-skew-ps : Skew control of TX data 0 pad
  22. - txd1-skew-ps : Skew control of TX data 1 pad
  23. - txd2-skew-ps : Skew control of TX data 2 pad
  24. - txd3-skew-ps : Skew control of TX data 3 pad
  25. KSZ9031:
  26. All skew control options are specified in picoseconds. The minimum
  27. value is 0, and the maximum is property-dependent. The increment
  28. step is 60ps.
  29. Optional properties:
  30. Maximum value of 1860:
  31. - rxc-skew-ps : Skew control of RX clock pad
  32. - txc-skew-ps : Skew control of TX clock pad
  33. Maximum value of 900:
  34. - rxdv-skew-ps : Skew control of RX CTL pad
  35. - txen-skew-ps : Skew control of TX CTL pad
  36. - rxd0-skew-ps : Skew control of RX data 0 pad
  37. - rxd1-skew-ps : Skew control of RX data 1 pad
  38. - rxd2-skew-ps : Skew control of RX data 2 pad
  39. - rxd3-skew-ps : Skew control of RX data 3 pad
  40. - txd0-skew-ps : Skew control of TX data 0 pad
  41. - txd1-skew-ps : Skew control of TX data 1 pad
  42. - txd2-skew-ps : Skew control of TX data 2 pad
  43. - txd3-skew-ps : Skew control of TX data 3 pad
  44. Examples:
  45. /* Attach to an Ethernet device with autodetected PHY */
  46. &enet {
  47. rxc-skew-ps = <3000>;
  48. rxdv-skew-ps = <0>;
  49. txc-skew-ps = <3000>;
  50. txen-skew-ps = <0>;
  51. status = "okay";
  52. };
  53. /* Attach to an explicitly-specified PHY */
  54. mdio {
  55. phy0: ethernet-phy@0 {
  56. rxc-skew-ps = <3000>;
  57. rxdv-skew-ps = <0>;
  58. txc-skew-ps = <3000>;
  59. txen-skew-ps = <0>;
  60. reg = <0>;
  61. };
  62. };
  63. ethernet@70000 {
  64. status = "okay";
  65. phy = <&phy0>;
  66. phy-mode = "rgmii-id";
  67. };