# Small Form Factor (SFF) Committee Small Form-factor Pluggable (SFP) Transceiver

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings_

> Device-tree binding reference for Small Form Factor (SFF) Committee Small Form-factor Pluggable (SFP) Transceiver.

<!-- SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;net&#47;sff&#44;sfp&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Russell King &#60;linux&#64;armlinux&#46;org&#46;uk&#62;&#34;</code></span>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

**Allowed values (<code>enum</code>):** <a id="dt-207128c21dbd6355c894"></a> <span id="dt-bd234eb96375d77ca611"><code>&#34;sff&#44;sfp&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;sff&#44;sff&#34;</code></span>

<a id="dt-ad5e253e0767734b52ff"></a>

### <code>i2c&#45;bus</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8be81b57838cdadec017">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;phandle</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-2533fa46618221e83225>)</span>

<div id="dt-d6baa62742492b4e57bc">
<p style="white-space: pre-wrap">phandle of an I2C bus controller for the SFP two wire serial</p>
</div>

<a id="dt-14359707376d5de9b408"></a>

### <code>maximum&#45;power&#45;milliwatt</code> — not listed as required here

**Minimum value (<code>minimum</code>):** <span id="dt-54308e3cddfef5f83f58"><code>1000</code></span>

**Default value (<code>default</code>):** <span id="dt-116e98b8582b592a6dfa"><code>1000</code></span>

<div id="dt-506e3455fac9acdc277b">
<p style="white-space: pre-wrap">Maximum module power consumption Specifies the maximum power consumption allowable by a module in the slot, in milli-Watts. Presently, modules can be up to 1W, 1.5W or 2W.</p>
</div>

<a id="dt-0df18f0301d90175d534"></a>

### <code>mod&#45;def0&#45;gpios</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-183272a55ed7c18064de"><code>1</code></span>

<div id="dt-8d0daf72ef6c1d4ca3bb">
<p style="white-space: pre-wrap">GPIO phandle and a specifier of the MOD-DEF0 (AKA Mod_ABS) module presence input gpio signal, active (module absent) high. Must not be present for SFF modules</p>
</div>

<a id="dt-d51dc7143c016ee8525c"></a>

### <code>los&#45;gpios</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c466164adad799559d01"><code>1</code></span>

<div id="dt-ef1683889abaea1e9f7e">
<p style="white-space: pre-wrap">GPIO phandle and a specifier of the Receiver Loss of Signal Indication input gpio signal, active (signal lost) high</p>
</div>

<a id="dt-fe0bd7f7a7cff04fe809"></a>

### <code>tx&#45;fault&#45;gpios</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-0f0e0fcbe317128f3c1c"><code>1</code></span>

<div id="dt-183e702422a67d96d00d">
<p style="white-space: pre-wrap">GPIO phandle and a specifier of the Module Transmitter Fault input gpio signal, active (fault condition) high</p>
</div>

<a id="dt-cf63c2a4dcd9731de41b"></a>

### <code>tx&#45;disable&#45;gpios</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-43c7c7ae845716aff8ab"><code>1</code></span>

<div id="dt-962403c46d78dbde2a89">
<p style="white-space: pre-wrap">GPIO phandle and a specifier of the Transmitter Disable output gpio signal, active (Tx disable) high</p>
</div>

<a id="dt-fbbecdf23088cb63271f"></a>

### <code>rate&#45;select0&#45;gpios</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-5457157b6dc3fad4d704"><code>1</code></span>

<div id="dt-607dae28eca7c5a46d9c">
<p style="white-space: pre-wrap">GPIO phandle and a specifier of the Rx Signaling Rate Select (AKA RS0) output gpio signal, low - low Rx rate, high - high Rx rate Must not be present for SFF modules</p>
</div>

<a id="dt-3dbc7c4592cb2d731008"></a>

### <code>rate&#45;select1&#45;gpios</code> — not listed as required here

**Maximum number of items (<code>maxItems</code>):** <span id="dt-8c06742df956733ea6c3"><code>1</code></span>

<div id="dt-721978618790e2011a01">
<p style="white-space: pre-wrap">GPIO phandle and a specifier of the Tx Signaling Rate Select (AKA RS1) output gpio signal (SFP+ only), low - low Tx rate, high - high Tx rate. Must not be present for SFF modules</p>
</div>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

<a id="dt-d33de94ac1d3652cd22a"></a>

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > <a id="dt-97f47e9dc804c839f86d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bbadeeb73dfaefabae79"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-ebe43a424f4497a78746"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **Exact value (<code>const</code>):** <span id="dt-8997992e7087b5549d86"><code>&#34;sff&#44;sff&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-b212c2ef78c22fab2e20"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-597b94364f04f7845389"></a>
> >
> > **<code>mod&#45;def0&#45;gpios</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-c8190f33dd7ef8ea0bdf"></a>
> >
> > **<code>rate&#45;select0&#45;gpios</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.
> >
> > <a id="dt-0fe55f0642ca99168773"></a>
> >
> > **<code>rate&#45;select1&#45;gpios</code> — not listed as required here**
> >
> > <code>false</code> — Not permitted by this property rule.

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;i2c&#45;bus&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/gpio/gpio.h&gt;

sfp1: sfp {
  compatible = "sff,sfp";
  i2c-bus = &lt;&amp;sfp_1g_i2c&gt;;
  los-gpios = &lt;&amp;cpm_gpio2 22 GPIO_ACTIVE_HIGH&gt;;
  mod-def0-gpios = &lt;&amp;cpm_gpio2 21 GPIO_ACTIVE_LOW&gt;;
  maximum-power-milliwatt = &lt;1000&gt;;
  pinctrl-names = "default";
  pinctrl-0 = &lt;&amp;cpm_sfp_1g_pins &amp;cps_sfp_1g_pins&gt;;
  tx-disable-gpios = &lt;&amp;cps_gpio1 24 GPIO_ACTIVE_HIGH&gt;;
  tx-fault-gpios = &lt;&amp;cpm_gpio2 19 GPIO_ACTIVE_HIGH&gt;;
};

ethernet {
  phy-names = "comphy";
  phys = &lt;&amp;cps_comphy5 0&gt;;
  sfp = &lt;&amp;sfp1&gt;;
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/gpio/gpio.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;

sfp2: sfp {
  compatible = "sff,sfp";
  i2c-bus = &lt;&amp;sfp_i2c&gt;;
  los-gpios = &lt;&amp;cps_gpio1 28 GPIO_ACTIVE_HIGH&gt;;
  mod-def0-gpios = &lt;&amp;cps_gpio1 27 GPIO_ACTIVE_LOW&gt;;
  pinctrl-names = "default";
  pinctrl-0 = &lt;&amp;cps_sfpp0_pins&gt;;
  tx-disable-gpios = &lt;&amp;cps_gpio1 29 GPIO_ACTIVE_HIGH&gt;;
  tx-fault-gpios = &lt;&amp;cps_gpio1 26 GPIO_ACTIVE_HIGH&gt;;
};

mdio {
  #address-cells = &lt;1&gt;;
  #size-cells = &lt;0&gt;;

  phy: ethernet-phy@0 {
    compatible = "ethernet-phy-ieee802.3-c45";
    pinctrl-names = "default";
    pinctrl-0 = &lt;&amp;cpm_phy0_pins &amp;cps_phy0_pins&gt;;
    reg = &lt;0&gt;;
    interrupts = &lt;18 IRQ_TYPE_EDGE_FALLING&gt;;
    sfp = &lt;&amp;sfp2&gt;;
  };
};

ethernet {
  phy = &lt;&amp;phy&gt;;
  phy-mode = "10gbase-kr";
};
</code></pre>

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)</span></p>

<p id="dt-comment-1"><strong>Line 16:</strong> <span> for SFP modules</span></p>

<p id="dt-comment-2"><strong>Line 17:</strong> <span> for soldered down SFF modules</span></p>

</details>
