# Toshiba TC358746 Parallel to MIPI CSI2 Bridge

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

> Device-tree binding reference for Toshiba TC358746 Parallel to MIPI CSI2 Bridge.

<!-- 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;toshiba&#44;tc358746&#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;Marco Felsch &#60;kernel&#64;pengutronix&#46;de&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Toshiba TC358746 converts a parallel video stream into a MIPI CSI-2
stream. The direction can be either parallel-in -&gt; csi-out or csi-in -&gt;
parallel-out The chip is programmable through I2C and SPI but the SPI
interface is only supported in parallel-in -&gt; csi-out mode.</p>
<p style="white-space: pre-wrap">Note that the current device tree bindings only support the
parallel-in -&gt; csi-out path.</p>
</div>

<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;toshiba&#44;tc358746&#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

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">The phandle to the reference clock source. This corresponds to the hardware pin REFCLK.</p>
</div>

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

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

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

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

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

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

<div id="dt-6709a835409866cbd3af">
<pre><code>The bridge can act as clock provider for the sensor. To enable this
support #clock-cells must be specified. Attention if this feature is used
then the mclk rate must be at least: (2 * link-frequency) / 8
                                     `------------------´   ^
                                     internal PLL rate   smallest possible
                                                             mclk-div</code></pre>
</div>

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

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

### <code>clock&#45;output&#45;names</code> — not listed as required here

<div id="dt-1944bc0b47114a0d6f2d">
<p style="white-space: pre-wrap">The clock name of the MCLK output, the default name is tc358746-mclk.</p>
</div>

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

<a id="dt-8f00230bb9fd0518c8a8"></a>

### <code>vddc&#45;supply</code> — required here

<div id="dt-6c33440b9a38640638e5">
<p style="white-space: pre-wrap">Digital core voltage supply, 1.2 volts</p>
</div>

<a id="dt-78ea9f736d3e6cab7ae5"></a>

### <code>vddio&#45;supply</code> — required here

<div id="dt-ba263ef99f73e8ce56fb">
<p style="white-space: pre-wrap">Digital I/O voltage supply, 1.8 volts</p>
</div>

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

### <code>vddmipi&#45;supply</code> — required here

<div id="dt-4e6dfb411a1ab43b1388">
<p style="white-space: pre-wrap">MIPI CSI phy voltage supply, 1.2 volts</p>
</div>

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

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

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">The phandle and specifier for the GPIO that controls the chip reset. This corresponds to the hardware pin RESX which is physically active low.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-140c9736042c6903f7ff"><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> — 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">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-59af963f316bec40fd75"></a>

**<code>hsync&#45;active</code> — required here**

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

<a id="dt-8eb2981c82b9ab70962d"></a>

**<code>vsync&#45;active</code> — required here**

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

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

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

**Allowed values (<code>enum</code>):** <a id="dt-8460a2613419aa44ab8f"></a> <span id="dt-489eea150d2525a0bcb4"><code>5</code></span>, <span id="dt-c427aeab7d9bcd63758e"><code>6</code></span>

**Required in this object (<code>required</code>):** <a id="dt-df1a9b6a20105637c196"></a> <span id="dt-43ad26cce419821606c0"><code>&#34;hsync&#45;active&#34;</code></span>, <span id="dt-f366e44c7a9a309e4a1a"><code>&#34;vsync&#45;active&#34;</code></span>, <span id="dt-7034426f7b123702e62d"><code>&#34;bus&#45;type&#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;&#36;defs&#47;port&#45;base</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-61dbefbf4cdd7cc4556a>)</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">Output port</p>
</div>

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

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

<a id="dt-4c1f94482d9b3f1374e5"></a>

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

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

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

<code>false</code>

Not allowed by this rule.

<a id="dt-73975f999989e2b986c4"></a>

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

<a id="dt-84c3783c879cce462837"></a>

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

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

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

<a id="dt-68e695fd47355fde4065"></a>

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

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

<a id="dt-51d8403e37756192575d"></a>

**<code>link&#45;frequencies</code> — required here**

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

**Required in this object (<code>required</code>):** <a id="dt-59afe984702a3bcb6abd"></a> <span id="dt-75d214c82b412cf820ca"><code>&#34;data&#45;lanes&#34;</code></span>, <span id="dt-6ee389f2e655aea44c71"><code>&#34;link&#45;frequencies&#34;</code></span>

**Required in this object (<code>required</code>):** <a id="dt-2491871393415320c88c"></a> <span id="dt-95e4854181be8c873eb8"><code>&#34;port&#64;0&#34;</code></span>, <span id="dt-0b051ff21225a3bba241"><code>&#34;port&#64;1&#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;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;vddc&#45;supply&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;vddio&#45;supply&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;vddmipi&#45;supply&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><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;

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

  csi-bridge@e {
    compatible = "toshiba,tc358746";
    reg = &lt;0xe&gt;;

    clocks = &lt;&amp;refclk&gt;;
    clock-names = "refclk";

    reset-gpios = &lt;&amp;gpio 2 GPIO_ACTIVE_LOW&gt;;

    vddc-supply = &lt;&amp;v1_2d&gt;;
    vddio-supply = &lt;&amp;v1_8d&gt;;
    vddmipi-supply = &lt;&amp;v1_2d&gt;;

    /* sensor mclk provider */
    #clock-cells = &lt;0&gt;;

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

      /* Input */
      port@0 {
        reg = &lt;0&gt;;
        tc358746_in: endpoint {
          remote-endpoint = &lt;&amp;sensor_out&gt;;
          hsync-active = &lt;0&gt;;
          vsync-active = &lt;0&gt;;
          bus-type = &lt;5&gt;;
        };
      };

      /* Output */
      port@1 {
        reg = &lt;1&gt;;
        tc358746_out: endpoint {
          remote-endpoint = &lt;&amp;mipi_csi2_in&gt;;
          data-lanes = &lt;1 2&gt;;
          clock-noncontinuous;
          link-frequencies = /bits/ 64 &lt;216000000&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>
