Skip to contentSkip to conversation

arm64: dts: stratix10: Add PL330 DMAC to Stratix10 dts

PATCH In review Graham Moore 2 participants 2 messages Feb 20, 2018 – Mar 5, 2018

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

PATCH 1/1 arm64: dts: stratix10: Add PL330 DMAC to Stratix10 dts

The Stratix10 SoCFPGA uses the PL330 DMAC. This patch adds the PL330 DMAC to the Stratix10 device tree.

---
 arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +19 -0
index aa4080d..0666c0f 100644
@@ -711,6 +711,25 @@
 			reg = <0xffe00000 0x100000>;
 		};
 
+		pdma: pdma@ffda0000 {
+			compatible = "arm,pl330", "arm,primecell";
+			reg = <0xffda0000 0x1000>;
+			interrupts = <0 81 4>,
+				     <0 82 4>,
+				     <0 83 4>,
+				     <0 84 4>,
+				     <0 85 4>,
+				     <0 86 4>,
+				     <0 87 4>,
+				     <0 88 4>,
+				     <0 89 4>;
+			#dma-cells = <1>;
+			#dma-channels = <8>;
+			#dma-requests = <32>;
+			clocks = <&l4_main_clk>;
+			clock-names = "apb_pclk";
+		};
+
 		rst: rstmgr@ffd11000 {
 			#reset-cells = <1>;
 			compatible = "altr,rst-mgr";
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 22 lines · Graham Moore

The Stratix10 SoCFPGA uses the PL330 DMAC. This patch adds the PL330 DMAC to the Stratix10 device tree.

---
 arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +6 -0
index aa4080d..0666c0f 100644
@@ -711,6 +711,25 @@
 			reg = <0xffe00000 0x100000>;
 		};
 
+		pdma: pdma at ffda0000 {
+			compatible = "arm,pl330", "arm,primecell";
+			reg = <0xffda0000 0x1000>;
+			interrupts = <0 81 4>,
+				     <0 82 4>,
+				     <0 83 4>,

arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi line 729

Quoted 10 lines
arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +10 -0
+				     <0 84 4>,
+				     <0 85 4>,
+				     <0 86 4>,
+				     <0 87 4>,
+				     <0 88 4>,
+				     <0 89 4>;
+			#dma-cells = <1>;
+			#dma-channels = <8>;
+			#dma-requests = <32>;
+			clocks = <&l4_main_clk>;

This clock doesn't exist. Can you please resend this patch based on the clock driver patch?

please base your updated patch with :

https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git/log/?h=socfpga_for_next_v4.17_dts

Dinh