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.
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