From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-Id: <19A971C7-A024-4315-993E-3253BDE7094A@kernel.crashing.org> From: Kumar Gala To: Mark Bishop In-Reply-To: <20090224201936.jlryqrul6owwc0sg@www.bish.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Freescale MPC8313 & SPI Date: Wed, 25 Feb 2009 08:22:37 -0600 References: <20090224201936.jlryqrul6owwc0sg@www.bish.net> Cc: linuxppc-dev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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