Can ECSPI2 master connect to total 4 slave devices?

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

Can ECSPI2 master connect to total 4 slave devices?

651 Views
joseph_chen
Contributor I

Hi,

For IMX8MQ, our designed board's ECSPI2 connects to 2 SPI slave devices already.  There is a need to have the master to connects to 2 more.  So can the master connects to and control total 4 slave devices?

Labels (1)
0 Kudos
3 Replies

592 Views
igorpadykov
NXP Employee
NXP Employee

HI Joe

yes it is possible configuring dts "cs-gpios" properly :

fsl-imx-cspi.txt\spi\bindings\devicetree\Documentation - linux-imx - i.MX Linux kernel 

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

0 Kudos

592 Views
joseph_chen
Contributor I

Hi Igor,

Thanks for you great help. Following the doc, I'm able to add an extra "cs-gpios" for a third SPI-slave device to the existing ECSPI2.

However, immediately after the adding, Linux kernel starts giving errors like:

[ 1.130032] spi_imx 30820000.ecspi: dma setup error -19, use pio
[ 1.136699] spi_imx 30820000.ecspi: probed
[ 1.141145] spi_imx 30830000.ecspi: dma setup error -19, use pio
[ 1.147706] spi_imx 30830000.ecspi: probed

FYI, I tried but I'm unable to find a related location in the device tree DTS file to add any additional DMA to the third SPI-slave device.

 

Any recommendations to how to fix this? 

-- Joe

0 Kudos

592 Views
igorpadykov
NXP Employee
NXP Employee

HI Joe

 

one can try to use pio option removing dma entries in dts.

 

Best regards
igor

0 Kudos