Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42cf2098 authored by Padmavathi Venna's avatar Padmavathi Venna Committed by Vinod Koul
Browse files

ARM: dts: pl330: Add #dma-cells for generic dma binding support



This patch adds #dma-cells property to PL330 DMA controller
nodes for supporting generic dma dt bindings on samsung
exynos5250 platform.

Signed-off-by: default avatarPadmavathi Venna <padma.v@samsung.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 421da89a
Loading
Loading
Loading
Loading
+16 −5
Original line number Original line Diff line number Diff line
@@ -11,6 +11,10 @@ Required properties:


Optional properties:
Optional properties:
  - dma-coherent      : Present if dma operations are coherent
  - dma-coherent      : Present if dma operations are coherent
  - #dma-cells: must be <1>. used to represent the number of integer
    cells in the dmas property of client device.
  - dma-channels: contains the total number of DMA channels supported by the DMAC
  - dma-requests: contains the total number of DMA requests supported by the DMAC


Example:
Example:


@@ -18,16 +22,23 @@ Example:
		compatible = "arm,pl330", "arm,primecell";
		compatible = "arm,pl330", "arm,primecell";
		reg = <0x12680000 0x1000>;
		reg = <0x12680000 0x1000>;
		interrupts = <99>;
		interrupts = <99>;
		#dma-cells = <1>;
		#dma-channels = <8>;
		#dma-requests = <32>;
	};
	};


Client drivers (device nodes requiring dma transfers from dev-to-mem or
Client drivers (device nodes requiring dma transfers from dev-to-mem or
mem-to-dev) should specify the DMA channel numbers using a two-value pair
mem-to-dev) should specify the DMA channel numbers and dma channel names
as shown below.
as shown below.


  [property name]  = <[phandle of the dma controller] [dma request id]>;
  [property name]  = <[phandle of the dma controller] [dma request id]>;
  [property name]  = <[dma channel name]>


      where 'dma request id' is the dma request number which is connected
      where 'dma request id' is the dma request number which is connected
      to the client controller. The 'property name' is recommended to be
      to the client controller. The 'property name' 'dmas' and 'dma-names'
      of the form <name>-dma-channel.
      as required by the generic dma device tree binding helpers. The dma
      names correspond 1:1 with the dma request ids in the dmas property.


  Example:  tx-dma-channel = <&pdma0 12>;
  Example:  dmas = <&pdma0 12
		    &pdma1 11>;
	    dma-names = "tx", "rx";
+12 −0
Original line number Original line Diff line number Diff line
@@ -280,24 +280,36 @@
			compatible = "arm,pl330", "arm,primecell";
			compatible = "arm,pl330", "arm,primecell";
			reg = <0x121A0000 0x1000>;
			reg = <0x121A0000 0x1000>;
			interrupts = <0 34 0>;
			interrupts = <0 34 0>;
			#dma-cells = <1>;
			#dma-channels = <8>;
			#dma-requests = <32>;
		};
		};


		pdma1: pdma@121B0000 {
		pdma1: pdma@121B0000 {
			compatible = "arm,pl330", "arm,primecell";
			compatible = "arm,pl330", "arm,primecell";
			reg = <0x121B0000 0x1000>;
			reg = <0x121B0000 0x1000>;
			interrupts = <0 35 0>;
			interrupts = <0 35 0>;
			#dma-cells = <1>;
			#dma-channels = <8>;
			#dma-requests = <32>;
		};
		};


		mdma0: mdma@10800000 {
		mdma0: mdma@10800000 {
			compatible = "arm,pl330", "arm,primecell";
			compatible = "arm,pl330", "arm,primecell";
			reg = <0x10800000 0x1000>;
			reg = <0x10800000 0x1000>;
			interrupts = <0 33 0>;
			interrupts = <0 33 0>;
			#dma-cells = <1>;
			#dma-channels = <8>;
			#dma-requests = <1>;
		};
		};


		mdma1: mdma@11C10000 {
		mdma1: mdma@11C10000 {
			compatible = "arm,pl330", "arm,primecell";
			compatible = "arm,pl330", "arm,primecell";
			reg = <0x11C10000 0x1000>;
			reg = <0x11C10000 0x1000>;
			interrupts = <0 124 0>;
			interrupts = <0 124 0>;
			#dma-cells = <1>;
			#dma-channels = <8>;
			#dma-requests = <1>;
		};
		};
	};
	};