# Texas Instruments DRA7x Video Input Port (VIP)

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

> Device-tree binding reference for Texas Instruments DRA7x Video Input Port (VIP).

<!-- 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;ti&#44;vip&#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;Yemike Abhilash Chandra &#60;y&#45;abhilashchandra&#64;ti&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Video Input Port (VIP) can be found on devices such as DRA7xx and
provides the system interface and the processing capability to
connect parallel image-sensor as well as BT.656/1120 capable encoder
chip to DRA7x device.</p>
<p style="white-space: pre-wrap">Each VIP instance supports 2 independently configurable external
video input capture slices (Slice 0 and Slice 1) each providing
up to two video input ports (Port A and Port B).</p>
</div>

<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;ti&#44;dra7&#45;vip&#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-c2de09e7f7fd211b679d"></a>

### <code>interrupts</code> — 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">IRQ index 0 is used for Slice0 interrupts</p>
> </div>

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

**Item 2**

> <div id="dt-f26fcb0c97f34db34fe4">
> <p style="white-space: pre-wrap">IRQ index 1 is used for Slice1 interrupts</p>
> </div>

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

### <code>ti&#44;ctrl&#45;module</code> — required here

<div id="dt-9bd25337b84888157099">
<p style="white-space: pre-wrap">Reference to the device control module that provides clock-edge inversion control for VIP ports. These controls allow the VIP to sample pixel data on the correct clock edge.</p>
</div>

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

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

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

> <a id="dt-5730efe765fe45d1c989"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-43e76084dcada3c83d36"></a>
>
> **Item 1**
>
> > <div id="dt-dc853d58a84f97b054b7">
> > <p style="white-space: pre-wrap">phandle to device control module</p>
> > </div>
>
> <a id="dt-112ef1e4e580abd1bc68"></a>
>
> **Item 2**
>
> > <div id="dt-4a935152c84ac5f5cfb2">
> > <p style="white-space: pre-wrap">offset to the CTRL_CORE_SMA_SW_1 register</p>
> > </div>
>
> <a id="dt-ae84caf5e5b06ddfa7a5"></a>
>
> **Item 3**
>
> > <div id="dt-da6c8c0a681a1c5153d6">
> > <p style="white-space: pre-wrap">Bit field to slice 0 port A</p>
> > </div>
>
> <a id="dt-7a3f23a19c6fdf9c5151"></a>
>
> **Item 4**
>
> > <div id="dt-c61f030dba023a5566ce">
> > <p style="white-space: pre-wrap">Bit field to slice 0 port B</p>
> > </div>
>
> <a id="dt-f5547299f7fc4146dfd1"></a>
>
> **Item 5**
>
> > <div id="dt-f578b799a8d558582fa5">
> > <p style="white-space: pre-wrap">Bit field to slice 1 port A</p>
> > </div>
>
> <a id="dt-d72de9a380d1efb14995"></a>
>
> **Item 6**
>
> > <div id="dt-9bef968c9e35fcd32c78">
> > <p style="white-space: pre-wrap">Bit field to slice 1 port B</p>
> > </div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-f58fdabdc439f1cc3b80"><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-bd319faf13454f764484"></a>

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

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

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

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

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

<code>false</code>

Not allowed by this rule.

<div id="dt-12fe009f404dfb86eaf0">
<p style="white-space: pre-wrap">Each VIP instance supports 2 independently configurable external video
input capture slices (Slice 0 and Slice 1) each providing up to two video
input ports (Port A and Port B). These ports represent the following
port@0 -&gt; Slice 0 Port A
port@1 -&gt; Slice 0 Port B
port@2 -&gt; Slice 1 Port A
port@3 -&gt; Slice 1 Port B</p>
</div>

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

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

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

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

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

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

<code>false</code>

Not allowed by this rule.

<a id="dt-9527eae2dd85e9d43b66"></a>

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

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

**<code>bus&#45;width</code> — not listed as required here**

**Allowed values (<code>enum</code>):** <a id="dt-42fb2c20da1f9706f321"></a> <span id="dt-c34716dc00fc849f0251"><code>8</code></span>, <span id="dt-78cf07e9fd838a51012d"><code>16</code></span>, <span id="dt-253ab2aaf0ae138791b1"><code>24</code></span>

**Default value (<code>default</code>):** <span id="dt-0f199cc7cd737064d6b9"><code>8</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;interrupts&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;ti&#44;ctrl&#45;module&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><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/interrupt-controller/arm-gic.h&gt;
#include &lt;dt-bindings/interrupt-controller/irq.h&gt;

video@48970000 {
  compatible = "ti,dra7-vip";
  reg = &lt;0x48970000 0x1000&gt;;
  interrupts = &lt;GIC_SPI 351 IRQ_TYPE_LEVEL_HIGH&gt;,
               &lt;GIC_SPI 392 IRQ_TYPE_LEVEL_HIGH&gt;;
  ti,ctrl-module = &lt;&amp;scm_conf 0x534 0x0 0x2 0x1 0x3&gt;;

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

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

      vin1a_ep: endpoint {
        remote-endpoint = &lt;&amp;camera1&gt;;
        hsync-active = &lt;1&gt;;
        vsync-active = &lt;1&gt;;
        pclk-sample = &lt;0&gt;;
        bus-width = &lt;8&gt;;
      };
    };

    vin1b: port@1 {
      reg = &lt;1&gt;;

      vin1b_ep: endpoint {
        remote-endpoint = &lt;&amp;camera2&gt;;
        hsync-active = &lt;1&gt;;
        vsync-active = &lt;1&gt;;
        pclk-sample = &lt;0&gt;;
        bus-width = &lt;8&gt;;
      };
    };

    vin2a: port@2 {
      reg = &lt;2&gt;;

      vin2a_ep: endpoint {
        remote-endpoint = &lt;&amp;camera3&gt;;
        hsync-active = &lt;1&gt;;
        vsync-active = &lt;1&gt;;
        pclk-sample = &lt;0&gt;;
        bus-width = &lt;16&gt;;
      };
    };

    vin2b: port@3 {
      reg = &lt;3&gt;;

      vin2b_ep: endpoint {
        remote-endpoint = &lt;&amp;camera4&gt;;
        hsync-active = &lt;1&gt;;
        vsync-active = &lt;1&gt;;
        pclk-sample = &lt;0&gt;;
        bus-width = &lt;8&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) 2025 Texas Instruments Incorporated -  http://www.ti.com/</span></p>

</details>
