flexspi connects to 4 devices

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

flexspi connects to 4 devices

Jump to solution
1,064 Views
Luke-Hsieh
Contributor III

Hi,

Does anyone have the experience using i.mx8 SPI with multiple devices ?

Initially, I was trying to use ECSPI1, but there's only one CS pin supported on ECSPI.

 

I read i.mx8m nano reference manual and find that flex spi supports multiple devices.

In figure 10-15, there're 2 pairs of CLK & DATA in parallel mode which is not what I need.

Can I use the individual mode to support 4 devices which are sharing one CLK+MISO+MOSI ?

Is my expectation correct ?

Attach the figure10-15 for reference.

Thanks.

 

 

0 Kudos
1 Solution
1,059 Views
igorpadykov
NXP Employee
NXP Employee

Hi Luke

 

>I was trying to use ECSPI1, but there's only one CS pin supported on ECSPI.

 

one can use gpio as CS as described in linux documentation "- cs-gpios : GPIOs to use as chip selects"

https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/devicetree/bindings/spi/fsl-...

 

>In figure 10-15, there're 2 pairs of CLK & DATA in parallel mode which is not what I need.

>Can I use the individual mode to support 4 devices which are sharing one CLK+MISO+MOSI ?

>Is my expectation correct ?

 

not sorry. Only option as described exactly in Figure10-15 is possible.

 

Best regards
igor

View solution in original post

0 Kudos
2 Replies
1,060 Views
igorpadykov
NXP Employee
NXP Employee

Hi Luke

 

>I was trying to use ECSPI1, but there's only one CS pin supported on ECSPI.

 

one can use gpio as CS as described in linux documentation "- cs-gpios : GPIOs to use as chip selects"

https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/devicetree/bindings/spi/fsl-...

 

>In figure 10-15, there're 2 pairs of CLK & DATA in parallel mode which is not what I need.

>Can I use the individual mode to support 4 devices which are sharing one CLK+MISO+MOSI ?

>Is my expectation correct ?

 

not sorry. Only option as described exactly in Figure10-15 is possible.

 

Best regards
igor

0 Kudos
1,053 Views
Luke-Hsieh
Contributor III

Hi Igor,

 

Thanks for the confirmation!

The good news is that I can discuss further with HW reviewer.

https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/devicetree/bindings/spi/spi-...

 

0 Kudos