Connect a device to flexspi0 on iMx8X

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Connect a device to flexspi0 on iMx8X

1,165 次查看
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 项奖励
回复
3 回复数

104 次查看
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 项奖励
回复

1,144 次查看
mirkoardinghi1
Contributor IV

thanks

0 项奖励
回复

1,154 次查看
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 项奖励
回复