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.

AM3354有两路SPI接口,SPI0和SPI1,请问SPI1是否不支持3线的SPI设备?



我在board-am335xevm.c中添加如下代码:

/* Module pin mux for SPI fash by xingchu*/
static struct pinmux_config spi1_pin_mux[] = {
{"mcasp0_aclkx.spi1_sclk", OMAP_MUX_MODE3 | AM33XX_PULL_ENBL
| AM33XX_INPUT_EN},
{"mcasp0_fsx.spi1_d0", OMAP_MUX_MODE3 | AM33XX_PULL_ENBL
| AM33XX_PULL_UP | AM33XX_INPUT_EN},
{"mcasp0_axr0.spi1_d1", OMAP_MUX_MODE3 | AM33XX_PULL_ENBL
| AM33XX_INPUT_EN},
{"mcasp0_ahclkr.spi1_cs0", OMAP_MUX_MODE3 | AM33XX_PULL_ENBL
| AM33XX_PULL_UP | AM33XX_INPUT_EN},
{NULL, 0},
};

static struct spi_board_info xxx_spi1_slave_info[] = {
  {
        .modalias = "xxx_spi_init",
        // .platform_data = &xxx_spi_info,
        .max_speed_hz = 24000000,
        .bus_num = 2,
        .chip_select = 0,
        .mode = SPI_3WIRE,
   },
};

系统启动时打印信息:

spi spi2.0: setup: unsupported mode bits 10