* Freescale MPC8313 & SPI
@ 2009-02-25 1:19 Mark Bishop
2009-02-25 14:22 ` Kumar Gala
0 siblings, 1 reply; 2+ messages in thread
From: Mark Bishop @ 2009-02-25 1:19 UTC (permalink / raw)
To: linuxppc-dev
I am trying to understand more about how to talk to different spi
chips using the MPC8313. The documentation that comes with the
development board is really lacking and I am relying on the
/usr/src/linux/Documentaion/spi. However, I still can't seem to
answer my questions.
1) Which device do I open up to talk to the bus. I would use
something like /dev/ttyS0 for a serial port, and I assume it would be
/dev/spidev.0 and I would have to make it manually using mknod - but
what ties the /dev/spidev.0 to the actual chip driver? Is there
something I have to do in addition to mknod?
2) I would be looking for a few examples on how to talk to a SPI bus
as well. I've looked at spidev_test.c and I would like to see another
example or two.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Freescale MPC8313 & SPI
2009-02-25 1:19 Freescale MPC8313 & SPI Mark Bishop
@ 2009-02-25 14:22 ` Kumar Gala
0 siblings, 0 replies; 2+ messages in thread
From: Kumar Gala @ 2009-02-25 14:22 UTC (permalink / raw)
To: Mark Bishop; +Cc: linuxppc-dev
On Feb 24, 2009, at 7:19 PM, Mark Bishop wrote:
> I am trying to understand more about how to talk to different spi
> chips using the MPC8313. The documentation that comes with the
> development board is really lacking and I am relying on the /usr/src/
> linux/Documentaion/spi. However, I still can't seem to answer my
> questions.
>
> 1) Which device do I open up to talk to the bus. I would use
> something like /dev/ttyS0 for a serial port, and I assume it would
> be /dev/spidev.0 and I would have to make it manually using mknod -
> but what ties the /dev/spidev.0 to the actual chip driver? Is there
> something I have to do in addition to mknod?
>
> 2) I would be looking for a few examples on how to talk to a SPI bus
> as well. I've looked at spidev_test.c and I would like to see
> another example or two.
This question might be better asked on the spi-devel list.
https://lists.sourceforge.net/lists/listinfo/spi-devel-general
- k
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-25 14:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-25 1:19 Freescale MPC8313 & SPI Mark Bishop
2009-02-25 14:22 ` Kumar Gala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).