devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: dma: Add Spreadtrum SC9860 DMA controller
@ 2017-07-18  7:06 Baolin Wang
       [not found] ` <63f2b93b3e484862f736e37d6d422b5566637163.1500361078.git.baolin.wang-lxIno14LUO0EEoCn2XhGlw@public.gmane.org>
  2017-07-24 17:52 ` [PATCH 1/2] dt-bindings: dma: Add Spreadtrum SC9860 DMA controller Rob Herring
  0 siblings, 2 replies; 10+ messages in thread
From: Baolin Wang @ 2017-07-18  7:06 UTC (permalink / raw)
  To: vinod.koul-ral2JQCrhuEAvxtiuMwx3w, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	mark.rutland-5wv7dgnIgG8, dan.j.williams-ral2JQCrhuEAvxtiuMwx3w
  Cc: dmaengine-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	broonie-DgEjT+Ai2ygdnm+yROfE0A,
	baolin.wang-QSEj5FYQhm4dnm+yROfE0A,
	baolin.wang-lxIno14LUO0EEoCn2XhGlw

This patch adds the binding documentation for Spreadtrum SC9860 DMA
controller device.

Signed-off-by: Baolin Wang <baolin.wang-lxIno14LUO0EEoCn2XhGlw@public.gmane.org>
---
 Documentation/devicetree/bindings/dma/sprd-dma.txt |   41 ++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/dma/sprd-dma.txt

diff --git a/Documentation/devicetree/bindings/dma/sprd-dma.txt b/Documentation/devicetree/bindings/dma/sprd-dma.txt
new file mode 100644
index 0000000..3ccf776
--- /dev/null
+++ b/Documentation/devicetree/bindings/dma/sprd-dma.txt
@@ -0,0 +1,41 @@
+* Spreadtrum DMA controller
+
+This driver follows the generic DMA bindings defined in dma.txt.
+
+Required properties:
+- compatible: Should be "sprd,sc9860-dma".
+- reg: Should contain DMA registers location and length.
+- interrupts: Should contain one interrupt shared by all channel.
+- #dma-cells: must be <1>. Used to represent the number of integer
+	cells in the dmas property of client device.
+- #dma-channels : Number of DMA channels supported. Should be 32.
+- clock-names: Should contain the clock of the DMA controller.
+- clocks: Should contain a clock specifier for each entry in clock-names.
+
+Example:
+
+Controller:
+apdma: dma-controller@20100000 {
+	compatible = "sprd,sc9860-dma";
+	reg = <0x20100000 0x4000>;
+	interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
+	#dma-cells = <1>;
+	#dma-channels = <32>;
+	clock-names = "enable";
+	clocks = <&clk_ap_ahb_gates 5>;
+};
+
+
+Client:
+DMA clients connected to the Spreadtrum DMA controller must use the format
+described in the dma.txt file, using a two-cell specifier for each channel.
+The two cells in order are:
+1. A phandle pointing to the DMA controller.
+2. The channel id.
+
+spi0: spi@70a00000{
+	...
+	dma-names = "rx_chn", "tx_chn";
+	dmas = <&apdma 11>, <&apdma 12>;
+	...
+};
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-07-25  6:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-18  7:06 [PATCH 1/2] dt-bindings: dma: Add Spreadtrum SC9860 DMA controller Baolin Wang
     [not found] ` <63f2b93b3e484862f736e37d6d422b5566637163.1500361078.git.baolin.wang-lxIno14LUO0EEoCn2XhGlw@public.gmane.org>
2017-07-18  7:06   ` [PATCH 2/2] dma: Add Spreadtrum DMA controller driver Baolin Wang
     [not found]     ` <4331ea088a26f515fe1f1912c568bfd07d539e9d.1500361078.git.baolin.wang-lxIno14LUO0EEoCn2XhGlw@public.gmane.org>
2017-07-21  2:50       ` Chunyan Zhang
     [not found]         ` <CAAfSe-sf=a_tAQm7rrnfUtOePRqvQrkmbN_M0hxSvLQ1KgocMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-07-21  3:27           ` Baolin Wang
2017-07-22  7:57       ` Vinod Koul
2017-07-24  6:46         ` Baolin Wang
     [not found]           ` <20170724064600.GB22149-lxIno14LUO0EEoCn2XhGlw@public.gmane.org>
2017-07-25  3:38             ` Vinod Koul
2017-07-25  6:28               ` Baolin Wang
2017-07-24 17:52 ` [PATCH 1/2] dt-bindings: dma: Add Spreadtrum SC9860 DMA controller Rob Herring
2017-07-25  6:23   ` Baolin Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).