Skip to contentSkip to conversation

BCM2835: Add dmaengine driver to device tree

PATCH In review Florian Meier 2 participants 2 messages Jan 13, 2014 – Feb 12, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 BCM2835: Add dmaengine driver to device tree

This adds the definitions for the BCM2835 dmaengine driver to the device tree. The dma-channel-mask is currently fixed. Later it should be set via the firmware.

---
 arch/arm/boot/dts/bcm2835.dtsi | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm/boot/dts/bcm2835.dtsi +21 -0
index b021c96..1da6b36 100644
@@ -113,6 +113,27 @@
 			reg = <0x7e980000 0x10000>;
 			interrupts = <1 9>;
 		};
+
+		dma: dma at 7e007000 {
+			compatible = "brcm,bcm2835-dma";
+			reg = <0x7e007000 0xf00>;
+			interrupts = <1 16>,
+				     <1 17>,
+				     <1 18>,
+				     <1 19>,
+				     <1 20>,
+				     <1 21>,
+				     <1 22>,
+				     <1 23>,
+				     <1 24>,
+				     <1 25>,
+				     <1 26>,
+				     <1 27>,
+				     <1 28>;
+
+			#dma-cells = <1>;
+			brcm,dma-channel-mask = <0x7f35>;
+		};
 	};
 
 	clocks {
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 3 lines · Florian Meier

This adds the definitions for the BCM2835 dmaengine driver to the device tree. The dma-channel-mask is currently fixed. Later it should be set via the firmware.

I've applied patch 1, and the part of patch 2 which touches bcm2835.dtsi to bcm2835's for-3.15/dt branch, with minor fixes.