# I²C-attached Trusted Platform Module conforming to TCG TIS specification

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

> Device-tree binding reference for I²C-attached Trusted Platform Module conforming to TCG TIS specification.

<!-- 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;tcg&#44;tpm&#45;tis&#45;i2c&#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;Lukas Wunner &#60;lukas&#64;wunner&#46;de&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The Trusted Computing Group (TCG) has defined a multi-vendor standard
for accessing a TPM chip.  It can be transported over various buses,
one of them being I²C.  The standard is named:
TCG PC Client Specific TPM Interface Specification (TIS)
https://trustedcomputinggroup.org/resource/pc-client-work-group-pc-client-specific-tpm-interface-specification-tis/</p>
<p style="white-space: pre-wrap">The I²C interface was not originally part of the standard, but added
in 2017 with a separate document:
TCG PC Client Platform TPM Profile Specification for TPM 2.0 (PTP)
https://trustedcomputinggroup.org/resource/pc-client-platform-tpm-profile-ptp-specification/</p>
<p style="white-space: pre-wrap">Recent TPM 2.0 chips conform to this generic interface, others use a
vendor-specific I²C interface.</p>
</div>

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

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

<a id="dt-5c1d81699dcbe840de83"></a>

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

<a id="dt-39566f01414e34c67b85"></a>

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

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

**Rule 1**

> <div id="dt-ab1c3e7063bd95dc962e">
> <p style="white-space: pre-wrap">Generic TPM 2.0 chips conforming to TCG PTP interface</p>
> </div>
>
> <a id="dt-07409cc9508405f48983"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-822691c82c9797f7b1f9"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-3b212051dcd0fc641cd8"></a> <span id="dt-bd6e6716d05ec45653db"><code>&#34;infineon&#44;slb9673&#34;</code></span>, <span id="dt-3e7fb897881b12f43f81"><code>&#34;nuvoton&#44;npct75x&#34;</code></span>, <span id="dt-b7d19de74fd35364d49f"><code>&#34;st&#44;st33ktpm2xi2c&#34;</code></span>, <span id="dt-6cbdeefc52e7132bc62c"><code>&#34;st&#44;st33tphf2ei2c&#34;</code></span>
>
> <a id="dt-bc83d1191bdc72da8559"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-1da74b37131fdcec1073"><code>&#34;tcg&#44;tpm&#45;tis&#45;i2c&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <div id="dt-4b64ce44adfe069638c4">
> <p style="white-space: pre-wrap">TPM 1.2 and 2.0 chips with vendor-specific I²C interface</p>
> </div>
>
> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Allowed values (<code>enum</code>):** <a id="dt-aa1230b5a2b80f9fb387"></a> <span id="dt-49b534c9c8948cfc8034"><code>&#34;atmel&#44;at97sc3204t&#34;</code></span>, <span id="dt-93451931f534c9a92fb4"><code>&#34;infineon&#44;slb9635tt&#34;</code></span>, <span id="dt-bdca084879537277097b"><code>&#34;infineon&#44;slb9645tt&#34;</code></span>, <span id="dt-922f7901d25b667972ac"><code>&#34;infineon&#44;tpm&#95;i2c&#95;infineon&#34;</code></span>, <span id="dt-eb61ad381053476dae55"><code>&#34;nuvoton&#44;npct501&#34;</code></span>, <span id="dt-05b29c21ca38ad337d53"><code>&#34;nuvoton&#44;npct601&#34;</code></span>, <span id="dt-93c2763ada782db7e26c"><code>&#34;st&#44;st33zp24&#45;i2c&#34;</code></span>, <span id="dt-36a81d983bbaf2a6b89d"><code>&#34;winbond&#44;wpct301&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

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

<div id="dt-571d87f60678ead6c5ff">
<p style="white-space: pre-wrap">address of TPM on the I²C bus</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>tpm&#45;common&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-tpm/tpm-common.md#dt-root>)</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>

<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">i2c {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    tpm@57 {
        label = "tpm";
        compatible = "nuvoton,npct601";
        reg = &lt;0x57&gt;;
        linux,sml-base = &lt;0x7f 0xfd450000&gt;;
        linux,sml-size = &lt;0x10000&gt;;
    };
};
</code></pre>

<pre id="dt-bae0d43ea48e35208b4a"><code class="language-dts">#include &lt;dt-bindings/gpio/gpio.h&gt;
#include &lt;dt-bindings/interrupt-controller/irq.h&gt;
i2c {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    tpm@13 {
        reg = &lt;0x13&gt;;
        compatible = "st,st33zp24-i2c";
        interrupt-parent = &lt;&amp;gpio5&gt;;
        interrupts = &lt;7 IRQ_TYPE_LEVEL_HIGH&gt;;
        lpcpd-gpios = &lt;&amp;gpio5 15 GPIO_ACTIVE_HIGH&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>

<p id="dt-comment-1"><strong>Line 42:</strong> <span> TPM 1.2</span></p>

<p id="dt-comment-2"><strong>Line 43:</strong> <span> TPM 1.2 (maximum 100 kHz)</span></p>

<p id="dt-comment-3"><strong>Line 44:</strong> <span> TPM 1.2 (maximum 400 kHz)</span></p>

<p id="dt-comment-4"><strong>Line 45:</strong> <span> TPM 1.2</span></p>

<p id="dt-comment-5"><strong>Line 46:</strong> <span> TPM 1.2</span></p>

<p id="dt-comment-6"><strong>Line 47:</strong> <span> TPM 2.0</span></p>

<p id="dt-comment-7"><strong>Line 48:</strong> <span> TPM 2.0</span></p>

<p id="dt-comment-8"><strong>Line 49:</strong> <span> TPM 1.2</span></p>

</details>
