Thread (11 messages) 11 messages, 3 authors, 2009-07-08

Re: Chipselect in SPI binding with mpc5200-psc-spi

From: Grant Likely <hidden>
Date: 2009-06-15 17:33:15

On Mon, Jun 15, 2009 at 10:36 AM, K=E1ri
Dav=ED=F0sson[off-list ref] wrote:
Is this true?

Grant Likely wrote:
quoted
Yes, this is right. =A0The psc_spi driver automatically registers all
spi children that it finds in the device tree onto the SPI bus.
Therefore registering an spi_driver() is the right thing to do.
I am writing an SPI protocol driver and I find that my driver
is never probed.

I tried to add and call to of_register_spi_devices() in the
drivers/spi/mpc52xx_psc_spi.c::mpc52xx_psc_spi_of_probe() function,
without much effect besided that the DTS node is parsed but the driver pr=
obe
is not called, actually it complains about a modalias for my node is
missing.
What do you see when you look in /sys/bus/spi/devices?  You should see
a directory for your device.  What do you see in /sys/bus/spi/drivers?
 In here you should see your driver.  If they are both there, then you
just have a problem matching your driver name to the device name.

g.

--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help