# MIPI CSI-2 Receiver core in the i.MX SoC

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

> Device-tree binding reference for MIPI CSI-2 Receiver core in the i.MX SoC.

<!-- 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;fsl&#44;imx6&#45;mipi&#45;csi2&#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>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">This is the device node for the MIPI CSI-2 Receiver core in the i.MX SoC. This is a Synopsys Designware MIPI CSI-2 host controller core combined with a D-PHY core mixed into the same register block. In addition this device consists of an i.MX-specific "CSI2IPU gasket" glue logic, also controlled from the same register block. The CSI2IPU gasket demultiplexes the four virtual channel streams from the host controller's 32-bit output image bus onto four 16-bit parallel busses to the i.MX IPU CSIs.</p>
</div>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Frank Li &#60;Frank&#46;Li&#64;nxp&#46;com&#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

**Exact value (<code>const</code>):** <span id="dt-1765195bf8e86c3ccec6"><code>&#34;fsl&#44;imx6&#45;mipi&#45;csi2&#34;</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-4e9a371963ac013ad39d"></a>

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

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

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

<a id="dt-41adf3ed8101eca13466"></a>

**Item 1**

> <div id="dt-4cfd4c1642ba13c357d6">
> <p style="white-space: pre-wrap">hsi_tx (the D-PHY clock)</p>
> </div>

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

**Item 2**

> <div id="dt-6b79aebfd2287d4aeab8">
> <p style="white-space: pre-wrap">video_27m (D-PHY PLL reference clock)</p>
> </div>

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

**Item 3**

> <div id="dt-98e44cf6c35fb1f8c6f9">
> <p style="white-space: pre-wrap">eim_podf;</p>
> </div>

<a id="dt-041d7cd76b652a5de06a"></a>

### <code>clock&#45;names</code> — required here

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

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

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

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-3403d68873725c15739a"><code>&#34;dphy&#34;</code></span>

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

**Item 2**

> **Exact value (<code>const</code>):** <span id="dt-0298e5f353a64a09a8a6"><code>&#34;ref&#34;</code></span>

<a id="dt-261be8310c899fd46631"></a>

**Item 3**

> **Exact value (<code>const</code>):** <span id="dt-ad55fa67f3e765bf6ab6"><code>&#34;pix&#34;</code></span>

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

### <code>interrupts</code> — not listed as required here

<a id="dt-985aed94c3a5de8e946a"></a>

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

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

**Item 1**

> <div id="dt-094ee990c529b33ab668">
> <p style="white-space: pre-wrap">CSI-2 ERR1 irq</p>
> </div>

<a id="dt-14fdf3275cf454d3c593"></a>

**Item 2**

> <div id="dt-f26fcb0c97f34db34fe4">
> <p style="white-space: pre-wrap">CSI-2 ERR2 irq</p>
> </div>

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

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

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

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

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

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

<a id="dt-56ea0118350e07c287bd"></a>

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

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

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

<code>false</code>

Not allowed by this rule.

<div id="dt-2660b670d7052ad63e1c">
<p style="white-space: pre-wrap">Input port node, single endpoint describing the CSI-2 transmitter.</p>
</div>

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

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

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

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

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

<a id="dt-1419f6062613f417171c"></a>

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

<code>false</code>

Not allowed by this rule.

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

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

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

**<code>clock&#45;lanes</code> — not listed as required here**

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

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

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

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

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

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

<a id="dt-86948a333439470b2378"></a>

**Item 1**

> **Exact value (<code>const</code>):** <span id="dt-18a1cbfe3bf68fdaa3e8"><code>1</code></span>

<a id="dt-649bc937cfa64ea81a7c"></a>

**Item 2**

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

<a id="dt-47e150feff0098dc06a6"></a>

**Item 3**

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

<a id="dt-396e69aa5bf8b68786e2"></a>

**Item 4**

> **Exact value (<code>const</code>):** <span id="dt-06c8b2250a21034ed022"><code>4</code></span>

**Required in this object (<code>required</code>):** <a id="dt-5f50f4b88d92b69ec435"></a> <span id="dt-7763912442c820c51eca"><code>&#34;data&#45;lanes&#34;</code></span>

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

## Properties matching a name pattern (<code>patternProperties</code>)

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

### <code>&#94;port&#64;&#91;1&#45;4&#93;&#36;</code> — name matches this regular expression

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

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

<code>false</code>

Not allowed by this rule.

<div id="dt-74423256c5896dd23778">
<p style="white-space: pre-wrap">ports 1 through 4 are output ports connecting with parallel bus sink endpoint nodes and correspond to the four MIPI CSI-2 virtual channel outputs.</p>
</div>

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

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

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

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

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

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

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

<code>false</code>

Not allowed by this rule.

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

**<code>endpoint&#64;1</code> — not listed as required here**

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

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

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

<code>false</code>

Not allowed by this 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;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;names&#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/clock/imx6qdl-clock.h&gt;

mipi@21dc000 {
    compatible = "fsl,imx6-mipi-csi2";
    reg = &lt;0x021dc000 0x4000&gt;;
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;
    clocks = &lt;&amp;clks IMX6QDL_CLK_HSI_TX&gt;,
             &lt;&amp;clks IMX6QDL_CLK_VIDEO_27M&gt;,
             &lt;&amp;clks IMX6QDL_CLK_EIM_PODF&gt;;
    clock-names = "dphy", "ref", "pix";

    port@0 {
        reg = &lt;0&gt;;

        endpoint {
            remote-endpoint = &lt;&amp;ov5640_to_mipi_csi2&gt;;
            clock-lanes = &lt;0&gt;;
            data-lanes = &lt;1 2&gt;;
        };
    };

    port@1 {
        reg = &lt;1&gt;;
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;

        endpoint@0 {
            reg = &lt;0&gt;;
            remote-endpoint = &lt;&amp;ipu1_csi0_mux_from_mipi_vc0&gt;;
        };

        endpoint@1 {
            reg = &lt;1&gt;;
            remote-endpoint = &lt;&amp;ipu1_csi1_mux_from_mipi_vc0&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>

</details>
