How to enable and use SPI on IMX8 Plus SoM

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

How to enable and use SPI on IMX8 Plus SoM

1,691 Views
NewToThis
Contributor I

Would someone be able to explain how i use the SPI on the IMX8 plus SoM.  I want to do a simple read/write to some EEPROM on a carrier PCB just to check it works. 

I've got the provided Yocto image working and I'm able to use buses like the i2c quite easily but the SPI bus for the EEPROM doesn't appear enabled. I've checked the kernel logs using dmesg | grep SPI* and i can see the SPI NOR flash on the SoM is enabled but that's not what i want. 

I guess the the device tree needs to be changed and/or the driver that i think is occupying the bus unbinded but I don't know how to do this. If i could just access the SPI via U-Boot that would be great. 

Any help would be hugely appreciated, I'm completely new to this. 

Thanks in advance. 

DTS 

 

 

0 Kudos
Reply
3 Replies

1,658 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @NewToThis!

Thank you for contacting NXP Support!

 

What board are you using?

What BSP are you using?

 

Please check the device tree of the imx8mp evk, the memory is declared in the node flexspi

 

Best Regards!

Chavira

0 Kudos
Reply

1,625 Views
NewToThis
Contributor I

 Hi Chavira 

I'm using a ROM 5722, it's a Advantech SoM using the "open-sourced Linux BSP".  

 

NewToThis_0-1731315254839.png

 

0 Kudos
Reply

1,601 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @NewToThis!

 

I have tried to see the device tree of the board that you want to use without success.

 

Maybe the SPI bus is enabled on the board.

 

For this case I recommend contacting advantech support to get a clarification of this, also I noticed that they have documentation about their boards that you can consult for the usage of the board.

https://advdownload.advantech.com/productfile/Downloadfile5/1-2GXFE3B/ROM-5722_User_Manual_Ed.1-D1.p...

 

Best Regards!

Chavira

0 Kudos
Reply