imx8qxp u-boot spi driver support

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

imx8qxp u-boot spi driver support

1,666 Views
rutvij_trivedi
Contributor II

Hi,
I am working with imx8qxp , i am using yocto(sumo) setup with u-boot version imx_v2018.03_4.14.78_1.0.0_ga.
I want to enable security chip which is using normal SPI interface.

I am able to bring up this IC from kernel using LPSPI.


When i looked at the u-boot source i was not able find any lpspi driver and below are available drivers in my source tree.uboot-spi-tree.png

So how do i use normal spi bus driver on imx8qxp in u-boot-2018 ?

Any help would be greatly appreciable.

Thanks & Regards,
Rutvij

Tags (2)
0 Kudos
5 Replies

1,562 Views
rutvij_trivedi
Contributor II

Hi,
Any chance to review the availability of SPI bus driver in u-boot source ?

Thanks

0 Kudos

1,562 Views
joanxie
NXP TechSupport
NXP TechSupport

got the reply from expert team:

"There is no LSPI driver for 8X/8 in u-boot."

0 Kudos

1,562 Views
joanxie
NXP TechSupport
NXP TechSupport
0 Kudos

1,562 Views
rutvij_trivedi
Contributor II

Hi ,
Thank for the reply,
But i think you should read the question again , as it says "I am able to bring up this IC from kernel using LPSPI." and the concern is related to u-boot and not the kernel.
LPSPI driver and its DTS configuration seems not available in the u-boot source(?).

So how do i enable imx8qxp LPSPI or normal  SPI in u-boot source ?

Thanks.

0 Kudos

1,562 Views
rutvij_trivedi
Contributor II

Hi,

Thanks fr the reply.
As the link suggested, there should be compatible driver available in the same repo, but when looked at it unfortunately i was unable to find the compatible driver here as well as in my repo after switching to the same branch.
spi\drivers - uboot-imx - i.MX U-Boot . (same link provided as above, but directory is driver)
I could add compatible string in spidev.c but it also does not seem available
I could find lpspi driver node in dts file but can not find any compatible "fsl,imx7ulp-spi" driver in source.

Also the dts file you suggested is for imx8qm devices but i m using imx8qxp, will this work for both ?


Is there anything i am missing here ?
Can you please verify at your end ?

Thanks

0 Kudos