# Samsung S5P/Exynos SoC Fully Integrated Mobile Camera

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

> Device-tree binding reference for Samsung S5P/Exynos SoC Fully Integrated Mobile Camera.

<!-- 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;samsung&#44;exynos4210&#45;fimc&#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;Krzysztof Kozlowski &#60;krzk&#64;kernel&#46;org&#62;&#34;</code></span>, <span id="dt-0f999bb9185dbf6b58d8"><code>&#34;Sylwester Nawrocki &#60;s&#46;nawrocki&#64;samsung&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Each FIMC device should have an alias in the aliases node, in the form of fimc&lt;n&gt;, where &lt;n&gt; is an integer specifying the IP block instance.</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;samsung&#44;exynos4210&#45;fimc&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;samsung&#44;exynos4212&#45;fimc&#34;</code></span>, <span id="dt-88ff8a31b3bd20d1ddec"><code>&#34;samsung&#44;s5pv210&#45;fimc&#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

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

<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;fimc&#34;</code></span>

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

**Item 2**

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

<a id="dt-0298421e73bc073162cc"></a>

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

<div id="dt-a8bced0e066c3e53744b">
<p style="white-space: pre-wrap">Maximum FIMC local clock (LCLK) frequency.</p>
</div>

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

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

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

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

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

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

<a id="dt-030bda573e8c53177f1a"></a>

### <code>power&#45;domains</code> — not listed as required here

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

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

### <code>samsung&#44;cam&#45;if</code> — not listed as required here

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

<div id="dt-c5bf6724297a78b65ac9">
<p style="white-space: pre-wrap">The FIMC IP block includes the camera input interface.</p>
</div>

<a id="dt-29a6e6b96965abe80617"></a>

### <code>samsung&#44;isp&#45;wb</code> — not listed as required here

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

<div id="dt-b52f11b933748bdc3a84">
<p style="white-space: pre-wrap">The FIMC IP block has the ISP writeback input.</p>
</div>

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

### <code>samsung&#44;lcd&#45;wb</code> — not listed as required here

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

<div id="dt-0b66f111bfb62866cde8">
<p style="white-space: pre-wrap">The FIMC IP block has the LCD writeback input.</p>
</div>

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

### <code>samsung&#44;mainscaler&#45;ext</code> — not listed as required here

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

<div id="dt-4eacf2caf9f633f12134">
<p style="white-space: pre-wrap">FIMC IP supports extended image size and has CIEXTEN register.</p>
</div>

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

### <code>samsung&#44;min&#45;pix&#45;alignment</code> — not listed as required here

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

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

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

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

**Item 1**

> <div id="dt-c6484b1c39bc5e85a1e1">
> <p style="white-space: pre-wrap">Minimum supported image height alignment.</p>
> </div>

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

**Item 2**

> <div id="dt-e08508f9fe648165a9a3">
> <p style="white-space: pre-wrap">Horizontal image offset.</p>
> </div>

<div id="dt-7a9494be511e2f3789ff">
<p style="white-space: pre-wrap">The values are in pixels and default is &lt;2 1&gt;.</p>
</div>

<a id="dt-82bf4edb31e17359a4a1"></a>

### <code>samsung&#44;min&#45;pix&#45;sizes</code> — not listed as required here

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

**Maximum number of items (<code>maxItems</code>):** <span id="dt-63504d335cab3c1223c0"><code>2</code></span>

<div id="dt-2b7db0ab01ee0c3edd9b">
<p style="white-space: pre-wrap">An array specifying minimum image size in pixels at the FIMC input and
output DMA, in the first and second cell respectively.  Default value
is &lt;16 16&gt;.</p>
</div>

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

### <code>samsung&#44;pix&#45;limits</code> — required here

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

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

<div id="dt-7f6ac5af23d01bf75545">
<p style="white-space: pre-wrap">An array of maximum supported image sizes in pixels, for details refer to
Table 2-1 in the S5PV210 SoC User Manual. The meaning of each cell is as
follows:
 0 - scaler input horizontal size
 1 - input horizontal size for the scaler bypassed
 2 - REAL_WIDTH without input rotation
 3 - REAL_HEIGHT with input rotation</p>
</div>

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

### <code>samsung&#44;rotators</code> — not listed as required here

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

**Default value (<code>default</code>):** <span id="dt-233f16212b948e1db213"><code>17</code></span>

<div id="dt-e8f7848133a73b373296">
<p style="white-space: pre-wrap">A bitmask specifying whether this IP has the input and the output
rotator. Bits 4 and 0 correspond to input and output rotator
respectively. If a rotator is present its corresponding bit should be
set.</p>
</div>

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

### <code>samsung&#44;sysreg</code> — not listed as required here

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

<div id="dt-95d595dfde2872c5cad5">
<p style="white-space: pre-wrap">System Registers (SYSREG) node.</p>
</div>

**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;samsung&#44;pix&#45;limits&#34;</code></span>

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

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

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

### Rule 1

> <a id="dt-3bbb54dfa1f05dfb4d25"></a>
>
> #### Condition (<code>if</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-8562362a36ebdbb1ff2a"></a> <span id="dt-31d648f7705dc578c2d6"><code>&#34;samsung&#44;isp&#45;wb&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > **Required in this object (<code>required</code>):** <a id="dt-b0b2f2243ff9a854f151"></a> <span id="dt-4e9ead0e861b67997dec"><code>&#34;samsung&#44;sysreg&#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/exynos4.h&gt;
#include &lt;dt-bindings/interrupt-controller/arm-gic.h&gt;

fimc@11800000 {
    compatible = "samsung,exynos4212-fimc";
    reg = &lt;0x11800000 0x1000&gt;;
    clocks = &lt;&amp;clock CLK_FIMC0&gt;,
             &lt;&amp;clock CLK_SCLK_FIMC0&gt;;
    clock-names = "fimc", "sclk_fimc";
    interrupts = &lt;GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH&gt;;
    iommus = &lt;&amp;sysmmu_fimc0&gt;;
    power-domains = &lt;&amp;pd_cam&gt;;
    samsung,sysreg = &lt;&amp;sys_reg&gt;;

    samsung,pix-limits = &lt;4224 8192 1920 4224&gt;;
    samsung,mainscaler-ext;
    samsung,isp-wb;
    samsung,cam-if;

    assigned-clocks = &lt;&amp;clock CLK_MOUT_FIMC0&gt;,
                      &lt;&amp;clock CLK_SCLK_FIMC0&gt;;
    assigned-clock-parents = &lt;&amp;clock CLK_MOUT_MPLL_USER_T&gt;;
    assigned-clock-rates = &lt;0&gt;, &lt;176000000&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>
