Tpm bindings
Single-page view · as markdown
Google Security Chip H1 (running Cr50 firmware)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Tpm bindings
Schema identifier ($id): "http://devicetree.org/schemas/tpm/google,cr50.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrey Pronin <apronin@chromium.org>"
Google has designed a family of security chips called "Titan". One member is the H1 built into Chromebooks and running Cr50 firmware: https://www.osfc.io/2018/talks/google-secure-microcontroller-and-ccd-closed-case-debugging/
The chip provides several functions, including TPM 2.0 like functionality. It communicates over SPI or I²C using the FIFO protocol described in the TCG PC Client Platform TPM Profile Specification for TPM 2.0 (PTP), sec 6: https://trustedcomputinggroup.org/resource/pc-client-platform-tpm-profile-ptp-specification/
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "google,cr50"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):tpm-common.yaml#
At least one of these rules must match (anyOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Shared schema rule (
$ref):tcg,tpm-tis-i2c.yaml#/properties/reg
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
tpm@0 {
reg = <0>;
compatible = "google,cr50";
spi-max-frequency = <800000>;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
tpm@50 {
compatible = "google,cr50";
reg = <0x50>;
interrupts-extended = <&pio 88 IRQ_TYPE_EDGE_FALLING>;
pinctrl-names = "default";
pinctrl-0 = <&cr50_int>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
IBM Virtual Trusted Platform Module (vTPM)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Tpm bindings
Schema identifier ($id): "http://devicetree.org/schemas/tpm/ibm,vtpm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nayna Jain <nayna@linux.ibm.com>"
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.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "IBM,vtpm", "IBM,vtpm20"
device_type — required here #
type of virtual device
Allowed values (enum): "IBM,vtpm", "IBM,vtpm20"
reg — required here #
Maximum number of items (maxItems): 1
ibm,#dma-address-cells — required here #
number of cells that are used to encode the physical address field of dma-window properties
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
ibm,#dma-size-cells — required here #
number of cells that are used to encode the size field of dma-window properties
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
ibm,my-dma-window — required here #
DMA window associated with this virtual I/O Adapter
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 5
Maximum number of items (maxItems): 5
ibm,my-drc-index — required here #
integer index for the connector between the device and its parent; present only if Dynamic Reconfiguration (DR) Connector is enabled
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
ibm,loc-code — required here #
unique and persistent location code associated with this virtual I/O Adapter
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Required in this object (required): "compatible", "device_type", "reg", "interrupts", "ibm,#dma-address-cells", "ibm,#dma-size-cells", "ibm,my-dma-window", "ibm,my-drc-index", "ibm,loc-code", "linux,sml-base", "linux,sml-size"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):tpm-common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
soc {
#address-cells = <1>;
#size-cells = <0>;
tpm@30000003 {
compatible = "IBM,vtpm";
device_type = "IBM,vtpm";
reg = <0x30000003>;
interrupts = <0xa0003 0x0>;
ibm,#dma-address-cells = <0x2>;
ibm,#dma-size-cells = <0x2>;
ibm,my-dma-window = <0x10000003 0x0 0x0 0x0 0x10000000>;
ibm,my-drc-index = <0x30000003>;
ibm,loc-code = "U8286.41A.10082DV-V3-C3";
linux,sml-base = <0xc60e 0x0>;
linux,sml-size = <0xbce10200>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Microsoft firmware-based Trusted Platform Module (fTPM)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Tpm bindings
Schema identifier ($id): "http://devicetree.org/schemas/tpm/microsoft,ftpm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thirupathaiah Annapureddy <thiruan@microsoft.com>", "Sasha Levin <sashal@kernel.org>"
Commodity CPU architectures, such as ARM and Intel CPUs, have started to offer trusted computing features in their CPUs aimed at displacing dedicated trusted hardware. Unfortunately, these CPU architectures raise serious challenges to building trusted systems because they omit providing secure resources outside the CPU perimeter.
Microsoft's firmware-based TPM 2.0 (fTPM) leverages ARM TrustZone to overcome these challenges and provide software with security guarantees similar to those of dedicated trusted hardware.
https://www.microsoft.com/en-us/research/publication/ftpm-software-implementation-tpm-chip/ https://github.com/Microsoft/ms-tpm-20-ref/tree/main/Samples/ARM32-FirmwareTPM
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "microsoft,ftpm"
Required in this object (required): "compatible", "linux,sml-base", "linux,sml-size"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):tpm-common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
tpm {
compatible = "microsoft,ftpm";
linux,sml-base = <0x0 0xc0000000>;
linux,sml-size = <0x10000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
I²C-attached Trusted Platform Module conforming to TCG TIS specification
Peios Kernel / Hardware and drivers / Device-tree binding reference / Tpm bindings
Schema identifier ($id): "http://devicetree.org/schemas/tpm/tcg,tpm-tis-i2c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lukas Wunner <lukas@wunner.de>"
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/
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/
Recent TPM 2.0 chips conform to this generic interface, others use a vendor-specific I²C interface.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Generic TPM 2.0 chips conforming to TCG PTP interface
Array item rules (
items)Item 1
Allowed values (
enum):"infineon,slb9673","nuvoton,npct75x","st,st33ktpm2xi2c","st,st33tphf2ei2c"Item 2
Exact value (
const):"tcg,tpm-tis-i2c"
Rule 2
TPM 1.2 and 2.0 chips with vendor-specific I²C interface
Array item rules (
items)Item 1
Allowed values (
enum):"atmel,at97sc3204t","infineon,slb9635tt","infineon,slb9645tt","infineon,tpm_i2c_infineon","nuvoton,npct501","nuvoton,npct601","st,st33zp24-i2c","winbond,wpct301"
reg — required here #
address of TPM on the I²C bus
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):tpm-common.yaml#
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
tpm@57 {
label = "tpm";
compatible = "nuvoton,npct601";
reg = <0x57>;
linux,sml-base = <0x7f 0xfd450000>;
linux,sml-size = <0x10000>;
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
tpm@13 {
reg = <0x13>;
compatible = "st,st33zp24-i2c";
interrupt-parent = <&gpio5>;
interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
lpcpd-gpios = <&gpio5 15 GPIO_ACTIVE_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 42: TPM 1.2
Line 43: TPM 1.2 (maximum 100 kHz)
Line 44: TPM 1.2 (maximum 400 kHz)
Line 45: TPM 1.2
Line 46: TPM 1.2
Line 47: TPM 2.0
Line 48: TPM 2.0
Line 49: TPM 1.2
MMIO-accessed Trusted Platform Module conforming to TCG TIS specification
Peios Kernel / Hardware and drivers / Device-tree binding reference / Tpm bindings
Schema identifier ($id): "http://devicetree.org/schemas/tpm/tcg,tpm-tis-mmio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lukas Wunner <lukas@wunner.de>"
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 LPC (via MMIO). 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/
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"at97sc3201","atmel,at97sc3204","socionext,synquacer-tpm-mmio"
Item 2
Exact value (
const):"tcg,tpm-tis-mmio"
reg — required here #
location and length of the MMIO registers, length should be at least 0x5000 bytes
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):tpm-common.yaml#
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
tpm@90000 {
compatible = "atmel,at97sc3204", "tcg,tpm-tis-mmio";
reg = <0x90000 0x5000>;
interrupt-parent = <&EIC0>;
interrupts = <1 2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
SPI-attached Trusted Platform Module conforming to TCG TIS specification
Peios Kernel / Hardware and drivers / Device-tree binding reference / Tpm bindings
Schema identifier ($id): "http://devicetree.org/schemas/tpm/tcg,tpm_tis-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lukas Wunner <lukas@wunner.de>"
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 SPI. 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/
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"atmel,attpm20p","infineon,slb9670","st,st33htpm-spi","st,st33zp24-spi"
Item 2
Exact value (
const):"tcg,tpm_tis-spi"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):tpm-common.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"st,st33zp24-spi"When the condition matches (
then) #Properties and child nodes (
properties)
spi-max-frequency— not listed as required hereMaximum value (
maximum):10000000
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
tpm@0 {
reg = <0>;
compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
spi-max-frequency = <10000000>;
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
tpm@0 {
reg = <0>;
compatible = "st,st33zp24-spi", "tcg,tpm_tis-spi";
spi-max-frequency = <10000000>;
interrupt-parent = <&gpio5>;
interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
lpcpd-gpios = <&gpio5 15 GPIO_ACTIVE_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Trusted Platform Module common properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Tpm bindings
Schema identifier ($id): "http://devicetree.org/schemas/tpm/tpm-common.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lukas Wunner <lukas@wunner.de>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^tpm(@[0-9a-f]+)?$"
interrupts — not listed as required here #
indicates command completion
Maximum number of items (maxItems): 1
label — not listed as required here #
human readable string describing the device, e.g. "tpm"
linux,sml-base — not listed as required here #
base address of reserved memory allocated for firmware event log
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint64
linux,sml-size — not listed as required here #
size of reserved memory allocated for firmware event log
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
memory-region — not listed as required here #
reserved memory allocated for firmware event log
Maximum number of items (maxItems): 1
powered-while-suspended — not listed as required here #
present when the TPM is left powered on between suspend and resume (makes the suspend/resume callbacks do nothing)
Value type (type): "boolean"
resets — not listed as required here #
Reset controller to reset the TPM
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Output GPIO pin to reset the TPM
Maximum number of items (maxItems): 1
Requirements triggered by another property (dependentRequired): { linux,sml-base: "linux,sml-size", linux,sml-size: "linux,sml-base" }
Rules triggered by another property (dependentSchemas) #
memory-region — applies when this property is present #
Properties and child nodes (properties) #
linux,sml-base — not listed as required here
false — Not permitted by this property rule.
linux,sml-base — applies when this property is present #
Properties and child nodes (properties) #
memory-region — not listed as required here
false — Not permitted by this property rule.
resets — applies when this property is present #
Properties and child nodes (properties) #
reset-gpios — not listed as required here
false — Not permitted by this property rule.
reset-gpios — applies when this property is present #
Properties and child nodes (properties) #
resets — not listed as required here
false — Not permitted by this property rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)String pattern (
pattern):"^st,st33zp24"When the condition matches (
then) #Properties and child nodes (
properties)
lpcpd-gpios— not listed as required hereOutput 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.
Maximum number of items (
maxItems):1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 51: must always have both linux,sml-base and linux,sml-size
Line 56: must only have either memory-region or linux,sml-base
Line 57: as well as either resets or reset-gpios