SPI infineon TPM 2.0 cs-gpios not correct work on Jetpack 5.0.2 and 5.1

Hi DaneLLL

I tried the information you provided, but this is only to modify the problem that CS cannot adjust Timming.

Our problem is not that the cs pin does not work when using “enable-hw-based-cs”.

But the behavior of “enable-hw-based-cs” does not meet the requirements of TPM. In the past, Jetpack 4.6.0 using cs-gpios can work normally and meet the requirements of TPM.

However, after using Jetpack 5.0.2 or even 5.1, the cs pin does not work at all when using cs-gpios, but the cs pin will work when using “enable-hw-based-cs”, but the behavior cannot meet our needs.

In addition, when I traced spi-tegra114.c, I found that when “enable-hw-based-cs” is used to execute the tpm spi command, the judgment will execute the part in the yellow box, and when using “cs-gpios”, it will run to the part in the red box. But cs-gpios will not have any action, as shown in the figure below:

Best Regards
Jack Lan