iMX6 SPI SS difference

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

iMX6 SPI SS difference

1,466 Views
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?

Labels (2)
0 Kudos
3 Replies

762 Views
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),

};

762 Views
cliverolston
Contributor III

Thanks Yibin,

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

Cheers,

Clive

0 Kudos

762 Views
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 Kudos