2025-03-03 1:00 AM
Hi,
I am doing the evaluation of ST33KTPM2X-i2c on my Linux v6.1.70 embedded system.
According to the 'Enabling TPM support in the Linux kernel from the version 6.1' from an5714-integrating-the-stsafetpm-trusted-platform-modules-with-linux-stmicroelectronics.pdf, :
From the version 6.1, the TPM support can be enabled with a short method, which is available in the [TCG-TPM-I2C-DRV] github in Section 1: Open-source software resources.
I understand the driver is available within the Linux v6.1 already. What I need to to is to enable the tpm_tis_i2c.c and add device node into my DTB. Done!
But when I looked into the source code of Linux v6.1 (mainline or https://github.com/raspberrypi/linux/blob/rpi-6.1.y/drivers/char/tpm/tpm_tis_i2c.c#L385), the driver is not presented there - where I expect something like: .compatible = "st,st33ktpm-i2c". Could you help me?
2025-03-29 7:56 AM
Hello @LeoRuan
This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.
Regards,
Roger
2026-04-01 9:45 AM
I looks like you just use compatible = "infineon,slb9673", "tcg,tpm-tis-i2c".
Take a look at this from the meta-st-x-linux-tpm github for the ST implementation: https://github.com/STMicroelectronics/meta-st-x-linux-tpm/blob/main/recipes-kernel/linux/linux-stm32mp/6.1/0002-ARM-dts-stm32-Adding-STPM4RasPI-on-i2c5-nodes.patch
The "infineon,slb9673" enum is listed in the yaml binding document as a similar device: https://www.kernel.org/doc/Documentation/devicetree/bindings/tpm/tcg%2Ctpm-tis-i2c.yaml.