Hello,
We are interfacing TPM2.0 SLB9670 with the IMX8M processor using SPI communication as shown in below schematic.

We have made the following ECSPI2 configurations for SPI communication in the device tree file and its working as we are able to see spidev1.0 when we use ls -l /dev/spidev* command in linux terminal of imx8m.
&ecspi2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi2>;
fsl,spi-num-chipselects = <1>;
cs-gpios = GP_ECSPI2_CS0;
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
spidev@0 {
compatible = "spidev";
spi-max-frequency = <2000000>;
reg = <0>;
};
};
Similarly we have made the following ECSPI2 configurations for TPM SLB9670 chip in the device tree file but we are not able to see TPM being detected when we use ls -l /dev/tpm* command in linux terminal of imx8m.
&ecspi2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi2>;
fsl,spi-num-chipselects = <1>;
cs-gpios = GP_ECSPI2_CS0;
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
tpm0: slb9670@0 {
compatible = "infineon,slb9670";
reg = <0>;
resets = <&tpm_reset>;
spi-max-frequency = <38000000>;
interrupt-parent = <&gpio3>;
interrupts = IRQ_TYPE_LEVEL_LOW>;
status = "okay";
};
};
Please suggest us some steps to make the TPM chip SLB9670 to detect in IMX8M processor