$ sudo dmesg | grep spi
[ 13.600994] spi-tegra114 3210000.spi: Adding to iommu group 2
[ 13.608920] spi-tegra114 3210000.spi: chipselect 0 already in use
[ 13.614453] tpm_tis_spi: probe of spi0.0 failed with error -110
[ 13.616233] spi_master spi0: spi_device register error /spi@3210000/spi@0
[ 13.630181] spi_master spi0: Failed to create SPI device for /spi@3210000/spi@0
[ 13.645826] spi-tegra114 3230000.spi: Adding to iommu group 2
I understand the driver’s probe function failed but I don’t understand why.
I verified that the SPI channel is indeed 0 and chip select is 0 as well.
I noticed there are several spi drivers in the dt. Maybe there is a conflict?
The TPM has 2 GPIOs set to 0 at startup: PP and RST.
I manually set them to 1 (using sysfs)
after setting them to 1 i get the following dmesg:
[ 394.692932] irq: IRQ310: trimming hierarchy from :pmc@c360000
[ 394.703898] irq: IRQ311: trimming hierarchy from :pmc@c360000
(Don’t know if that’s good or bad)
I load: tpm_tis_core.ko
I load tpm_tis_spi.ko
I get the demsg:
[ 972.570678] tpm_tis_spi: probe of spi0.0 failed with error -110
I tried lowering the TPM frequency to 1Mhz for debug.