[PATCH v3] spi: Add PPC4xx SPI driver

Jason Hanna jason.m.hanna.at.coincident at gmail.com
Fri Oct 31 10:24:43 EST 2008


On Wed, Oct 29, 2008 at 10:53 AM, Josh Boyer <jwboyer at linux.vnet.ibm.com> wrote:

> Also, do you have a patch for a DTS file that gives an example of how to
> instantiate the SPI stuff in the device tree?

I'll second that request. I've updated the device tree for my Kilauea
(405EX) board but am not sure I have everything correct.

Also, any pointers to sample/test code incorporating a spi protocol
driver would be incredibly helpful. I'm very new to device driver
programming and don't really know what I'm doing yet. I seem to be
getting the spi_ppc4xx and spi_bitbang modules loaded, but am unsure
how to verify proper initialization and what next steps I need to
follow in order to develop and associate a protocol driver.

I'd like to start quite simply - some test routines that would drive
data over the SPI connector on my Kilauea, using a spare GPIO pin as a
chip select. I've got a logic analyzer from which to verify the
results.

I've been reading through all the documentation I can find but am a
little stuck. A concrete example with a SPI protocol driver would be
quite useful.

Thanks,
-jmh



More information about the Linuxppc-dev mailing list