This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SPI interface

Note: This was originally posted on 10th October 2008 at http://forums.arm.com

Hi all,
   I am using an 180 MHz, 200 MIPS ARM920T.  My question is
How can one have an SPI interface to a device(any)?? What are the steps involved??  :wacko: The O.S used is linux. One thing i noticed is there is no SPI in /dev !!!!! It would be really be helpful if any one can suggest or give any link to solve this.

Thanks,
jfor.
Parents
  • Note: This was originally posted on 10th October 2008 at http://forums.arm.com

    About the pin sharing though it has pins for SPI it is also shared as I/O. But i do not intend to use it for any other purpose other than SPI.

    You should be fine then, unless some other part of Linux is using it as I/O. That is unlikely. Your driver will need to configure the pins to connect them to the SPI peripheral internally. You'll need to look at the chip's user manual for details on how to do that.

    There seems to be not much of sample driver code for SPI..... :wacko:
    Is SPI char or block device??

    SPI is neither a char or a block device because those are abstract Linux terms used to classify a device. However, your driver should probably present SPI as a char device.

    What exactly are you trying to achieve with SPI? It sends and receives synchronously, so a slave cannot simply send data, and similar a master cannot simply receive data. It doesn't work like a normal UART-like device.
Reply
  • Note: This was originally posted on 10th October 2008 at http://forums.arm.com

    About the pin sharing though it has pins for SPI it is also shared as I/O. But i do not intend to use it for any other purpose other than SPI.

    You should be fine then, unless some other part of Linux is using it as I/O. That is unlikely. Your driver will need to configure the pins to connect them to the SPI peripheral internally. You'll need to look at the chip's user manual for details on how to do that.

    There seems to be not much of sample driver code for SPI..... :wacko:
    Is SPI char or block device??

    SPI is neither a char or a block device because those are abstract Linux terms used to classify a device. However, your driver should probably present SPI as a char device.

    What exactly are you trying to achieve with SPI? It sends and receives synchronously, so a slave cannot simply send data, and similar a master cannot simply receive data. It doesn't work like a normal UART-like device.
Children
No data