i.MX8MM FlexSPI with SPI mode 3

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

i.MX8MM FlexSPI with SPI mode 3

Jump to solution
725 Views
dpog
Contributor V

I have a general question about the FlexSPI interface on the iMX8M Mini:

Is it possible to use the FlexSPI as a "normal" SPI interface, choosing the SPI mode (eq CPOL=1, CPHA=1 / MODE_3) freely?

We tried using the spi_dev driver for the device, and the corresponding interface driver spi-nxp-fspi only accepted SPI mode 0. To circumvent this problem we implemented a program using bitbanging, which is way slower. Now we got a customer who wants to know if there are any limitations to the FlexSPI interface, and so far I only found informations regarding flash/memory devices etc., but nothing concerning other SPI devices.

So, is it true that FlexSPI only supports Mode 0?

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
709 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @dpog,

I hope you are doing well.

ECSPI and FlexSPI are different IPs.

FlexSPI is used for interfacing serial storage device (Serial NOR Flash, Serial NAND Flash) and FPGA device.

So, is it true that FlexSPI only supports Mode 0?
=> Yes, It is true.

Please refer to 10.2 FlexSPI Controller (FlexSPI) in RM for more information,

Thanks & Regards,
Sanket Parekh

View solution in original post

0 Kudos
Reply
1 Reply
710 Views
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @dpog,

I hope you are doing well.

ECSPI and FlexSPI are different IPs.

FlexSPI is used for interfacing serial storage device (Serial NOR Flash, Serial NAND Flash) and FPGA device.

So, is it true that FlexSPI only supports Mode 0?
=> Yes, It is true.

Please refer to 10.2 FlexSPI Controller (FlexSPI) in RM for more information,

Thanks & Regards,
Sanket Parekh

0 Kudos
Reply