From: Dushara Jayasinghe <DusharaJ@optiscan.com>
To: "'avorontsov@ru.mvista.com'" <avorontsov@ru.mvista.com>
Cc: "linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>
Subject: RE: Can't load module spi_mpc83xx : No such device
Date: Tue, 3 Mar 2009 15:11:23 +1100 [thread overview]
Message-ID: <DE0CCFFBFF707949BEABD4537A14ACBA0C083C19F8@mailsvr> (raw)
In-Reply-To: <20090227125456.GA21435@oksana.dev.rtsoft.ru>
Hi All,
> Linus' tree is still lacking few patches for spi_mpc83xx driver, the
> patches makes spi_mpc83xx work with the device tree directly.
I modified the spi_mpc83xx to work with the device tree using mpc52xx_psc_s=
pi.c as a guide.=20
However, the device->dev->platform_data member is NULL (I thought the child=
node would provide that).=20
What am I missing?
I'm trying to create the SPI driver as a loadable module which will be used=
by the m25p80 chip driver (drivers/mtd/devices) which also will be a loada=
ble module. Am I on the right track?
> [...]
> > Part of my device tree is as follows:
> >
> > soc8349@e0000000 {
> > ...
> > spi@7000 {
> > #address-cells =3D <1>;
> > #size-cells =3D <0>;
> > compatible =3D "fsl,spi";
> > reg =3D <0x7000 0x1000>;
> > interrupts =3D <0x10 0x8>;
> > interrupt-parent =3D < &ipic >;
>=20
> You don't seem to have any chip-selects (i.e. gpios =3D <>) specified.
Could you elaborate on this point please? I couldn't find any examples of g=
pios defined within SPI nodes.
[...]
> >
> > m25p40@2 {
> > compatible =3D "m25p80";
> > spi-max-frequency =3D <25000000>;
> > reg =3D <2>;
Thanks again.
D
next prev parent reply other threads:[~2009-03-03 4:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-27 4:56 Can't load module spi_mpc83xx : No such device Dushara Jayasinghe
2009-02-27 12:54 ` Anton Vorontsov
2009-02-28 16:07 ` mpc8349e-mitx 2.6.25 serial IRQ assigned wrong Steve DeLaney
2009-03-03 4:11 ` Dushara Jayasinghe [this message]
2009-03-03 12:41 ` Can't load module spi_mpc83xx : No such device Anton Vorontsov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DE0CCFFBFF707949BEABD4537A14ACBA0C083C19F8@mailsvr \
--to=dusharaj@optiscan.com \
--cc=avorontsov@ru.mvista.com \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox