This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TCAN4550: SPI 32 bit per word on Raspberry pi 3 B+

Part Number: TCAN4550


Hi,

I use Raspberry pi 3 B+ and connect TCAN4550 with SPI0.

I download the Linux driver and port it to Raspberry pi, but the driver seems to use 32 bit per word to write and read.

Raspberry pi can only use 8 bit per word to communicate.

Is there another driver for Raspberry pi or the driver where should I need to modify.

Can you give me some ideas?

Regards,

  • Hi Ted,

    This is device support forum and I can help you with any device setting or configuration related issues. Unfortunately this is not a Linux support forum and the driver you are asking about has been upstreamed into the Linux Kernel and is supported by the Linux Community. I am aware of this 8 bit per word limitation in the Raspberry Pi and I know of the following support thread where a patch was discussed. https://lore.kernel.org/netdev/175f7e89-5b4b-dd54-20a3-d6a5a04c6e9c@pengutronix.de/T/

    However, because this is a Linux driver issue outside of TI’s control, I can’t be of much further assistance. It appears that a modification to the driver is needed to allow the data on the SPI bus to be sent in 32 bit words by using multiple 8-bit SPI transactions of the Raspberry Pi. Perhaps there is a patch or updated driver available through one of the Linux support forums.

    If you have any device specific questions such as register settings etc. please feel free to let me know.

    Regards,

    Jonathan