TPM SLB9670 with IMX6-UL

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

TPM SLB9670 with IMX6-UL

3,503 次查看
dpandey1
Contributor I

Hello,

I am trying to enable a TPM 2.0 device (Infineon SLB9670XQ2.0)  which is connected to the ECSPI4 bus of an IMX6-UL processor, and when booting up the target board.

I encountered an issue that the initialization of the TPM device failed with the below error messages:

[ 1.682344] tpm tpm0: tpm_try_transmit: send(): error -5
[ 2.438570] tpm tpm0: tpm_relinquish_locality: : error -1
[ 2.444337] tpm_tis_spi spi3.0: 1.2 TPM (device-id 0xFFFF, rev-id 255)
[ 2.452747] tpm tpm0: tpm_try_transmit: send(): error -5
[ 2.458150] tpm tpm0: A TPM error (-5) occurred attempting to determine the timeouts
[ 3.207771] tpm tpm0: tpm_relinquish_locality: : error -1
[ 3.213576] tpm_tis_spi: probe of spi3.0 failed with error -5

Also I am not finding tpm while running :

root@imx6ulevk: ls /dev/tpm0

 

I've included TCG_TPM, TCG_TIS_CORE, and TCG_TIS_SPI. Did we have to add anything else to get it working?
 

I have changed my device tree as :

tpm_dts.png

Have anyone encountered something like this? I will appreciated if someone help me out with this

Thanks!!!

 

2 回复数

3,061 次查看
kanimozhi_t
Contributor V

@dpandey1 @weidong_sun We're trying to accomplish the same. Any updates on this one?

0 项奖励
回复

3,279 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

   you want to connect 2 spi devices, so in spi node, reg should be like this:

spi_dev0@0 {
......
reg = <0>; /* CS0 */
......
};

spi_dev0@0{
......
reg = <1>; /* CS1 */
......
};

 

Have a  nice day!

B.R,

Weidong

0 项奖励
回复