How to enable and use SPI on IMX8 Plus SoM

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

How to enable and use SPI on IMX8 Plus SoM

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

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

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

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