sff,sfp.txt 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Small Form Factor (SFF) Committee Small Form-factor Pluggable (SFP)
  2. Transceiver
  3. Required properties:
  4. - compatible : must be one of
  5. "sff,sfp" for SFP modules
  6. "sff,sff" for soldered down SFF modules
  7. - i2c-bus : phandle of an I2C bus controller for the SFP two wire serial
  8. interface
  9. Optional Properties:
  10. - mod-def0-gpios : GPIO phandle and a specifier of the MOD-DEF0 (AKA Mod_ABS)
  11. module presence input gpio signal, active (module absent) high. Must
  12. not be present for SFF modules
  13. - los-gpios : GPIO phandle and a specifier of the Receiver Loss of Signal
  14. Indication input gpio signal, active (signal lost) high
  15. - tx-fault-gpios : GPIO phandle and a specifier of the Module Transmitter
  16. Fault input gpio signal, active (fault condition) high
  17. - tx-disable-gpios : GPIO phandle and a specifier of the Transmitter Disable
  18. output gpio signal, active (Tx disable) high
  19. - rate-select0-gpios : GPIO phandle and a specifier of the Rx Signaling Rate
  20. Select (AKA RS0) output gpio signal, low: low Rx rate, high: high Rx rate
  21. Must not be present for SFF modules
  22. - rate-select1-gpios : GPIO phandle and a specifier of the Tx Signaling Rate
  23. Select (AKA RS1) output gpio signal (SFP+ only), low: low Tx rate, high:
  24. high Tx rate. Must not be present for SFF modules
  25. - maximum-power-milliwatt : Maximum module power consumption
  26. Specifies the maximum power consumption allowable by a module in the
  27. slot, in milli-Watts. Presently, modules can be up to 1W, 1.5W or 2W.
  28. Example #1: Direct serdes to SFP connection
  29. sfp_eth3: sfp-eth3 {
  30. compatible = "sff,sfp";
  31. i2c-bus = <&sfp_1g_i2c>;
  32. los-gpios = <&cpm_gpio2 22 GPIO_ACTIVE_HIGH>;
  33. mod-def0-gpios = <&cpm_gpio2 21 GPIO_ACTIVE_LOW>;
  34. maximum-power-milliwatt = <1000>;
  35. pinctrl-names = "default";
  36. pinctrl-0 = <&cpm_sfp_1g_pins &cps_sfp_1g_pins>;
  37. tx-disable-gpios = <&cps_gpio1 24 GPIO_ACTIVE_HIGH>;
  38. tx-fault-gpios = <&cpm_gpio2 19 GPIO_ACTIVE_HIGH>;
  39. };
  40. &cps_emac3 {
  41. phy-names = "comphy";
  42. phys = <&cps_comphy5 0>;
  43. sfp = <&sfp_eth3>;
  44. };
  45. Example #2: Serdes to PHY to SFP connection
  46. sfp_eth0: sfp-eth0 {
  47. compatible = "sff,sfp";
  48. i2c-bus = <&sfpp0_i2c>;
  49. los-gpios = <&cps_gpio1 28 GPIO_ACTIVE_HIGH>;
  50. mod-def0-gpios = <&cps_gpio1 27 GPIO_ACTIVE_LOW>;
  51. pinctrl-names = "default";
  52. pinctrl-0 = <&cps_sfpp0_pins>;
  53. tx-disable-gpios = <&cps_gpio1 29 GPIO_ACTIVE_HIGH>;
  54. tx-fault-gpios = <&cps_gpio1 26 GPIO_ACTIVE_HIGH>;
  55. };
  56. p0_phy: ethernet-phy@0 {
  57. compatible = "ethernet-phy-ieee802.3-c45";
  58. pinctrl-names = "default";
  59. pinctrl-0 = <&cpm_phy0_pins &cps_phy0_pins>;
  60. reg = <0>;
  61. interrupt = <&cpm_gpio2 18 IRQ_TYPE_EDGE_FALLING>;
  62. sfp = <&sfp_eth0>;
  63. };
  64. &cpm_eth0 {
  65. phy = <&p0_phy>;
  66. phy-mode = "10gbase-kr";
  67. };