i.MX6 linux-imx spi-nor driver

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

i.MX6 linux-imx spi-nor driver

1,340 Views
宗標廖
Contributor V

Hello,community

I am now working with L3.10.17 on Freescale i.MX6soloSabreauto board(which with nor-flash m25p32 equipped).

When I run mxc_spi_test under unit_test folder,I always got Error:cannot open device (Maybe not present in your board?).

I know reason for this error is that the kernel has not create /dev/spidevB.C(B for bus num, C for chip select) node.

I read the device tree files and other related files,but I have not found any solution.

And then I tested with L3.0.35,the result is the same with L3.10.17.

Could you let me know why the kernel donnot create device node for spi-nor? And where to modify to reslove this problem.

Thank you!

Best Regards,

ZongbiaoLiao

Labels (3)
Tags (3)
0 Kudos
1 Reply

449 Views
igorpadykov
NXP Employee
NXP Employee

Hi 宗標

please check link below, verify changing driver name to spidev

and option "CONFIG_SPI_SPIDEV=y" in your kernel

Re: How to enable spidev for all SPI (1-5) for MX6

Best regards

igor

0 Kudos