From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751708AbdAYPeb (ORCPT ); Wed, 25 Jan 2017 10:34:31 -0500 Received: from smtprelay.synopsys.com ([198.182.47.9]:54874 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751644AbdAYPe2 (ORCPT ); Wed, 25 Jan 2017 10:34:28 -0500 From: Eugeniy Paltsev To: dmaengine@vger.kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-snps-arc@lists.infradead.org, Dan Williams , Vinod Koul , Mark Rutland , Rob Herring , Andy Shevchenko , Alexey Brodkin , Eugeniy Paltsev Subject: [PATCH 1/2] dt-bindings: Document the Synopsys DW AXI DMA bindings Date: Wed, 25 Jan 2017 18:34:16 +0300 Message-Id: <1485358457-22957-2-git-send-email-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1485358457-22957-1-git-send-email-Eugeniy.Paltsev@synopsys.com> References: <1485358457-22957-1-git-send-email-Eugeniy.Paltsev@synopsys.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds documentation of device tree bindings for the Synopsys DesignWare AXI DMA controller. Signed-off-by: Eugeniy Paltsev --- .../devicetree/bindings/dma/snps,axi-dw-dmac.txt | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt diff --git a/Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt b/Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt new file mode 100644 index 0000000..21318a7 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt @@ -0,0 +1,33 @@ +* Synopsys DesignWare AXI DMA Controller + +Required properties: +- compatible: "snps,axi-dma" +- reg: Address range of the DMAC registers. This should include + all of the per-channel registers. +- interrupt: Should contain the DMAC interrupt number. +- interrupt-parent: Should be the phandle for the interrupt controller + that services interrupts for this device. +- dma-channels: Number of channels supported by hardware. +- dma-masters: Number of AXI masters supported by the hardware. +- data-width: Maximum AXI data width supported by hardware. + (0 - 8bits, 1 - 16bits, 2 - 32bits, ..., 6 - 512bits) +- priority: Priority of channel. Array property. Priority value must be + programmed within [0:dma-channels-1] range. (0 - minimum priority) +- block-size: Maximum block size supported by the controller channel. Array + property. + +Example: + +dmac: dmac@80000 { + compatible = "snps,axi-dma"; + reg = <0x80000 0x400>; + clocks = <&core_clk>; + interrupt-parent = <&intc>; + interrupts = <27>; + + dma-channels = <4>; + dma-masters = <2>; + data-width = <3>; + block-size = <4096 4096 4096 4096>; + priority = <0 1 2 3>; +}; -- 2.5.5 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eugeniy Paltsev Subject: [PATCH 1/2] dt-bindings: Document the Synopsys DW AXI DMA bindings Date: Wed, 25 Jan 2017 18:34:16 +0300 Message-ID: <1485358457-22957-2-git-send-email-Eugeniy.Paltsev@synopsys.com> References: <1485358457-22957-1-git-send-email-Eugeniy.Paltsev@synopsys.com> Return-path: In-Reply-To: <1485358457-22957-1-git-send-email-Eugeniy.Paltsev-HKixBCOQz3hWk0Htik3J/w@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-snps-arc-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Dan Williams , Vinod Koul , Mark Rutland , Rob Herring , Andy Shevchenko , Alexey Brodkin , Eugeniy Paltsev List-Id: devicetree@vger.kernel.org This patch adds documentation of device tree bindings for the Synopsys DesignWare AXI DMA controller. Signed-off-by: Eugeniy Paltsev --- .../devicetree/bindings/dma/snps,axi-dw-dmac.txt | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt diff --git a/Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt b/Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt new file mode 100644 index 0000000..21318a7 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt @@ -0,0 +1,33 @@ +* Synopsys DesignWare AXI DMA Controller + +Required properties: +- compatible: "snps,axi-dma" +- reg: Address range of the DMAC registers. This should include + all of the per-channel registers. +- interrupt: Should contain the DMAC interrupt number. +- interrupt-parent: Should be the phandle for the interrupt controller + that services interrupts for this device. +- dma-channels: Number of channels supported by hardware. +- dma-masters: Number of AXI masters supported by the hardware. +- data-width: Maximum AXI data width supported by hardware. + (0 - 8bits, 1 - 16bits, 2 - 32bits, ..., 6 - 512bits) +- priority: Priority of channel. Array property. Priority value must be + programmed within [0:dma-channels-1] range. (0 - minimum priority) +- block-size: Maximum block size supported by the controller channel. Array + property. + +Example: + +dmac: dmac@80000 { + compatible = "snps,axi-dma"; + reg = <0x80000 0x400>; + clocks = <&core_clk>; + interrupt-parent = <&intc>; + interrupts = <27>; + + dma-channels = <4>; + dma-masters = <2>; + data-width = <3>; + block-size = <4096 4096 4096 4096>; + priority = <0 1 2 3>; +}; -- 2.5.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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eugeniy.Paltsev@synopsys.com (Eugeniy Paltsev) Date: Wed, 25 Jan 2017 18:34:16 +0300 Subject: [PATCH 1/2] dt-bindings: Document the Synopsys DW AXI DMA bindings In-Reply-To: <1485358457-22957-1-git-send-email-Eugeniy.Paltsev@synopsys.com> References: <1485358457-22957-1-git-send-email-Eugeniy.Paltsev@synopsys.com> List-ID: Message-ID: <1485358457-22957-2-git-send-email-Eugeniy.Paltsev@synopsys.com> To: linux-snps-arc@lists.infradead.org This patch adds documentation of device tree bindings for the Synopsys DesignWare AXI DMA controller. Signed-off-by: Eugeniy Paltsev --- .../devicetree/bindings/dma/snps,axi-dw-dmac.txt | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt diff --git a/Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt b/Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt new file mode 100644 index 0000000..21318a7 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/snps,axi-dw-dmac.txt @@ -0,0 +1,33 @@ +* Synopsys DesignWare AXI DMA Controller + +Required properties: +- compatible: "snps,axi-dma" +- reg: Address range of the DMAC registers. This should include + all of the per-channel registers. +- interrupt: Should contain the DMAC interrupt number. +- interrupt-parent: Should be the phandle for the interrupt controller + that services interrupts for this device. +- dma-channels: Number of channels supported by hardware. +- dma-masters: Number of AXI masters supported by the hardware. +- data-width: Maximum AXI data width supported by hardware. + (0 - 8bits, 1 - 16bits, 2 - 32bits, ..., 6 - 512bits) +- priority: Priority of channel. Array property. Priority value must be + programmed within [0:dma-channels-1] range. (0 - minimum priority) +- block-size: Maximum block size supported by the controller channel. Array + property. + +Example: + +dmac: dmac at 80000 { + compatible = "snps,axi-dma"; + reg = <0x80000 0x400>; + clocks = <&core_clk>; + interrupt-parent = <&intc>; + interrupts = <27>; + + dma-channels = <4>; + dma-masters = <2>; + data-width = <3>; + block-size = <4096 4096 4096 4096>; + priority = <0 1 2 3>; +}; -- 2.5.5