This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux: [J6] How to control MCSPI2



Tool/software: Linux

Hello,

I can get CLK and DATA of MCSPI1 by "spidev_test.c", but I can not get any signals ( CLK or DATA ) in MCSPI2 when I key command "spidev_test -D /dev/spidev2.0".

I modified the following for MCSPI2

1. in "spi-omap2-mcspi.c", shift address 0x14

/* per-channel banks, 0x14 bytes each, first is: */
#define OMAP2_MCSPI_CHCONF0  0x40 //0x2c // MCSPI_CHxCONF
#define OMAP2_MCSPI_CHSTAT0    0x44 //0x30
#define OMAP2_MCSPI_CHCTRL0   0x48 //0x34
#define OMAP2_MCSPI_TX0               0x4C //0x38
#define OMAP2_MCSPI_RX0               0x50 //0x3c

2. print to check the mcspi->base is FA09A100 in "spi-omap2-mcspi.c" when I run spidev_test.c

3. find 4 spidev in platform 
crw------- 1 root root 153, 0 Jan 1 2000 /dev/spidev1.0
crw------- 1 root root 153, 1 Jan 1 2000 /dev/spidev2.0
crw------- 1 root root 153, 2 Jan 1 2000 /dev/spidev3.0
crw------- 1 root root 153, 3 Jan 1 2000 /dev/spidev4.0

how to control CLK and DATA of MCSPI2, could you help me, or give me some suggestions. thank you.