Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1343225

[PATCH 03/11] ARM: DTS: dra7: Enable eDMA

From Peter Ujfalusi <peter.ujfalusi@ti.com>
Newsgroups linux.kernel
Subject [PATCH 03/11] ARM: DTS: dra7: Enable eDMA
Date 2016-02-25 16:00 +0100
Message-ID <r65yy-5kc-7@gated-at.bofh.it> (permalink)
References <r65yy-5kc-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


DRA7 family has eDMA available along with the sDMA and in some cases it is
better suited for servicing peripherals.

Add the needed nodes for eDMA to be usable:
edma-tpcc, edma-tptc0/1 and the edma-xbar.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 arch/arm/boot/dts/dra7.dtsi | 48 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
index 114286dbee25..d2d2568b5695 100644
--- a/arch/arm/boot/dts/dra7.dtsi
+++ b/arch/arm/boot/dts/dra7.dtsi
@@ -170,6 +170,15 @@
 					ti,dma-safe-map = <0>;
 					dma-masters = <&sdma>;
 				};
+
+				edma_xbar: dma-router@c78 {
+					compatible = "ti,dra7-dma-crossbar";
+					reg = <0xc78 0x7c>;
+					#dma-cells = <2>;
+					dma-requests = <204>;
+					ti,dma-safe-map = <0>;
+					dma-masters = <&edma>;
+				};
 			};
 
 			cm_core_aon: cm_core_aon@5000 {
@@ -324,6 +333,45 @@
 			dma-requests = <127>;
 		};
 
+		edma: edma@43300000 {
+			compatible = "ti,edma3-tpcc";
+			ti,hwmods = "tpcc";
+			reg = <0x43300000 0x100000>;
+			reg-names = "edma3_cc";
+			interrupts = <GIC_SPI 361 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 360 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 359 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "edma3_ccint", "emda3_mperr",
+					  "edma3_ccerrint";
+			dma-requests = <64>;
+			#dma-cells = <2>;
+
+			ti,tptcs = <&edma_tptc0 7>, <&edma_tptc1 0>;
+
+			/*
+			 * memcpy is disabled, can be enabled with:
+			 * ti,edma-memcpy-channels = <20 21>;
+			 * for example. Note that these channels need to be
+			 * masked in the xbar as well.
+			 */
+		};
+
+		edma_tptc0: tptc@43400000 {
+			compatible = "ti,edma3-tptc";
+			ti,hwmods = "tptc0";
+			reg =	<0x43400000 0x100000>;
+			interrupts = <GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "edma3_tcerrint";
+		};
+
+		edma_tptc1: tptc@43500000 {
+			compatible = "ti,edma3-tptc";
+			ti,hwmods = "tptc1";
+			reg =	<0x43500000 0x100000>;
+			interrupts = <GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "edma3_tcerrint";
+		};
+
 		gpio1: gpio@4ae10000 {
 			compatible = "ti,omap4-gpio";
 			reg = <0x4ae10000 0x200>;
-- 
2.7.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 00/11] ARM: DTS/clk: DRA7 family: enable eDMA and audio updates Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-02-25 16:00 +0100
  [PATCH 03/11] ARM: DTS: dra7: Enable eDMA Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-02-25 16:00 +0100
  [PATCH 11/11] ARM: DTS: dra7: Add nodes for McASP1/2/4/5/6/7/8 Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-02-25 16:00 +0100
  [PATCH 05/11] ARM: DTS: dra7-evm: Enable AFIFO use for McASP3 Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-02-25 16:00 +0100
  [PATCH 09/11] ARM: clk: dra7xx: Correct mcasp8_ahclkx_mux name Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-02-25 16:00 +0100
  [PATCH 04/11] ARM: DTS: dra7: Use eDMA and add DAT port address for McASP3 Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-02-25 16:00 +0100
  [PATCH 06/11] ARM: DTS: dra72-evm: Enable AFIFO use for McASP3 Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-02-25 16:00 +0100
  [PATCH 01/11] ARM: DTS: dra7: Move the sDMA crossbar node under l4_cfg/scm Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-02-25 16:00 +0100
  [PATCH 07/11] ARM: DTS: am57xx-beagle-x15: Move clkout2 source selection to codec node Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-02-25 16:00 +0100
  [PATCH 02/11] ARM: DRA7: hwmod: Add data for eDMA tpcc, tptc0, tptc1 Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-02-25 16:00 +0100
    Re: [PATCH 02/11] ARM: DRA7: hwmod: Add data for eDMA tpcc, tptc0,  tptc1 Paul Walmsley <paul@pwsan.com> - 2016-03-01 10:00 +0100
  [PATCH 08/11] ARM: DTS: am57xx-beagle-x15: Enable AFIFO use for McASP3 Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-02-25 16:00 +0100
  [PATCH 10/11] ARM: DRA7: hwmod: Add data for McASP1/2/4/5/6/7/8 Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-02-25 16:00 +0100
    Re: [PATCH 10/11] ARM: DRA7: hwmod: Add data for  McASP1/2/4/5/6/7/8 Paul Walmsley <paul@pwsan.com> - 2016-03-01 10:20 +0100
      Re: [PATCH 10/11] ARM: DRA7: hwmod: Add data for McASP1/2/4/5/6/7/8 Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-03-01 17:50 +0100
        Re: [PATCH 10/11] ARM: DRA7: hwmod: Add data for  McASP1/2/4/5/6/7/8 Paul Walmsley <paul@pwsan.com> - 2016-03-01 18:10 +0100
          Re: [PATCH 10/11] ARM: DRA7: hwmod: Add data for McASP1/2/4/5/6/7/8 Peter Ujfalusi <peter.ujfalusi@ti.com> - 2016-03-03 12:20 +0100
            Re: [PATCH 10/11] ARM: DRA7: hwmod: Add data for  McASP1/2/4/5/6/7/8 Paul Walmsley <paul@pwsan.com> - 2016-03-03 16:40 +0100

csiph-web