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.

Linux/AM3359: SPI Communication Enable Problem

Part Number: AM3359

Tool/software: Linux

Hi,

Now,I'm using the latest Linux SDK version v04.00 .When I want to enable SPI,there is a problem is that :

http://wiki.tiprocessors.com/index.php/AM335x_McSPI_Driver%27s_Guide

this page show us that we have to enable the "McSPI driver for OMAP" this option

but now I can't find the option below "SPI support"

Or it have another method in this SDK version?

Best Regards

Y.Chang

  • Hi Chang,

    For PSDK4, you should use the below wiki:

    processors.wiki.ti.com/.../Linux_Core_SPI_User's_Guide

    Regards,
    Pavel
  • Hi,

    The following are enabled by default
    CONFIG_SPI=y
    CONFIG_SPI_MASTER=y

    If you wish to use spidev from sysfs, you need to manually enable:
    CONFIG_SPI_SPIDEV=y

    this is done in arch/arm/configs/tisdk_am57xx-evm_defconfig

    Best Regards,
    Yordan
  • Hi Chang,

    See attached screenshot:

    Also there are additional dependencies described in the make menuconfig help:

    CONFIG_SPI_OMAP24XX:                                                                                                                                                                                        │  
      │ SPI master controller for OMAP24XX and later Multichannel SPI                                                                                                                                               
      │ (McSPI) modules.                                                                                                                                                                                                                                                                                                                                                                                               
      │ Symbol: SPI_OMAP24XX [=y]                                                                                                                                                                                   
      │ Type  : tristate                                                                                                                                                                                            
      │ Prompt: McSPI driver for OMAP                                                                                                                                                                               
      │   Location:                                                                                                                                                                                                 
      │     -> Device Drivers                                                                                                                                                                                       
      │       -> SPI support (SPI [=y])                                                                                                                                                                             
      │   Defined at drivers/spi/Kconfig:427                                                                                                                                                                        
      │   Depends on: SPI [=y] && SPI_MASTER [=y] && HAS_DMA [=y] && (ARCH_OMAP2PLUS [=y] || COMPILE_TEST [=n])                                                                                                     
      │   Selects: SG_SPLIT [=y]

    BR

    Tsvetolin Shulev

  • Thanks,I will check it.