(IMX6Q) How to enable spidev for SPI2

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

(IMX6Q) How to enable spidev for SPI2

2,162 Views
ktc7270
Contributor II

Hi,

I have a few questions about SPI.

I am developing using the imx6q-sabresd board.

Here is my code :

1. fsl-community-bsp/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.0.35-r37.14/git/arch/arm/mach-mx6/board-mx6q_sabresd.h

1.png

/* ECSPI1 */ is the existing code and I added /*ECSPI2*/.

2. fsl-community-bsp/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.0.35-r37.14/git/arch/arm/mach-mx6/board-mx6q_sabresd.c

2.png

3.png

3. add CONFIG_SPI_SPIDEV=y

6.png

I made this setting, but I can not see the / dev / spi related device.

I need help. please.

Best regards

CHEON

Labels (2)
Tags (2)
4 Replies

1,409 Views
igorpadykov
NXP Employee
NXP Employee

Hi kangta

one can look at L3.0.35 spidev example:

/dev/spidev not appearing on iMX6Q despite kernel configuration and modalias="spidev" 

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

1,409 Views
ktc7270
Contributor II
Thank you for your reply. I set it up as you told me, but I do not see / dev / spi info.
Excuse me, can you suggest another way?
0 Kudos

1,409 Views
igorpadykov
NXP Employee
NXP Employee

could you try linux from

linux-2.6-imx.git - Freescale i.MX Linux Tree 

Best regards
igor

1,409 Views
ktc7270
Contributor II
Thank you for your help. Now I can see /dev/spi2.0.
By the way, I am looking for a way to check spi behavior.

echo "test"> /dev/spi2.0
I tested it with the command, but it has no response.

./mxc_spi_test1.out -D 0 -s 1000000 -b 8 E6E0
In the test using / unit_test / mxc_spi_test1.out
Error: Can not open device (Maybe not present in your board?)
This error message is output.

I searched the community, but I could not find the cause. Could you help me?

Thank you.
0 Kudos