|
From: | Kevin Wells |
Subject: | RE: [Ltib] SPI missing |
Date: | Thu, 26 Aug 2010 17:57:31 +0200 |
Hi Jorge, I’ll (try to) post a patch for this later today. Better
yet, I’ll post a patch that adds full 2.6.34 support on the LTIB menu for
the FDI board next week! thanks, Kevin Subject: Re: [Ltib] SPI missing Hi Kevin, Hi Jorge, I just looked at the FDI support for SPI and it’s not in
the board-arm9dimm3250.c file. The SPI interface won’t work without a platform driver
registered for it. This is what I found in the file… 606 static struct platform_device* arm9dimm3250_devs[]
__initdata = { 607 #if defined(CONFIG_SPI_LPC32XX) 608
&ssp0_device, 609 #endif 610 #if defined(CONFIG_KEYBOARD_LPC32XX) 611
&kscan_device, 612 #endif But there is no matching ssp0_device platform structure for it.
I would expect this to generate a compilation error on failure, so the
CONFIG_SPI_LPC32XX macro check might be a suspect too. Try removing the #id/#endif check and recompiling.. 606 static struct platform_device* arm9dimm3250_devs[]
__initdata = { 608
&ssp0_device, 610 #if defined(CONFIG_KEYBOARD_LPC32XX) 611
&kscan_device, 612 #endif Also add the necessary SPI support above this file. You will
also need to register your SPI devices. This doesn’t seem to be there
either. You can use the phytec board file as a reference for spi
registration. It is here: http://git.lpclinux.com/?p=linux-2.6.27.8-lpc32xx.git;a=blob;f=arch/arm/mach-lpc32xx/board-phy3250.c;h=90d818d42d563665219ede8c2e7f5bc4bbcac7ca;hb=ee7393fba54ad123efaf536e51e139fefd9c85ab The FDI port is in need of a boot loader and kernel update! thanks, Kevin From: Jorge A. Castro [mailto:address@hidden]
Hi Kevin, Hi Jorge, <*> Bitbanging SPI master You can remove this (unless you’ve added the logic to support
GPIO based SPI). There is no default GPIO setup for this in the 32x0. You may need to manually create the device node. I use sysfs to
determine the node numbers for the device. address@hidden /]# cd /sys/class/spi_master/spi0/device/spi0.0/ address@hidden spi0.0]# ls bus
modalias
spidev:spidev0.0 uevent driver
power
subsystem address@hidden spi0.0]# cat modalias spidev address@hidden spi0.0]# cat spidev\:spidev0.0/ spidev:spidev0.0/dev
spidev:spidev0.0/subsystem/ spidev:spidev0.0/device/
spidev:spidev0.0/uevent spidev:spidev0.0/power/ address@hidden spi0.0]# cat spidev\:spidev0.0/dev 153:0 address@hidden spi0.0]# Then I create the node… address@hidden spi0.0]# mknod /dev/spi0 c 153 0 address@hidden spi0.0]# cat /dev/spi0 ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ Maybe I’ll stick this in ./merge thanks, Kevin From: address@hidden
[mailto:address@hidden]
On Behalf Of Jorge A. Castro Hi everyone, I had enable most of related
with SPI in order to try to communicate to an specific module. I'm using Future
Designs LPC3250 development kit.
-- Jorge A. Castro Canam-Technology, Inc.
-- Jorge A. Castro Canam-Technology, Inc.
-- Jorge A. Castro Canam-Technology, Inc. |
[Prev in Thread] | Current Thread | [Next in Thread] |