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.

tci6614 evm_v4.0 arm linux spi



之前没有linux驱动方面的经验,现在要用到 这方面的地方 , 需要在evm板的扩展口(那个1.27间距 2*50个引脚,的双排母)中的spi连接一个器件,仅仅读写此器件的寄存器值,即使用spi总线每次 发送4个字节给对方,1bit读写命令控制 15bit读写地址,16bit数据,总共4字节。

6614的spi驱动研究了一段时间,感觉evm板的linux中应该都做好了,我在

arch/arm/mach-davinci/board-tci6614-evm.c  中

在结构体数组static struckt spi_board_info spi_devices[] ={  中添加以下代码, 

static struct spi_board_info spi_devices[]={

        ......

        {

                 .modalias  = "spidev",

                 .mode         =SPI_MODE_0,

                 .max_speed_hz   =1000000,

                 .bus_num             =0,

                 .chip_select         =1,

        },

};

重新编译内核后在 /dev目录下生成  spidev0.0设备节点,使用documentation/spi/spidev_test.c编译后测试能够通过,

问题一,请问我上面的操作是否正确,

问题二,evm板上的spi   nor falsh 使用了mtd ,而我应该不需要使用MTD吧??

问题三,我找不到片选是在哪里配置的,请问片选引脚怎么配置,??????????