# Qualcomm TBU (Translation Buffer Unit)

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

> Device-tree binding reference for Qualcomm TBU (Translation Buffer Unit).

<!-- 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;iommu&#47;qcom&#44;tbu&#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;Georgi Djakov &#60;quic&#95;c&#95;gdjako&#64;quicinc&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Qualcomm SMMU500 implementation consists of TCU and TBU. The TBU contains a Translation Lookaside Buffer (TLB) that caches page tables. TBUs provides debug features to trace and trigger debug transactions. There are multiple TBU instances with each client core.</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;qcom&#44;sc7280&#45;tbu&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;qcom&#44;sdm845&#45;tbu&#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> — not listed as required here

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

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

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

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

### <code>qcom&#44;stream&#45;id&#45;range</code> — required here

<div id="dt-a4825b95e6ad51088694">
<p style="white-space: pre-wrap">Phandle of a SMMU device and Stream ID range (address and size) that
is assigned by the TBU</p>
</div>

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

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

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

**Item 1**

> <a id="dt-5ac190c2d3245979c890"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-98931659253dc658bb8a"></a>
>
> **Item 1**
>
> > <div id="dt-7adce919d6491f17dd97">
> > <p style="white-space: pre-wrap">phandle of a smmu node</p>
> > </div>
>
> <a id="dt-c77496fd1f4ab175b073"></a>
>
> **Item 2**
>
> > <div id="dt-b879b65ed3c5e06374f0">
> > <p style="white-space: pre-wrap">stream id base address</p>
> > </div>
>
> <a id="dt-caf79543446fc2ca869b"></a>
>
> **Item 3**
>
> > <div id="dt-812d5d9202cff6cd2d80">
> > <p style="white-space: pre-wrap">stream id size</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;qcom&#44;stream&#45;id&#45;range&#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/qcom,gcc-sdm845.h&gt;
#include &lt;dt-bindings/interconnect/qcom,icc.h&gt;
#include &lt;dt-bindings/interconnect/qcom,sdm845.h&gt;

tbu@150e1000 {
    compatible = "qcom,sdm845-tbu";
    reg = &lt;0x150e1000 0x1000&gt;;
    clocks = &lt;&amp;gcc GCC_AGGRE_NOC_PCIE_TBU_CLK&gt;;
    interconnects = &lt;&amp;system_noc MASTER_GNOC_SNOC QCOM_ICC_TAG_ACTIVE_ONLY
                     &amp;config_noc SLAVE_IMEM_CFG QCOM_ICC_TAG_ACTIVE_ONLY&gt;;
    power-domains = &lt;&amp;gcc HLOS1_VOTE_AGGRE_NOC_MMU_PCIE_TBU_GDSC&gt;;
    qcom,stream-id-range = &lt;&amp;apps_smmu 0x1c00 0x400&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>
