Hi Lee,
Thanks for confirming the versions.
I have sent your query to PSP (Platform Support Products) team.
Hope you will get an answer from them soon.
BTW, somehow your previous mail went to [EMAIL PROTECTED] <mailto:[EMAIL
PROTECTED]>
instead of [EMAIL PROTECTED]
I am not sure about the reason, but please make sure that correct address of
Davinci ML gets included in your future reply.
Thanks,
Roy
________________________________
From: Lee Chi Nan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2008 3:40 PM
To: Roy, Nilotpal; [EMAIL PROTECTED]
Subject: Re: SPI Device File On Davinci
Hi Roy,
I am using the following versions on DM6446.
>1. What is the MVPro version?
4.0
>2. What is the LSP version?
1.3
>3. What modules of SPI did you choose at kernel config?
Bitbanging SPI master
I made device file "/dev/spi0" by using the mknod command, but It can't
access the /dev/spi0 file.
Cannot DM6446 handle the spi driver?
Regards,
Lee
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