Connect a device to flexspi0 on iMx8X

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

Connect a device to flexspi0 on iMx8X

1,163 Views
mirkoardinghi1
Contributor IV

Hi, I need to connect a SC16IS752 device (a Dual UART with I2C-bus/SPI interface, 64 bytes of transmit
and receive FIFOs, IrDA SIR built-in support) to flexspi0 on iMx8X, but (according to manual) it seems that flexspi0 support only:

" Flexible sequence engine (LUT table) to support various vendor devices
• Serial NOR Flash or other device with similar SPI protocol as Serial NOR Flash
• Serial NAND Flash
• HyperBus device (HyperFlash/HyperRAM)
• FPGA device
"

I tried to connect the device but, as I supposed, the driver failed to recognized the peripheral.

Is possibile to use this kind of device with flexspi0?

Thanks

0 Kudos
Reply
3 Replies

102 Views
Pooja_shetty
Contributor I

Hi,

I am connecting FPGA as slave to imx8dxl board,can i know which driver are you using for flexspi.

0 Kudos
Reply

1,142 Views
mirkoardinghi1
Contributor IV

thanks

0 Kudos
Reply

1,152 Views
igorpadykov
NXP Employee
NXP Employee

Hi mirkoardinghi1

 

in general it is possibile to use this kind of device with flexspi0,

however it requires lut table and it may be not simple task.

One can consider more simple lpspi module.

As for flexspi, nxp has only mtd driver using flexspi and supporting spi-nor devices.

mt35xu512aba for i.MX8QXP MEK

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8x-mek.dt...

LUT example for this device can be found in M4 SDK_MEK-MIMX8QX :

file flexspi_octal_polling_transfer.c, customLUT[CUSTOM_LUT_LENGTH] = {..}

SDK is available on https://mcuxpresso.nxp.com/en/welcome

Other LUT examples can be found in AN12183  How to Enable Debugging for FLEXSPI NOR Flash

 

Best regards
igor

0 Kudos
Reply