# MAX96717 CSI-2 to GMSL2 Serializer

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Media bindings / i2c_

> Device-tree binding reference for MAX96717 CSI-2 to GMSL2 Serializer.

<!-- 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;media&#47;i2c&#47;maxim&#44;max96717&#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;Julien Massot &#60;julien&#46;massot&#64;collabora&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The MAX96717 serializer converts MIPI CSI-2 D-PHY formatted input into GMSL2 serial outputs. The device allows the GMSL2 link to simultaneously transmit bidirectional control-channel data while forward video transmissions are in progress. The MAX96717 can connect to one remotely located deserializer using industry-standard coax or STP interconnects. The device cans operate in pixel or tunnel mode. In pixel mode the MAX96717 can select the MIPI datatype, while the tunnel mode forward all the MIPI data received by the serializer. The MAX96717 supports Reference Over Reverse (channel), to generate a clock output for the sensor from the GMSL reverse channel.
The GMSL2 serial link operates at a fixed rate of 3Gbps or 6Gbps in the forward direction and 187.5Mbps in the reverse direction. MAX96717F only supports a fixed rate of 3Gbps in the forward direction.</p>
</div>

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

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

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

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

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

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

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;maxim&#44;max96717f&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;maxim&#44;max96717&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;maxim&#44;max96717f&#34;</code></span>

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

### <code>&#35;gpio&#45;cells</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-8950f722147d2cd640b8"><code>2</code></span>

<div id="dt-70b20397c3c73794f833">
<p style="white-space: pre-wrap">First cell is the GPIO pin number, second cell is the flags. The GPIO pin number must be in range of [0, 10].</p>
</div>

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

### <code>gpio&#45;controller</code> — not listed as required here

<code>true</code> — No constraints added by this property rule.

<a id="dt-7471877b51a93881192b"></a>

### <code>&#35;clock&#45;cells</code> — not listed as required here

**Exact value (<code>const</code>):** <span id="dt-0eebe37dd30ae3dd2a72"><code>0</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

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

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

<a id="dt-638717a7c9bbf1878b7e"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-253551a11be145495212">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;properties&#47;ports</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-638717a7c9bbf1878b7e>)</span>

<a id="dt-076265030fa616d9c245"></a>

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

<a id="dt-16a3f454af238f04e210"></a>

**<code>port&#64;0</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4bf3c29e51dd1dcdbf80">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;&#36;defs&#47;port&#45;base</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-61dbefbf4cdd7cc4556a>)</span>

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

**Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)**

<code>false</code>

Not allowed by this rule.

<div id="dt-b1724f7738be96ef356e">
<p style="white-space: pre-wrap">CSI-2 Input port</p>
</div>

<a id="dt-97a7e289fd1dc27f715a"></a>

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

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

**<code>endpoint</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-f80c0d0094e64d1811a9">[<code>&#47;schemas&#47;media&#47;video&#45;interfaces&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-media/video-interfaces.md#dt-root>)</span>

<a id="dt-69d97269bb790a34386a"></a>

**Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)**

<code>false</code>

Not allowed by this rule.

<a id="dt-54fb05b9994e8e117d7d"></a>

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

<a id="dt-87303084204fb603a415"></a>

**<code>data&#45;lanes</code> — required here**

**Minimum number of items (<code>minItems</code>):** <span id="dt-285af73517588bef9f36"><code>1</code></span>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-7bfec11d1caf5270f3f0"><code>4</code></span>

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

**<code>lane&#45;polarities</code> — not listed as required here**

**Minimum number of items (<code>minItems</code>):** <span id="dt-89ae82e760a2f13e4b47"><code>1</code></span>

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

**Required in this object (<code>required</code>):** <a id="dt-df1a9b6a20105637c196"></a> <span id="dt-43ad26cce419821606c0"><code>&#34;data&#45;lanes&#34;</code></span>

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

**<code>port&#64;1</code> — required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9faa1456d91cf714ff9d">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;properties&#47;port</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-1d845f0617b4072cef77>)</span>

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

**Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)**

<code>false</code>

Not allowed by this rule.

<div id="dt-0fa4b11c6410ab72ea2f">
<p style="white-space: pre-wrap">GMSL Output port</p>
</div>

**Required in this object (<code>required</code>):** <a id="dt-2491871393415320c88c"></a> <span id="dt-95e4854181be8c873eb8"><code>&#34;port&#64;1&#34;</code></span>

<a id="dt-6f35d0affe999e2a03a8"></a>

### <code>i2c&#45;gate</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-8421d331ff0f77b47c74">[<code>&#47;schemas&#47;i2c&#47;i2c&#45;gate&#46;yaml</code>](</kernel/hardware/devicetree-bindings/dt-i2c/i2c-gate.md#dt-root>)</span>

<a id="dt-49c87448a516ffd421e8"></a>

#### Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)

<code>false</code>

Not allowed by this rule.

<div id="dt-7c5e4edf3c9eb0829c21">
<p style="white-space: pre-wrap">The MAX96717 will forward the I2C requests from the incoming GMSL2 link. Therefore, it supports an i2c-gate subnode to configure a sensor.</p>
</div>

**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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;ports&#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;
#include &lt;dt-bindings/media/video-interfaces.h&gt;

i2c {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    serializer: serializer@40 {
        compatible = "maxim,max96717f";
        reg = &lt;0x40&gt;;
        gpio-controller;
        #gpio-cells = &lt;2&gt;;
        #clock-cells = &lt;0&gt;;

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

            port@0 {
                reg = &lt;0&gt;;
                max96717f_csi_in: endpoint {
                    data-lanes = &lt;1 2 3 4&gt;;
                    remote-endpoint = &lt;&amp;sensor_out&gt;;
                };
            };

            port@1 {
                reg = &lt;1&gt;;
                max96917f_gmsl_out: endpoint {
                    remote-endpoint = &lt;&amp;deser_gmsl_in&gt;;
                };
            };
        };

        i2c-gate {
            #address-cells = &lt;1&gt;;
            #size-cells = &lt;0&gt;;
            sensor@10 {
                compatible = "st,st-vgxy61";
                reg = &lt;0x10&gt;;
                reset-gpios = &lt;&amp;serializer 0 GPIO_ACTIVE_LOW&gt;;
                clocks = &lt;&amp;serializer&gt;;
                VCORE-supply = &lt;&amp;v1v2&gt;;
                VDDIO-supply = &lt;&amp;v1v8&gt;;
                VANA-supply = &lt;&amp;v2v8&gt;;
                port {
                    sensor_out: endpoint {
                        data-lanes = &lt;1 2 3 4&gt;;
                        remote-endpoint = &lt;&amp;max96717f_csi_in&gt;;
                    };
                };
            };
        };
    };
};
</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 2:</strong> <span> Copyright (C) 2024 Collabora Ltd.</span></p>

</details>
