Hi
Can anyone help me to enable spi in am3358. How to update dts file for spi and what is the use of spi entry and strcture elements for spi in dts file.
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.
Hi
Can anyone help me to enable spi in am3358. How to update dts file for spi and what is the use of spi entry and strcture elements for spi in dts file.
Sandeep,
first, for SPI master mode the driver you need is this: http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components/Kernel/Kernel_Drivers/SPI.html which should already be enabled in our default Kernel.
Then, you'll also need to add one of the SPI device drivers compatible with the device you are connecting, or use a the generic SPI device driver (CONFIG_SPI_SPIDEV). If htat's what you want try searching for CONFIG_SPI_SPIDEV on the E2E, there are numerous posts that may be helpful such as this one https://e2e.ti.com/support/processors/f/791/t/544887?Need-help-with-setting-up-SPI0-on-AM335x-with-TI-SDK-v3-0 showing a part of the device tree setup.
Regards, Andreas