Hi Homin.

>> I am looking for a device driver for SPI which as a spare on the ROACH board. Did anyone try it in the ROACH/Linux environment ?

I'm pretty sure no-one has used the SPI on ROACH yet, although I could be wrong. You might be the first...

You probably have two options, first you could use the spare built-in PPC SPI/IIC port, which can be accessed using the SPI header (refdes: P4). I've poked around uBoot and there appears to be no support in the our svn version (and the denx git repository), which is an indicator that same will apply to the kernel. So there might be quite a bit of work getting the PPC SPI to work in both u-boot and linux. However, getting this to work may be beneficial to anyone else who wants to use SPI in the future.

The second option, which I recommend, is to write an HDL SPI controller module for the V5 which you can lump together with your adc_controller. Have a look at the source below which controls the iADC:
http://casper.berkeley.edu/svn/trunk/mlib_devel_10_1/xps_lib/XPS_ROACH_base/pcores/opb_adccontroller_v1_00_a/
http://casper.berkeley.edu/svn/trunk/mlib_devel_10_1/xps_lib/XPS_ROACH_base/pcores/adc_interface_v1_01_a/

With this you can configure your adc via borph, or uboot (using the mw and md commands), when your FPGA is programmed.

Regards,

David George

--
David George
Digital Design Engineer
Karoo Array Telescope
Tel:     +27 21 531-7282
Fax:     +27 21 531-9761
Email:   [email protected]
Web:     www.ska.ac.za



Reply via email to