Using SRAM on SPI interface on IMX6UL

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Using SRAM on SPI interface on IMX6UL

ソリューションへジャンプ
4,272件の閲覧回数
justinwave
Contributor I

Hello,

I have a custom board designed off the IMX6UL EVK board and what to access SRAM loacted on the SPI interface. The SRAM chip is the 23LC1024 and am using the 4.9.11_1.0.0_ga kernel. I was unable to find a driver for the SRAM and am unsure of how to configure it in the device tree and then how to read and write to it from user space.

In the device tree, what should I set the the compatible field to? Should it be "mtd-ram", "spidev" or "mmio-ram"?

Also, how then would I access the SRAM from a user space application?

Any help is greatly appreciated, thank you.

ラベル(3)
0 件の賞賛
返信
1 解決策
3,710件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi justinwave

one can look at general linux guidelines

F-RAM Support under Linux – KBA223028 | Cypress Developer Community 

[PATCH] mtd: mchp23k256: Add driver for this SPI SRAM device 

and NXP spi-nor driver description found in linux documentation on

https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6ser...

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
3,711件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi justinwave

one can look at general linux guidelines

F-RAM Support under Linux – KBA223028 | Cypress Developer Community 

[PATCH] mtd: mchp23k256: Add driver for this SPI SRAM device 

and NXP spi-nor driver description found in linux documentation on

https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6ser...

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
3,710件の閲覧回数
justinwave
Contributor I

Igor, thank you for the links. The patch for the mchp23k256 has been accepted and add to the mainline kernel. I was able to use this as a reference for a driver on the fsl 4.9 kernel.

Thank you.

0 件の賞賛
返信