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.

AM335x Spi slave side OMAP2 patch

Other Parts Discussed in Thread: AM3359

Hi

 I ve been looking on the web and I found a patch for configuring  a OMAP2 device with a Spi slave functionality. Am using a phycore device with an AM335x and I want to configure the  SPI0 and SPI1  and use them as slave module.

 I don’t want to waste your time but maybe you can answer easily my questions

https://patchwork.kernel.org/patch/76677/

Is this patch work with linux 3.2 and my devce? Is it compatible with the AM3359 device? Is there any other file I should patch?

Thanks in advance if you can help me out on this

 Regards.

  • Hi, I managed to adapt I my device as a spi slave,I just changed the MS control on the spi-omap2-mcspi.c file.

    However now am stuck on the clock input in which I think that doesn'work. I can read data from the input line, but they are messy and unsynchronised with the input clock.

    The master clock looks correct on the scope but when I use/open my driver the maximum of the clock is reduce to 0 to 2.0V (max) which I think is not correct.

    this is how I configure my pins on my board.c:

        {"mcasp0_aclkx.spi1_sclk", OMAP_MUX_MODE3|     AM33XX_PULL_ENBL| AM33XX_INPUT_EN},
        {"uart0_ctsn.spi1_d0", OMAP_MUX_MODE4 | AM33XX_INPUT_EN | AM33XX_PULL_ENBL  },
        {"uart0_rtsn.spi1_d1", OMAP_MUX_MODE4 | AM33XX_INPUT_EN | AM33XX_PULL_ENBL },
        {"uart1_ctsn.spi1_cs0", OMAP_MUX_MODE4| AM33XX_INPUT_EN | AM33XX_PULL_ENBL  },

    Well am really stuck here, and I really need some help

    Thanks for anyone who give me hint.

    regards