[PATCH 3/3] ARM: at91: usb-a9g20: dt: add mmc-spi support

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Fri Nov 23 13:45:32 EST 2012


Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre at atmel.com>
---
 arch/arm/boot/dts/usb_a9g20.dts |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/arm/boot/dts/usb_a9g20.dts b/arch/arm/boot/dts/usb_a9g20.dts
index 2dacb16c..503f604 100644
--- a/arch/arm/boot/dts/usb_a9g20.dts
+++ b/arch/arm/boot/dts/usb_a9g20.dts
@@ -21,6 +21,22 @@
 		reg = <0x20000000 0x4000000>;
 	};
 
+	ahb {
+		apb {
+			spi1: spi at fffcc000 {
+				cs-gpios = <&pioB 3 0>;
+				status = "okay";
+
+				mmc-slot at 0 {
+					compatible = "mmc-spi-slot";
+					reg = <0>;
+					gpios = <&pioC 4 0>;	/* CD */
+					spi-max-frequency = <25000000>;
+				};
+			};
+		};
+	};
+
 	i2c at 0 {
 		rv3029c2 at 56 {
 			compatible = "rv3029c2";
-- 
1.7.10.4




More information about the linux-arm-kernel mailing list