[LS1043ARDB] DSPI CS pin behavior

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[LS1043ARDB] DSPI CS pin behavior

773 Views
randy_wang
Contributor II

Dear All,

I added spi device TPM via ls1043ardb dspi.

TPM driver is OK and modprobe well.

bus can't get the respose.

and I capture the spi timing as following:

nxp_spi.png

IN: MISO, OUT:MOSI,

And I compared another board, raspberry pi3, which the TPM works well on it, 

and captured the spi timing as following:

 rasp_spi.png

The difference is the spi chip select signal.

on the raspberry pi3, the CS is enabled all the way for entire transaction.

but on the ls1043ardb, the CS is disabled after the first 4 bytes.(Red circle mark)

does it meaning the CS should not be disabled right after the first 4 bytes?

if yes, how can I configure the SPI CS behavior?

Thanks.

Tags (2)
0 Kudos
2 Replies

581 Views
randy_wang
Contributor II

Hi Pavel,

Thank you for your support.

I have solve this issue.

And port the Infineon TPM on LS1043 successfully.

the key points is:

TPM SPI driver encapsulates the first 4 bytes as a single message, and try to read status byte from another message, so it try to keep CS as assertion by setting cs_change to 1.

However, the NXP SPI driver will not set its dspi->cs_change value according the cs_change of transfer object passed by TPM SPI driver

Thanks.

0 Kudos

581 Views
Pavel
NXP Employee
NXP Employee

There is technical case (00189657) about this problem.

Please wait answer on this problem in this technical case.

Have a great day,
Pavel Chubakov

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos