summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/dts/mgcoge.dts
diff options
context:
space:
mode:
authorHolger Brunck <holger.brunck@keymile.com>2012-05-08 15:57:22 +0200
committerKumar Gala <galak@kernel.crashing.org>2012-07-10 07:07:20 -0500
commit5d1d67e361eaf4c67a28cf6ccc6e3e6a9b0aae6f (patch)
tree7583e3c3a660d6b59e98386e515408c856cc6c67 /arch/powerpc/boot/dts/mgcoge.dts
parent7ee0bf533606f6ac5bc33f4ae60a4b04914675fb (diff)
downloadtalos-op-linux-5d1d67e361eaf4c67a28cf6ccc6e3e6a9b0aae6f.tar.gz
talos-op-linux-5d1d67e361eaf4c67a28cf6ccc6e3e6a9b0aae6f.zip
powerpc/82xx: add SPI support for mgcoge
Add spi support for mgcoge into the platform code and the dts file. Additionaly SPIDEV is switched on in the defconfig and the updates for the newer kernel version are committed. The SPI interface is used to drive the Maxim DS3106 clock chip. Signed-off-by: Holger Brunck <holger.brunck@keymile.com> cc: Heiko Schocher <hs@denx.de> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/boot/dts/mgcoge.dts')
-rw-r--r--arch/powerpc/boot/dts/mgcoge.dts23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/powerpc/boot/dts/mgcoge.dts b/arch/powerpc/boot/dts/mgcoge.dts
index ededaf5ac015..d72fb5e219d0 100644
--- a/arch/powerpc/boot/dts/mgcoge.dts
+++ b/arch/powerpc/boot/dts/mgcoge.dts
@@ -222,6 +222,29 @@
interrupt-parent = <&PIC>;
usb-clock = <5>;
};
+ spi@11aa0 {
+ cell-index = <0>;
+ compatible = "fsl,spi", "fsl,cpm2-spi";
+ reg = <0x11a80 0x40 0x89fc 0x2>;
+ interrupts = <2 8>;
+ interrupt-parent = <&PIC>;
+ gpios = < &cpm2_pio_d 19 0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ ds3106@1 {
+ compatible = "gen,spidev";
+ reg = <0>;
+ spi-max-frequency = <8000000>;
+ };
+ };
+
+ };
+
+ cpm2_pio_d: gpio-controller@10d60 {
+ #gpio-cells = <2>;
+ compatible = "fsl,cpm2-pario-bank";
+ reg = <0x10d60 0x14>;
+ gpio-controller;
};
cpm2_pio_c: gpio-controller@10d40 {
OpenPOWER on IntegriCloud