iMX6 SPI SS difference

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

iMX6 SPI SS difference

2,747 次查看
cliverolston
Contributor III


We have 2 ECSPI interfaces configured on our iMX6 quad core SPI2 and SPI3. We want to read  96 bytes in on the MISO line. This works fine on SPI2 - the SS stays low for the duration of the read. On SPI3 SS goes high between each byte. Our SPI drivers are identical, as far as we can tell. Is there any difference between the SPI interfaces on the chip?

标签 (2)
0 项奖励
回复
3 回复数

2,043 次查看
RobinGong
NXP Employee
NXP Employee

Please take care of that SS pin should be configured GPIO output(arch/arm/mach-mx6/board-mx6q_sabresd.h). And should tell the GPIO number to SPI driver in board file , such as below code in arch/arm/mach-mx6/board-mx6q_sabresd.c

static int mx6q_sabresd_spi_cs[] = {

        SABRESD_ECSPI1_CS0,

};

static const struct spi_imx_master mx6q_sabresd_spi_data __initconst = {

        .chipselect     = mx6q_sabresd_spi_cs,

        .num_chipselect = ARRAY_SIZE(mx6q_sabresd_spi_cs),

};

2,043 次查看
cliverolston
Contributor III

Thanks Yibin,

We've tried this already but we're still having problems with SPI3.

Cheers,

Clive

0 项奖励
回复

2,043 次查看
RobinGong
NXP Employee
NXP Employee

Can you share the IOMUX setting about pins of SPI3? Such as:

/* ECSPI1 */

MX6Q_PAD_KEY_COL0__ECSPI1_SCLK,

MX6Q_PAD_KEY_ROW0__ECSPI1_MOSI,

MX6Q_PAD_KEY_COL1__ECSPI1_MISO,

MX6Q_PAD_KEY_ROW1__GPIO_4_9,

0 项奖励
回复