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