Problem with SPI on S3C2412
José Miguel Gonçalves
jose.goncalves at inov.pt
Wed Nov 4 10:24:37 EST 2009
Ben,
I attach the current patch that I use for my machine. The machine is a
SX-560 module from Silex (
http://www.silexeurope.com/en/home/products/embedded-modules/sx-560.html ).
Meanwhile I think I've spotted the (first) problem. In
arch/arm/mach-s3c2412/s3c2412.c the SPI device is renamed "s3c2412-spi"
(it was set in arch/arm/plat-s3c24xx/devs.c with "s3c2410-spi") but the
spi_s3c24xx driver expects a platform driver named "s3c2410-spi", so it
fails to initialize. Commenting the driving renaming I get a little bit
further:
s3c2410-spi s3c2410-spi.0: No platform data supplied
s3c2410-spi: probe of s3c2410-spi.0 failed with error -2
modprobe: failed to load module spi_s3c24xx: No such device
Now it seems I need some architecture dependent initialization, correct?
Regards,
José Gonçalves
José Miguel Gonçalves wrote:
> Hi,
>
> I am trying to setup Linux 2.6.27 on an embedded board with a S3C2412
> SoC.
> After setting some architecture specific configuration on
> /arch/arm/mach-s3c2412/, I have finally booted my board with success.
> Now I am trying to access a temperature sensor that is connected to
> the SPI bus.
> For this I am thinking to use the spidev userspace API. I have
> compiled spidev and spi_s3c24xx as modules. I'm able to load spidev
> but, when I modprobe spi_s3c24xx, I'm getting the following error:
>
> modprobe: failed to load module spi_s3c24xx: No such device
>
> Any idea of what could be the problem?
>
> Regards,
> José Miguel Gonçalves
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-2.6.27.38-sx560.patch
Type: text/x-patch
Size: 5204 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm/attachments/20091104/2b8522c6/attachment.bin>
More information about the linux-arm
mailing list