I²C-attached Trusted Platform Module conforming to TCG TIS specification
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