Application
User space
Hardware
Discovery kit with STM32MP1/
Raspberry Pi
®
STPM4RasPI
Drivers
Linux
®
kernel
+ STSW-TPM-I2C-DRV
tpm2-pkcs11/tpm2-openssl
Tpm2-tss
AWS
®
IoT
ST utility
tool
Tpm2-
tools
Features
Patch for native Linux
®
kernels:
Intended for use with STMicroelectronics TPM devices with an I²C interface
(ST33TPHF20I2C, ST33TPHF2XI2C, ST33TPHF2EI2C, ST33GTPMAI2C
and ST33GTPMII2C)
Implements the Trusted Platform Module (TPM) interface as defined in the
Trusted
®
Computing Group (TCG) PC Client Platform TPM Profile (PTP)
Specification Level 00, Revision 01.03 v22 or later
Description
The STSW-TPM-I2C-DRV GitHub project provides a TCG-compliant Linux
®
I²C
driver that is packaged as a patch for the native Linux kernel.
This driver is available for the 5.4 Linux driver and has been validated with
the following TPM products: ST33TPHF20I2C, ST33TPHF2XI2C, ST33TPHF2EI2C,
ST33GTPMAI2C, ST33GTPMII2C.
The STSW-TPM-I2C-DRV driver is compliant with the TCG PC Client Platform TPM
Profile (PTP) Specification Level 00, Revision 01.03 v22 or later as supported by the
STMicroelectronics TPM products. It is also compliant with the TCG PC Client Device
Driver Design Principles for TPM 2.0.
It supports polling mode with polling intervals optimized for STMicroelectronics TPM
products. It does not support interrupt mode.
Product status link
STSW-TPM-I2C-DRV
Product summary
Order code TCG- TPM-I2C-DRV
Description TCG Linux I²C driver
GitHub link
https://github.com/
STMicroelectronics/TCG-
TPM-I2C-DRV
TCG Trusted Platform Module I²C Linux
®
driver
STSW-TPM-I2C-DRV
Data brief
DB4456 - Rev 1 - April 2021
For further information contact your local STMicroelectronics sales office.
www.st.com
1 General information
The patch in the STSW-TPM-I2C-DRV software package is provided as an open source.
It has been successfully integrated with the following I²C TPM devices: ST33TPHF20I2C, ST33TPHF2XI2C,
ST33TPHF2EI2C, ST33GTPMAI2C, ST33GTPMII2C. These devices are based on an Arm
®
core.
Note: Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
1.1 License
STSW-TPM-I2C-DRV is available in GitHub under GPL v2 license.
1.2 Applying the patch
To apply the patch, download the Linux kernel sources, copy the patch into the linux/drivers/char directory
and run it from the char directory with:
patch -b -p0 < patchTPMv_5_4_2.patch.
The patch is available from the GitHub link: https://github.com/STMicroelectronics/TCG-TPM-I2C-DRV.
1.3 Supported platforms
Refer to the information on the GitHub web page to obtain an up-to-date list of the platform models used for
integration tests.
STSW-TPM-I2C-DRV
General information
DB4456 - Rev 1
page 2/5