# Quad GMSL2 to CSI-2 Deserializer with GMSL1 Compatibility

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

> Device-tree binding reference for Quad GMSL2 to CSI-2 Deserializer with GMSL1 Compatibility.

<!-- 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;max96712&#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;Niklas Söderlund &#60;niklas&#46;soderlund&#43;renesas&#64;ragnatech&#46;se&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The MAX96712 deserializer converts GMSL2 or GMSL1 serial inputs into MIPI
CSI-2 D-PHY or C-PHY formatted outputs. The device allows each link to
simultaneously transmit bidirectional control-channel data while forward
video transmissions are in progress. The MAX96712 can accommodate as many as
four remotely located sensors using industry-standard coax or STP
interconnects.</p>
<p style="white-space: pre-wrap">Each GMSL2 serial link operates at a fixed rate of 3Gbps or 6Gbps in the
forward direction and 187.5Mbps in the reverse direction. In GMSL1 mode, the
MAX96712 can be paired with first-generation 3.12Gbps or 1.5Gbps GMSL1
serializers or operate up to 3.12Gbps with GMSL2 serializers in GMSL1 mode.</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-cc3709943397035582d2"></a>

#### Array item rules (<code>items</code>)

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

**Item 1**

> **Allowed values (<code>enum</code>):** <a id="dt-851ace07a50c83495949"></a> <span id="dt-63b688f2ccd82724cb8f"><code>&#34;maxim&#44;max96712&#34;</code></span>, <span id="dt-2d97ae0f34d14dd8e72b"><code>&#34;maxim&#44;max96724&#34;</code></span>

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

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">I2C device address</p>
</div>

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

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

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

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

<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;properties&#47;port</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-1d845f0617b4072cef77>)</span>

<div id="dt-b1724f7738be96ef356e">
<p style="white-space: pre-wrap">GMSL Input 0</p>
</div>

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

**<code>port&#64;1</code> — not listed as 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>

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

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

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

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

<div id="dt-2494ba4fb5f1dc4cb38b">
<p style="white-space: pre-wrap">GMSL Input 2</p>
</div>

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

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

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

<div id="dt-a206fbc5e1ad6cd787b2">
<p style="white-space: pre-wrap">GMSL Input 3</p>
</div>

<a id="dt-05b0c543b599dbe210e8"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-15a08da874134d85f6fc">[<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-c95040e7bed1dd6f73b4"></a>

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

<code>false</code>

Not allowed by this rule.

<div id="dt-9b3d4fae0dd48881abce">
<p style="white-space: pre-wrap">CSI-2 Output</p>
</div>

<a id="dt-9876694790a23c77a145"></a>

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

<a id="dt-97008b085d9ff76f6625"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-37b44a17e980f682c737">[<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-da119ecf761472c52447"></a>

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

<code>false</code>

Not allowed by this rule.

<a id="dt-65c8fa58a8b9c70664a8"></a>

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

<a id="dt-2e4cca51859b00b45ee6"></a>

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

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-8c8558df19c7d37b0bbe"></a> <span id="dt-caaf798e38b2111093d9"><code>1</code></span>, <span id="dt-ddf05df05d71a1229f2a"><code>4</code></span>

**Required in this object (<code>required</code>):** <a id="dt-9696ba37f9720227d69b"></a> <span id="dt-bca06aab3f0c6bcafa80"><code>&#34;data&#45;lanes&#34;</code></span>, <span id="dt-372b440a30b9c4827eea"><code>&#34;bus&#45;type&#34;</code></span>

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

**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@e6508000 {
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        reg = &lt;0 0xe6508000&gt;;

        gmsl0: gmsl-deserializer@49 {
                compatible = "maxim,max96712";
                reg = &lt;0x49&gt;;
                enable-gpios = &lt;&amp;pca9654_a 0 GPIO_ACTIVE_HIGH&gt;;

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

                        port@4 {
                                reg = &lt;4&gt;;
                                max96712_out0: endpoint {
                                        bus-type = &lt;MEDIA_BUS_TYPE_CSI2_DPHY&gt;;
                                        clock-lanes = &lt;0&gt;;
                                        data-lanes = &lt;1 2 3 4&gt;;
                                        remote-endpoint = &lt;&amp;csi40_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) 2021 Renesas Electronics Corp.</span></p>

<p id="dt-comment-2"><strong>Line 73:</strong> <span> MEDIA_BUS_TYPE_CSI2_CPHY</span></p>

<p id="dt-comment-3"><strong>Line 74:</strong> <span> MEDIA_BUS_TYPE_CSI2_DPHY</span></p>

</details>
