From: Alexander Popov Subject: [PATCH RFC v11 5/6] dma: mpc512x: add device tree binding document Date: Tue, 15 Apr 2014 14:54:09 +0400 Message-ID: <1397559250-17680-6-git-send-email-a13xp0p0v88@gmail.com> References: <1397559250-17680-1-git-send-email-a13xp0p0v88@gmail.com> Return-path: In-Reply-To: <1397559250-17680-1-git-send-email-a13xp0p0v88-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Gerhard Sittig , Dan Williams , Vinod Koul , Lars-Peter Clausen , Arnd Bergmann , Anatolij Gustschin , Andy Shevchenko , Alexander Popov , linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org Introduce a device tree binding document for the MPC512x DMA controller Signed-off-by: Gerhard Sittig Signed-off-by: Alexander Popov --- .../devicetree/bindings/dma/mpc512x-dma.txt | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/mpc512x-dma.txt diff --git a/Documentation/devicetree/bindings/dma/mpc512x-dma.txt b/Documentation/devicetree/bindings/dma/mpc512x-dma.txt new file mode 100644 index 0000000..92eb0d9 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/mpc512x-dma.txt @@ -0,0 +1,51 @@ +* Freescale MPC512x and MPC8308 DMA Controller + +The DMA controller in the Freescale MPC512x and MPC8308 SoCs can move +blocks of memory contents between memory and peripherals or +from memory to memory. + +Refer to the "Generic DMA Controller and DMA request bindings" in +the dma/dma.txt file for a more detailed description of binding. + +* DMA controller + +Required properties: +- compatible: Should be one of + "fsl,mpc5121-dma" + "fsl,mpc8308-dma", "fsl,mpc5121-dma" +- reg: Address and size of the DMA controller's register set +- interrupts: Interrupt for the DMA controller. Generic interrupt client node + is described in interrupt-controller/interrupts.txt + +Optional properties: +- #dma-cells: The length of the DMA specifier, must be <1> since + the DMA controller uses a fixed assignment of request lines + per channel. Refer to dma/dma.txt for the detailed description + of this property + +Example: + + dma0: dma@14000 { + compatible = "fsl,mpc5121-dma"; + reg = <0x14000 0x1800>; + interrupts = <65 0x8>; + #dma-cells = <1>; + }; + +* DMA client + +Required properties: +- dmas: List of one or more DMA request specifiers. One DMA request specifier + consists of a phandle to the DMA controller node followed by + the integer specifying the request line +- dma-names: Contains an identifier string for each DMA request specifier. + Refer to dma/dma.txt for the description of this property + +Example: + + sdhc@1500 { + compatible = "fsl,mpc5121-sdhc"; + /* ... */ + dmas = <&dma0 30>; + dma-names = "rx-tx"; + }; -- 1.8.4.2 -- 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