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.

DM365 SPI2 bus_num chip_select

Hi,

We are developing SPI interface between DM365(master) and DM6435(slave).

We have seleted SPI2.  We want to know bus_num, chip_select and interrupt number of SPI2.

static struct resource dm3xx_spi_resources[] = {
        [0] = {
                .start = DM3XX_SPI2_BASE,
                .end = DM3XX_SPI2_BASE + (SZ_4K/2) - 1,
                .flags = IORESOURCE_MEM,
        },
        [1] = {
                .start = IRQ_DM3XX_SPINT0_0, --> Is this correct?
                .end = IRQ_DM3XX_SPINT0_0,
                .flags = IORESOURCE_IRQ,
        },
        /* No DMA for SPI on DM355 */
};

static struct spi_board_info dm3xx_spi_board_info[] = {
        [0] = {
                .modalias = "spidev",
                .platform_data = NULL,
                .controller_data = &davinci_spi_eeprom_spi_cfg,
                .mode = SPI_MODE_0,
                .irq = 0,
                .max_speed_hz = 2 * 1000 * 1000 /* max sample rate at 3V */ ,
                .bus_num = 2,        ----> what is bus_num of SPI2?
                .chip_select = 0,    -----> what is chip_select of SPI2?
        },
};