# IBM Virtual Trusted Platform Module (vTPM)

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

> Device-tree binding reference for IBM Virtual Trusted Platform Module (vTPM).

<!-- 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;tpm&#47;ibm&#44;vtpm&#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;Nayna Jain &#60;nayna&#64;linux&#46;ibm&#46;com&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">Virtual TPM is used on IBM POWER7+ and POWER8 systems running POWERVM.
It is supported through the adjunct partition with firmware release 740
or higher.  With vTPM support, each lpar is able to have its own vTPM
without the physical TPM hardware.  The TPM functionality is provided by
communicating with the vTPM adjunct partition through Hypervisor calls
(Hcalls) and Command/Response Queue (CRQ) commands.</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;IBM&#44;vtpm&#34;</code></span>, <span id="dt-0d17ba1dd2e75413f7d4"><code>&#34;IBM&#44;vtpm20&#34;</code></span>

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

### <code>device&#95;type</code> — required here

<div id="dt-8853147a3ee168d70756">
<p style="white-space: pre-wrap">type of virtual device</p>
</div>

**Allowed values (<code>enum</code>):** <a id="dt-861d5683aba8a44f45c8"></a> <span id="dt-4b20d97a0e43d38ad12f"><code>&#34;IBM&#44;vtpm&#34;</code></span>, <span id="dt-ef00e7294d16adf417e3"><code>&#34;IBM&#44;vtpm20&#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-dfc264917f1834708271"></a>

### <code>ibm&#44;&#35;dma&#45;address&#45;cells</code> — required here

<div id="dt-50ecde6556366bc2431d">
<p style="white-space: pre-wrap">number of cells that are used to encode the physical address field of dma-window properties</p>
</div>

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

### <code>ibm&#44;&#35;dma&#45;size&#45;cells</code> — required here

<div id="dt-09f3f17aa428f1315dbc">
<p style="white-space: pre-wrap">number of cells that are used to encode the size field of dma-window properties</p>
</div>

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

### <code>ibm&#44;my&#45;dma&#45;window</code> — required here

<div id="dt-5771c925ebf402c96f0e">
<p style="white-space: pre-wrap">DMA window associated with this virtual I/O Adapter</p>
</div>

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

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

<a id="dt-52fa12f27f490f9d3882"></a>

### <code>ibm&#44;my&#45;drc&#45;index</code> — required here

<div id="dt-5b2e5eed18fead85baf5">
<p style="white-space: pre-wrap">integer index for the connector between the device and its parent; present only if Dynamic Reconfiguration (DR) Connector is enabled</p>
</div>

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

<a id="dt-96f985924ea2f473a270"></a>

### <code>ibm&#44;loc&#45;code</code> — required here

<div id="dt-d4e9e5d8b8409b15360f">
<p style="white-space: pre-wrap">unique and persistent location code associated with this virtual I/O Adapter</p>
</div>

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-e6510a900bcd52b11504">[<code>&#47;schemas&#47;types&#46;yaml&#35;&#47;definitions&#47;string</code>](</kernel/hardware/devicetree-bindings/dt-shared/types.md#dt-2c695d502852c3a1e1b7>)</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;device&#95;type&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;reg&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;interrupts&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;ibm&#44;&#35;dma&#45;address&#45;cells&#34;</code></span>, <span id="dt-c127a87237cb22622910"><code>&#34;ibm&#44;&#35;dma&#45;size&#45;cells&#34;</code></span>, <span id="dt-a5d07fc4223c155670a0"><code>&#34;ibm&#44;my&#45;dma&#45;window&#34;</code></span>, <span id="dt-4503833a9b225761c43a"><code>&#34;ibm&#44;my&#45;drc&#45;index&#34;</code></span>, <span id="dt-727c9b818c335e022c0e"><code>&#34;ibm&#44;loc&#45;code&#34;</code></span>, <span id="dt-1a79af41bdb7f37c802f"><code>&#34;linux&#44;sml&#45;base&#34;</code></span>, <span id="dt-66579c0187208772d10e"><code>&#34;linux&#44;sml&#45;size&#34;</code></span>

<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>tpm&#45;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-tpm/tpm-common.md#dt-root>)</span>

<a id="dt-63ab525a9812ac23c446"></a>

## Properties not evaluated by applicable rules (<code>unevaluatedProperties</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">soc {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    tpm@30000003 {
        compatible = "IBM,vtpm";
        device_type = "IBM,vtpm";
        reg = &lt;0x30000003&gt;;
        interrupts = &lt;0xa0003 0x0&gt;;
        ibm,#dma-address-cells = &lt;0x2&gt;;
        ibm,#dma-size-cells = &lt;0x2&gt;;
        ibm,my-dma-window = &lt;0x10000003 0x0 0x0 0x0 0x10000000&gt;;
        ibm,my-drc-index = &lt;0x30000003&gt;;
        ibm,loc-code = "U8286.41A.10082DV-V3-C3";
        linux,sml-base = &lt;0xc60e 0x0&gt;;
        linux,sml-size = &lt;0xbce10200&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>
