need help getting SPI controller working on 405EX
Nathan French
nathan.french at onrampwireless.com
Fri Aug 7 02:08:06 EST 2009
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 at 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 at ef600600 {
+ cell-index = <0>;
+ compatible = "ibm,spi-405ex", "ibm,spi";
+ reg = <ef600600 6>;
+ interrupts = <8 4>;
+ interrupt-parent = <&UIC0>;
+ mode = "cpu";
+ };
RGMII0: emac-rgmii at 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 at 10.2.3.28 /]$ find /proc/device-tree/ | grep spi
/proc/device-tree/plb/opb/spi at ef600600
/proc/device-tree/plb/opb/spi at ef600600/name
/proc/device-tree/plb/opb/spi at ef600600/mode
/proc/device-tree/plb/opb/spi at ef600600/interrupt-parent
/proc/device-tree/plb/opb/spi at ef600600/interrupts
/proc/device-tree/plb/opb/spi at ef600600/reg
/proc/device-tree/plb/opb/spi at ef600600/compatible
/proc/device-tree/plb/opb/spi at 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
More information about the Linuxppc-dev
mailing list