From: Nathan French <nathan.french@onrampwireless.com>
To: linuxppc-dev@lists.ozlabs.org
Subject: need help getting SPI controller working on 405EX
Date: Thu, 6 Aug 2009 09:08:06 -0700 [thread overview]
Message-ID: <1249574886.3747.2650.camel@localhost.localdomain> (raw)
Hi, I am trying to add support for the 405EX's SPI controller on a Kilauea board. I've added the below to the device tree (under plb/opb/):
[nfrench@nfrench-laptop linux-2.6-denx]$ diff -C2 arch/powerpc/boot/dts/kilauea.dts spi.dts
*** arch/powerpc/boot/dts/kilauea.dts 2009-05-05 15:56:16.000000000 -0700
--- spi.dts 2009-08-06 08:42:19.000000000 -0700
***************
*** 207,210 ****
--- 207,221 ----
#size-cells = <0>;
};
+
+ SPI0: spi@ef600600 {
+ cell-index = <0>;
+ compatible = "ibm,spi-405ex", "ibm,spi";
+ reg = <ef600600 6>;
+ interrupts = <8 4>;
+ interrupt-parent = <&UIC0>;
+ mode = "cpu";
+ };
RGMII0: emac-rgmii@ef600b00 {
I've also compiled my kernel with the following enabled:
CONFIG_SPI=y
CONFIG_SPI_MASTER=y
CONFIG_SPI_SPIDEV=y
I see this make it into the device tree after boot:
[root@10.2.3.28 /]$ find /proc/device-tree/ | grep spi
/proc/device-tree/plb/opb/spi@ef600600
/proc/device-tree/plb/opb/spi@ef600600/name
/proc/device-tree/plb/opb/spi@ef600600/mode
/proc/device-tree/plb/opb/spi@ef600600/interrupt-parent
/proc/device-tree/plb/opb/spi@ef600600/interrupts
/proc/device-tree/plb/opb/spi@ef600600/reg
/proc/device-tree/plb/opb/spi@ef600600/compatible
/proc/device-tree/plb/opb/spi@ef600600/cell-index
But I don't see any /dev/spidev* devices created or any mention of SPI
at boot time. I'm starting to suspect that I don't have the kernel
configured right, otherwise I would see at least the SPI driver
complaining about something, right?
Thanks,
Nathan French
next reply other threads:[~2009-08-06 16:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-06 16:08 Nathan French [this message]
[not found] <1249574886.3747.2650.camel__48649.694157257$1249575290$gmane$org@localhost.localdomain>
2009-08-09 13:38 ` need help getting SPI controller working on 405EX Lorenz Kolb
2009-08-10 16:07 ` Nathan French
2009-08-11 5:44 ` Stefan Roese
2009-08-11 15:59 ` Nathan French
2009-08-11 16:11 ` Stefan Roese
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=1249574886.3747.2650.camel@localhost.localdomain \
--to=nathan.french@onrampwireless.com \
--cc=linuxppc-dev@lists.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;
as well as URLs for NNTP newsgroup(s).