# Common Properties for Video Receiver and Transmitter Interface Endpoints

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

> Device-tree binding reference for Common Properties for Video Receiver and Transmitter Interface Endpoints.

<!-- 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;video&#45;interfaces&#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;Sakari Ailus &#60;sakari&#46;ailus&#64;linux&#46;intel&#46;com&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Laurent Pinchart &#60;laurent&#46;pinchart&#64;ideasonboard&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Video data pipelines usually consist of external devices, e.g. camera sensors,
controlled over an I2C, SPI or UART bus, and SoC internal IP blocks, including
video DMA engines and video data processors.</p>
<p style="white-space: pre-wrap">SoC internal blocks are described by DT nodes, placed similarly to other SoC
blocks.  External devices are represented as child nodes of their respective
bus controller nodes, e.g. I2C.</p>
<p style="white-space: pre-wrap">Data interfaces on all video devices are described by their child 'port' nodes.
Configuration of a port depends on other devices participating in the data
transfer and is described by 'endpoint' subnodes.</p>
<pre><code>device {
    ...
    ports {
        #address-cells = &lt;1&gt;;
        #size-cells = &lt;0&gt;;</code></pre>
<pre><code>        port@0 {
            ...
            endpoint@0 { ... };
            endpoint@1 { ... };
        };
        port@1 { ... };
    };
};</code></pre>
<p style="white-space: pre-wrap">If a port can be configured to work with more than one remote device on the same
bus, an 'endpoint' child node must be provided for each of them.  If more than
one port is present in a device node or there is more than one endpoint at a
port, or port node needs to be associated with a selected hardware interface,
a common scheme using '#address-cells', '#size-cells' and 'reg' properties is
used.</p>
<p style="white-space: pre-wrap">All 'port' nodes can be grouped under optional 'ports' node, which allows to
specify #address-cells, #size-cells properties independently for the 'port'
and 'endpoint' nodes and any child device nodes a device might have.</p>
<p style="white-space: pre-wrap">Two 'endpoint' nodes are linked with each other through their 'remote-endpoint'
phandles.  An endpoint subnode of a device contains all properties needed for
configuration of this device for data exchange with other device.  In most
cases properties at the peer 'endpoint' nodes will be identical, however they
might need to be different when there is any signal modifications on the bus
between two devices, e.g. there are logic signal inverters on the lines.</p>
<p style="white-space: pre-wrap">It is allowed for multiple endpoints at a port to be active simultaneously,
where supported by a device.  For example, in case where a data interface of
a device is partitioned into multiple data busses, e.g. 16-bit input port
divided into two separate ITU-R BT.656 8-bit busses.  In such case bus-width
and data-shift properties can be used to assign physical data lines to each
endpoint node (logical bus).</p>
<p style="white-space: pre-wrap">Documenting bindings for devices
--------------------------------</p>
<p style="white-space: pre-wrap">All required and optional bindings the device supports shall be explicitly
documented in device DT binding documentation. This also includes port and
endpoint nodes for the device, including unit-addresses and reg properties
where relevant.</p>
</div>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

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

### Rule 1

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

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

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

<a id="dt-18051245eab51f92c951"></a>

### <code>slave&#45;mode</code> — not listed as required here

**Value type (<code>type</code>):** <span id="dt-271cababd2ab9181c2df"><code>&#34;boolean&#34;</code></span>

<div id="dt-f355f945ad475e2d7544">
<p style="white-space: pre-wrap">Indicates that the link is run in slave mode. The default when this property is not specified is master mode. In the slave mode horizontal and vertical synchronization signals are provided to the slave device (data source) by the master device (data sink). In the master mode the data source device is also the source of the synchronization signals.</p>
</div>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-023b01ece6796f2998da">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-04876ec829de299f1119"></a> <span id="dt-69f692ffa081c4be4c68"><code>1</code></span>, <span id="dt-965652af2b1b52e6b528"><code>2</code></span>, <span id="dt-bc5e384571a4cb33086a"><code>3</code></span>, <span id="dt-f6d0c9b0107bddffdd07"><code>4</code></span>, <span id="dt-43098d117a4692237e55"><code>5</code></span>, <span id="dt-56753b74a93905c3c0fb"><code>6</code></span>, <span id="dt-b188fc3bf81b30bcd0b1"><code>7</code></span>

<div id="dt-4988214e14b3029747a7">
<p style="white-space: pre-wrap">Data bus type. See include/dt-bindings/media/video-interfaces.h.</p>
</div>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-a67f3b9ccda7c1533d01">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Maximum value (<code>maximum</code>):** <span id="dt-479b5dc34345c4f71246"><code>64</code></span>

<div id="dt-d407af4e41a84dac1f86">
<p style="white-space: pre-wrap">Number of data lines actively used, valid for the parallel busses.</p>
</div>

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

### <code>data&#45;shift</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-fa32b4c1c1810552b9fd">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Maximum value (<code>maximum</code>):** <span id="dt-f0ffafeabbad8418a1f0"><code>64</code></span>

<div id="dt-a158a238ceacb1e70dee">
<p style="white-space: pre-wrap">On the parallel data busses, if bus-width is used to specify the number of data lines, data-shift can be used to specify which data lines are used, e.g. "bus-width=&lt;8&gt;; data-shift=&lt;2&gt;;" means, that lines 9:2 are used.</p>
</div>

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

### <code>hsync&#45;active</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-a079a654afe1914afa32">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-9a4c01e24061dd47a2d9"></a> <span id="dt-d63b33dcc9b501a493dc"><code>0</code></span>, <span id="dt-264d4fcfbbd83e480429"><code>1</code></span>

<div id="dt-4f9085096d298ec59895">
<p style="white-space: pre-wrap">Active state of the HSYNC signal, 0/1 for LOW/HIGH respectively.</p>
</div>

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

### <code>vsync&#45;active</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-cae202501011c8495613">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-7552094e766ea06fb6cd"></a> <span id="dt-ec9fda0e67fdfb0fd160"><code>0</code></span>, <span id="dt-4a0116e6ad4e72cb6348"><code>1</code></span>

<div id="dt-722a155987f876cdbe63">
<p style="white-space: pre-wrap">Active state of the VSYNC signal, 0/1 for LOW/HIGH respectively. Note, that if HSYNC and VSYNC polarities are not specified, embedded synchronization may be required, where supported.</p>
</div>

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

### <code>data&#45;active</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-43f628926114affda34d">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-6c8d17284f72888644b9"></a> <span id="dt-0fa3d676e5cf73f134c2"><code>0</code></span>, <span id="dt-2c3000a00280c4114b18"><code>1</code></span>

<div id="dt-7e926592e8921f9d918f">
<p style="white-space: pre-wrap">Similar to HSYNC and VSYNC, specifies data line polarity.</p>
</div>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-266cf7d86b46a83692fe">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-6260c1a7b78300206a44"></a> <span id="dt-98459ccd2f17ea4b40c9"><code>0</code></span>, <span id="dt-892d9601f2b3fac2d246"><code>1</code></span>

<div id="dt-844a136e12723cb2d750">
<p style="white-space: pre-wrap">Similar to HSYNC and VSYNC, specifies the data enable signal polarity.</p>
</div>

<a id="dt-46d4e1acda50393c1749"></a>

### <code>field&#45;even&#45;active</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-d87040c3c9b1b4f7be82">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-cbb9b15034a5b3688789"></a> <span id="dt-651b6e4b009a37a41d7c"><code>0</code></span>, <span id="dt-a012b21440d0c5c4b691"><code>1</code></span>

<div id="dt-1181074afee1dc5f3540">
<p style="white-space: pre-wrap">Field signal level during the even field data transmission.</p>
</div>

<a id="dt-37c2fd6b7b601799ea28"></a>

### <code>pclk&#45;sample</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-dcba5375b9b7a275cdb2">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-17c842a3a9a8c9e71156"></a> <span id="dt-de436979b4c7fa70591b"><code>0</code></span>, <span id="dt-ae6662e02a0243f0dcd5"><code>1</code></span>, <span id="dt-f8bca37c5a922d71232c"><code>2</code></span>

<div id="dt-dd297aefd04f457a909e">
<p style="white-space: pre-wrap">Sample data on falling (0), rising (1) or both (2) edges of the pixel clock signal.</p>
</div>

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

### <code>sync&#45;on&#45;green&#45;active</code> — not listed as required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-9f41879bab2d6f59f1c5">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-47e07889ab75cecd80e9"></a> <span id="dt-54f113f0db20434c8fdf"><code>0</code></span>, <span id="dt-86dd0caf8c6fa734e1de"><code>1</code></span>

<div id="dt-00acc8c6ccb4299e9f07">
<p style="white-space: pre-wrap">Active state of Sync-on-green (SoG) signal, 0/1 for LOW/HIGH respectively.</p>
</div>

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

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

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-5267b029b98bdb5a788f"><code>8</code></span>

**Items must be unique (<code>uniqueItems</code>):** <span id="dt-7505da95b031de0a2fc1"><code>true</code></span>

<a id="dt-360e58f14a5ebe84b030"></a>

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

> **Maximum value (<code>maximum</code>):** <span id="dt-e109f4c4bf6ff9bd9b7a"><code>8</code></span>

<div id="dt-e804a4d34ff2816cf2ed">
<p style="white-space: pre-wrap">An array of physical data lane indexes. Position of an entry determines the logical lane number, while the value of an entry indicates physical lane, e.g. for 2-lane MIPI CSI-2 bus we could have "data-lanes = &lt;1 2&gt;;", assuming the clock lane is on hardware lane 0. If the hardware does not support lane reordering, monotonically incremented values shall be used from 0 or 1 onwards, depending on whether or not there is also a clock lane. This property is valid for serial busses only (e.g. MIPI CSI-2).</p>
</div>

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

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-f363c5ce084a7f9f1c9d">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Maximum value (<code>maximum</code>):** <span id="dt-f0e67f792d475fc41f0a"><code>8</code></span>

<div id="dt-07364894783cf5f71947">
<p style="white-space: pre-wrap">Physical clock lane index. Position of an entry determines the logical lane number, while the value of an entry indicates physical lane, e.g. for a MIPI CSI-2 bus we could have "clock-lanes = &lt;0&gt;;", which places the clock lane on hardware lane 0. This property is valid for serial busses only (e.g. MIPI CSI-2).</p>
</div>

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

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

**Value type (<code>type</code>):** <span id="dt-35368a54d1af223bd656"><code>&#34;boolean&#34;</code></span>

<div id="dt-8af288ea8f47b43c8864">
<p style="white-space: pre-wrap">Allow MIPI CSI-2 non-continuous clock mode.</p>
</div>

<a id="dt-326efa9b1c91cef29983"></a>

### <code>link&#45;frequencies</code> — not listed as required here

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

<div id="dt-70fe960949a0cddf02e9">
<p style="white-space: pre-wrap">Allowed data bus frequencies. For MIPI CSI-2, for instance, this is the actual frequency of the bus, not bits per clock per lane value. An array of 64-bit unsigned integers.</p>
</div>

<a id="dt-9147767b52d6de110368"></a>

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

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

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

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

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

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

> **Allowed values (<code>enum</code>):** <a id="dt-800f5410f74ae22f9ae9"></a> <span id="dt-61adbb32ea65ba15c444"><code>0</code></span>, <span id="dt-d0720a21c2e28d5b8687"><code>1</code></span>

<div id="dt-55b41b64aac6ddf5d0cc">
<p style="white-space: pre-wrap">An array of polarities of the lanes starting from the clock lane and followed by the data lanes in the same order as in data-lanes. Valid values are 0 (normal) and 1 (inverted). The length of the array should be the combined length of data-lanes and clock-lanes properties. If the lane-polarities property is omitted, the value must be interpreted as 0 (normal). This property is valid for serial busses only.</p>
</div>

<a id="dt-4863c506f4c292ebea54"></a>

### <code>line&#45;orders</code> — not listed as required here

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

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-72a929c40235a58bda2b"><code>8</code></span>

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

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

> **Allowed values (<code>enum</code>):** <a id="dt-176f4281f2be5be20a7f"></a> <span id="dt-b71bfbe1ba390ce8ffad"><code>0</code></span>, <span id="dt-e7f074890c4e0b89af5b"><code>1</code></span>, <span id="dt-0bb9562254105baa29ae"><code>2</code></span>, <span id="dt-daae2a19fbe5e64f179c"><code>3</code></span>, <span id="dt-8bf941d585456ffcd727"><code>4</code></span>, <span id="dt-391ffbb96301c1608de1"><code>5</code></span>

<div id="dt-49f084b6cc4f3703dc04">
<p style="white-space: pre-wrap">An array of line orders of the CSI-2 C-PHY data lanes. The order of the lanes are the same as in data-lanes property. Valid values are 0-5 as defined in the MIPI Discovery and Configuration (DisCo) Specification for Imaging. The length of the array must be the same length as the data-lanes property. If the line-orders property is omitted, the value shall be interpreted as 0 (ABC). This property is valid for CSI-2 C-PHY busses only. See include/dt-bindings/media/video-interfaces.h.</p>
</div>

<a id="dt-7f308dfdaa9387c13d01"></a>

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

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-3c73aea8f56b10464969">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;uint32</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-d57795d6573ee5d67d37>)</span>

**Allowed values (<code>enum</code>):** <a id="dt-b1f6d8010e8e571ff8dc"></a> <span id="dt-0e94b06dce4ed21eb743"><code>0</code></span>, <span id="dt-01889de4ace4b99f30ee"><code>1</code></span>

<div id="dt-8b2c5db14b4fe06d841a">
<p style="white-space: pre-wrap">Whether the clock signal is used as clock (0) or strobe (1). Used with CCP2, for instance.</p>
</div>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>true</code>

Allowed by this rule.

## 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 90:</strong> <span> MIPI CSI-2 C-PHY</span></p>

<p id="dt-comment-2"><strong>Line 91:</strong> <span> MIPI CSI1</span></p>

<p id="dt-comment-3"><strong>Line 92:</strong> <span> CCP2</span></p>

<p id="dt-comment-4"><strong>Line 93:</strong> <span> MIPI CSI-2 D-PHY</span></p>

<p id="dt-comment-5"><strong>Line 94:</strong> <span> Parallel</span></p>

<p id="dt-comment-6"><strong>Line 95:</strong> <span> BT.656</span></p>

<p id="dt-comment-7"><strong>Line 96:</strong> <span> DPI</span></p>

<p id="dt-comment-8"><strong>Line 165:</strong> <span> Assume up to 9 physical lane indices</span></p>

<p id="dt-comment-9"><strong>Line 178:</strong> <span> Assume up to 9 physical lane indices</span></p>

<p id="dt-comment-10"><strong>Line 219:</strong> <span> ABC</span></p>

<p id="dt-comment-11"><strong>Line 220:</strong> <span> ACB</span></p>

<p id="dt-comment-12"><strong>Line 221:</strong> <span> BAC</span></p>

<p id="dt-comment-13"><strong>Line 222:</strong> <span> BCA</span></p>

<p id="dt-comment-14"><strong>Line 223:</strong> <span> CAB</span></p>

<p id="dt-comment-15"><strong>Line 224:</strong> <span> CBA</span></p>

</details>
