# Trusted Platform Module common properties

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

> Device-tree binding reference for Trusted Platform Module common properties.

<!-- 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;tpm&#45;common&#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>

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

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

<a id="dt-5155525ecd924660ec0a"></a>

### <code>&#36;nodename</code> — not listed as required here

**String pattern (<code>pattern</code>):** <span id="dt-0b2111a24a010949ece7"><code>&#34;&#94;tpm&#40;&#64;&#91;0&#45;9a&#45;f&#93;&#43;&#41;&#63;&#36;&#34;</code></span>

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

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

<div id="dt-b3ddec0f69e9f0c0dc40">
<p style="white-space: pre-wrap">indicates command completion</p>
</div>

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

<a id="dt-0c6076cd9d6f109c5cc6"></a>

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

<div id="dt-f7c1a813bb0d2e9dd066">
<p style="white-space: pre-wrap">human readable string describing the device, e.g. "tpm"</p>
</div>

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

### <code>linux&#44;sml&#45;base</code> — not listed as required here

<div id="dt-8f8fe5d7954d06ba87f9">
<p style="white-space: pre-wrap">base address of reserved memory allocated for firmware event log</p>
</div>

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

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

### <code>linux&#44;sml&#45;size</code> — not listed as required here

<div id="dt-6d0cbe844f3ce8fac9f1">
<p style="white-space: pre-wrap">size of reserved memory allocated for firmware event log</p>
</div>

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

### <code>memory&#45;region</code> — not listed as required here

<div id="dt-b794f979757a4fadd5eb">
<p style="white-space: pre-wrap">reserved memory allocated for firmware event log</p>
</div>

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

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

### <code>powered&#45;while&#45;suspended</code> — not listed as required here

<div id="dt-0bd4924e028534ccb04d">
<p style="white-space: pre-wrap">present when the TPM is left powered on between suspend and resume (makes the suspend/resume callbacks do nothing)</p>
</div>

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

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

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

<div id="dt-d372137de588ae9d23ee">
<p style="white-space: pre-wrap">Reset controller to reset the TPM</p>
</div>

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

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

### <code>reset&#45;gpios</code> — not listed as required here

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">Output GPIO pin to reset the TPM</p>
</div>

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

**Requirements triggered by another property (<code>dependentRequired</code>):** <a id="dt-e3a4857bf233f030e290"></a> { <code>linux&#44;sml&#45;base</code>: <a id="dt-3b2b1b06201400ee6d8d"></a> <span id="dt-367c14f5fa34494d39f7"><code>&#34;linux&#44;sml&#45;size&#34;</code></span>, <code>linux&#44;sml&#45;size</code>: <a id="dt-854bd62771a1d2f7a028"></a> <span id="dt-34f40520ec8cec18426b"><code>&#34;linux&#44;sml&#45;base&#34;</code></span> }

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

## Rules triggered by another property (<code>dependentSchemas</code>)

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

### <code>memory&#45;region</code> — applies when this property is present

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

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

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

**<code>linux&#44;sml&#45;base</code> — not listed as required here**

<code>false</code> — Not permitted by this property rule.

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

### <code>linux&#44;sml&#45;base</code> — applies when this property is present

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

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

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

**<code>memory&#45;region</code> — not listed as required here**

<code>false</code> — Not permitted by this property rule.

<a id="dt-355162cb6fbd9eb3cd52"></a>

### <code>resets</code> — applies when this property is present

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

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

<a id="dt-1846d81f8227602ec38f"></a>

**<code>reset&#45;gpios</code> — not listed as required here**

<code>false</code> — Not permitted by this property rule.

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

### <code>reset&#45;gpios</code> — applies when this property is present

<a id="dt-5823ec64f86989f29c18"></a>

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

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

**<code>resets</code> — not listed as required here**

<code>false</code> — Not permitted by this property rule.

<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>)
>
> > <a id="dt-97f47e9dc804c839f86d"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-bbadeeb73dfaefabae79"></a>
> >
> > **<code>compatible</code> — not listed as required here**
> >
> > <a id="dt-ebe43a424f4497a78746"></a>
> >
> > **Rule for matching array elements (<code>contains</code>)**
> >
> > > **String pattern (<code>pattern</code>):** <span id="dt-a6ce905172723571a34a"><code>&#34;&#94;st&#44;st33zp24&#34;</code></span>
>
> <a id="dt-1ba25143802b75b74702"></a>
>
> #### When the condition matches (<code>then</code>)
>
> > <a id="dt-b212c2ef78c22fab2e20"></a>
> >
> > **Properties and child nodes (<code>properties</code>)**
> >
> > <a id="dt-c9176edce469e5cc9f68"></a>
> >
> > **<code>lpcpd&#45;gpios</code> — not listed as required here**
> >
> > <div id="dt-f76c87312937a5731cdb">
> > <p style="white-space: pre-wrap">Output GPIO pin used for ST33ZP24 power management of D1/D2 state. If set, power must be present when the platform is going into sleep/hibernate mode.</p>
> > </div>
> >
> > **Maximum number of items (<code>maxItems</code>):** <span id="dt-ea0df39bfda2e1adf289"><code>1</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>true</code>

Allowed by this rule.

## 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 51:</strong> <span> must always have both linux,sml-base and linux,sml-size</span></p>

<p id="dt-comment-2"><strong>Line 56:</strong> <span> must only have either memory-region or linux,sml-base</span></p>

<p id="dt-comment-3"><strong>Line 57:</strong> <span> as well as either resets or reset-gpios</span></p>

</details>
