[PATCH] powerpc/4xx: Add GPIO, SPI and MMC suport to the Arches

Stefan Roese sr at denx.de
Fri Oct 31 22:11:46 EST 2008


This patch adds GPIO, SPI & MMC (for onboard uSD) support to the
Arches dts

Signed-off-by: Stefan Roese <sr at denx.de>
---
 arch/powerpc/boot/dts/arches.dts |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/boot/dts/arches.dts b/arch/powerpc/boot/dts/arches.dts
index d9113b1..c568095 100644
--- a/arch/powerpc/boot/dts/arches.dts
+++ b/arch/powerpc/boot/dts/arches.dts
@@ -195,6 +195,38 @@
 				interrupts = <0x3 0x4>;
 			};
 
+			SPI0: spi at ef600900 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				device_type = "spi";
+				compatible = "ibm,spi-460gt", "ibm,ppc4xx-spi";
+				reg = <0xef600900 7>;
+				interrupt-parent = <&UIC1>;
+				interrupts = <2 4>;
+
+				/* gpio(s) representing chip select(s) */
+				gpios = <&GPIO1 11 0>;
+
+				mmc-slot at 0 {
+					compatible = "linux,mmc-spi", "mmc-spi";
+					reg = <0>;
+					spi-max-frequency = <10000000>;
+					voltage-range = <3300 3300>;
+				};
+			};
+
+			GPIO0: gpio at ef600b00 {
+				#gpio-cells = <2>;
+				compatible = "ibm,460gt-gpio","ibm,ppc4xx-gpio";
+				reg = <0xef600b00 38>;
+			};
+
+			GPIO1: gpio at ef600c00 {
+				#gpio-cells = <2>;
+				compatible = "ibm,460gt-gpio","ibm,ppc4xx-gpio";
+				reg = <0xef600c00 38>;
+			};
+
 			TAH0: emac-tah at ef601350 {
 				compatible = "ibm,tah-460gt", "ibm,tah";
 				reg = <0xef601350 0x00000030>;
-- 
1.6.0.3




More information about the Linuxppc-dev mailing list