[RFC 3/5] dt: bcm2835: add mmc node

Piotr Król piotr.krol at 3mdeb.com
Tue Oct 28 17:04:14 PDT 2014


Add MMC node, increase clk_mmc frequency and use bcm2835-mmc instead of
bcm2835-sdhci.

Based on Noralf Tronnes <notro at tronnes.org> work.

Signed-off-by: Piotr Król <piotr.krol at 3mdeb.com>
---
 arch/arm/boot/dts/bcm2835-rpi-b.dts |  2 +-
 arch/arm/boot/dts/bcm2835.dtsi      | 13 ++++++++++++-
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/bcm2835-rpi-b.dts b/arch/arm/boot/dts/bcm2835-rpi-b.dts
index 2a3b1c1313a0..f64bc6364e44 100644
--- a/arch/arm/boot/dts/bcm2835-rpi-b.dts
+++ b/arch/arm/boot/dts/bcm2835-rpi-b.dts
@@ -51,7 +51,7 @@
 	clock-frequency = <100000>;
 };
 
-&sdhci {
+&mmc {
 	status = "okay";
 	bus-width = <4>;
 };
diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dtsi
index b8473c43e888..50f63336cec0 100644
--- a/arch/arm/boot/dts/bcm2835.dtsi
+++ b/arch/arm/boot/dts/bcm2835.dtsi
@@ -43,6 +43,17 @@
 			brcm,dma-channel-mask = <0x7f35>;
 		};
 
+		mmc: mmc at 7e300000 {
+			compatible = "brcm,bcm2835-mmc";
+			reg = <0x7e300000 0x100>;
+			interrupts = <2 30>;
+			clocks = <&clk_mmc>;
+			dmas = <&dma 5>,
+			<&dma 5>;
+			dma-names = "tx", "rx";
+			status = "disabled";
+		};
+
 		intc: interrupt-controller at 7e00b200 {
 			compatible = "brcm,bcm2835-armctrl-ic";
 			reg = <0x7e00b200 0x200>;
@@ -160,7 +171,7 @@
 			reg = <0>;
 			#clock-cells = <0>;
 			clock-output-names = "mmc";
-			clock-frequency = <100000000>;
+			clock-frequency = <250000000>;
 		};
 
 		clk_i2c: clock at 1 {
-- 
2.1.1




More information about the linux-rpi-kernel mailing list