# Samsung Exynos IOMMU H/W, System MMU (System Memory Management Unit)

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

> Device-tree binding reference for Samsung Exynos IOMMU H/W, System MMU (System Memory Management Unit).

<!-- SPDX-License-Identifier: GPL-2.0 -->


<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;iommu&#47;samsung&#44;sysmmu&#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;Marek Szyprowski &#60;m&#46;szyprowski&#64;samsung&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Samsung's Exynos architecture contains System MMUs that enables scattered
physical memory chunks visible as a contiguous region to DMA-capable peripheral
devices like MFC, FIMC, FIMD, GScaler, FIMC-IS and so forth.</p>
<p style="white-space: pre-wrap">System MMU is an IOMMU and supports identical translation table format to
ARMv7 translation tables with minimum set of page properties including access
permissions, shareability and security protection. In addition, System MMU has
another capabilities like L2 TLB or block-fetch buffers to minimize translation
latency.</p>
<p style="white-space: pre-wrap">System MMUs are in many to one relation with peripheral devices, i.e. single
peripheral device might have multiple System MMUs (usually one for each bus
master), but one System MMU can handle transactions from only one peripheral
device. The relation between a System MMU and the peripheral device needs to be
defined in device node of the peripheral device.</p>
<pre><code>MFC in all Exynos SoCs and FIMD, M2M Scalers and G2D in Exynos5420 has 2 System
MMUs.
* MFC has one System MMU on its left and right bus.
* FIMD in Exynos5420 has one System MMU for window 0 and 4, the other system MMU
  for window 1, 2 and 3.
* M2M Scalers and G2D in Exynos5420 has one System MMU on the read channel and
  the other System MMU on the write channel.</code></pre>
<p style="white-space: pre-wrap">For information on assigning System MMU controller to its peripheral devices,
see generic IOMMU bindings.</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;samsung&#44;exynos&#45;sysmmu&#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

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

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

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

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

**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-c94b78d6f12561baf6a0"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

<a id="dt-661af0885579a69ba337"></a>

**Rule 1**

> <a id="dt-027418c760db9276fcba"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-bf543c95e0c50d9cb8f7"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-22588558d3128a1ce650"><code>&#34;sysmmu&#34;</code></span>

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

**Rule 2**

> <a id="dt-20fc6bfaeee95ba35790"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-f468ad1eba090a3de488"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-8c8dcde100c56b536a91"><code>&#34;sysmmu&#34;</code></span>
>
> <a id="dt-b2245a46cbe503285ae3"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1e527555b977de836626"><code>&#34;master&#34;</code></span>

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

**Rule 3**

> <a id="dt-bdcf7746c4c74f18256e"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-23df87d96ac6d9cb502e"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-9c758e9593fabdf5635d"><code>&#34;aclk&#34;</code></span>
>
> <a id="dt-2869e9860c9b81bafcac"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-8902fa4b002c629652e2"><code>&#34;pclk&#34;</code></span>

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

### <code>&#35;iommu&#45;cells</code> — required here

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

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

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

<div id="dt-33c740e5969dba94b4e6">
<p style="white-space: pre-wrap">Required if the System MMU is needed to gate its power.
Please refer to the following document:
Documentation/devicetree/bindings/power/pd-samsung.yaml</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-74e4e6f1d3f2a860fdb9"><code>1</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;clocks&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;clock&#45;names&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;&#35;iommu&#45;cells&#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/exynos5250.h&gt;

sysmmu_gsc0: iommu@13e80000 {
  compatible = "samsung,exynos-sysmmu";
  reg = &lt;0x13E80000 0x1000&gt;;
  interrupt-parent = &lt;&amp;combiner&gt;;
  interrupts = &lt;2 0&gt;;
  clock-names = "sysmmu", "master";
  clocks = &lt;&amp;clock CLK_SMMU_GSCL0&gt;,
           &lt;&amp;clock CLK_GSCL0&gt;;
  power-domains = &lt;&amp;pd_gsc&gt;;
  #iommu-cells = &lt;0&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</span></p>

</details>
