Re: Fw: Help with SPI node
From: Grant Likely <hidden>
Date: 2009-11-21 07:57:33
On Mon, Nov 9, 2009 at 8:36 PM, Ravi Shekhar [off-list ref] wr= ote:
=A0I'm attempting to get SPI to work on my embedded design =A0that is based on the mpc8313erbd reference board wiht a =A02.6.27 kernel.
Are you able to use a more recent kernel? A lot of work has gone into SPI drivers in the last 5 releases.
=A0I cannot open the SPI device. =A0Tracing through the kernel code, it looks like the device is =A0not being found in the DTB file. =A0However there is a =A0SPI node in there already described. =A0Our boards is a SPI master, and the device we will attach is a SPI =A0slave. =A0Could someone elaborate on what is needed in =A0the DTS file to have our SPI driver work and respond to an =A0open() call?
Look in Documentation/powerpc/dts-bindings/spi-bus.txt. However, the 2.6.27 kernel may not have support for that binding on the mpc8313 SPI bus driver (I'm not sure though, I haven't looked). g. --=20 Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.