Hi Lee,
 
Could you please let us know about following?
 
1. What is the MVPro version?
 
2. What is the LSP version?
 
3. What modules of SPI did you choose at kernel config?
 
I assume that you have used following command 
$ make menuconfig
 
Then goto Device Drivers --> SPI support
 
You saw something like below:
 
[ ] SPI support
--- SPI Master Controller Drivers
< > Bitbanging SPI master (NEW)
--- SPI Protocol Masters
< > TSC2102 codec support (NEW)
< > User mode SPI device driver support (NEW)
 
Let us know what you chose in above list.
 
4. After building kernel, did you manually create SPI node?
 
Including the SPI driver in the kernel doesn’t mean the /dev nodes will be 
created. This needs to be done by an init script or after in the shell via 
mknod.
 
Following is an example of creating node for I2C:

$ mknod /dev/i2c-0 c 89 0

The ‘c’ means a character device and this is the same for SPI and I2C. ’89 0’ 
are the major and minor device numbers respectively. 

You may need to do similar type of thing for SPI. A list of standard numbers 
can be found at

/opt/montavista/pro/devkit/lsp/ti-davinci/linux-2.6.18_pro500/Documentation/devices.txt

For spi major number is 153. You can check by using following command: 

$ grep -ie spi devices.txt

153 char        SPI Bus Interface (sometimes referred to as MicroWire)

                  0 = /dev/spi0         First SPI device on the bus

                  1 = /dev/spi1         Second SPI device on the bus

                 15 = /dev/spi15        Sixteenth SPI device on the bus

Choose appropriate "minor" number for your system.

Could you see if above hints work for your case?
 
Regards,
Roy
 


________________________________

        From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Chi 
Nan
        Sent: Tuesday, July 01, 2008 11:48 AM
        To: [email protected]
        Subject: SPI Device File On Davinci
        
        

        Hi all.

        I want to use SPI device,but I can't find /dev/spidevB.C file.
        

        /dev/spidevB.C is not made by the automatic operation thoughI loaded 
the following modules by using the modprobe command. 
        

        spidev.ko
        spi_bitbang.ko
        tsc2102.ko
        

        How can I use SPI device?
        

        

        Regards,
        

        Lee

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to