dmaengine Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH v4] arm64: dts: allwinner: h6: Add DMA node
@ 2019-06-11 21:40 Clément Péron
  2019-06-12 13:26 ` Maxime Ripard
  0 siblings, 1 reply; 2+ messages in thread
From: Clément Péron @ 2019-06-11 21:40 UTC (permalink / raw)
  To: Vinod Koul, Rob Herring, Mark Rutland, Maxime Ripard,
	Chen-Yu Tsai, Dan Williams
  Cc: dmaengine, devicetree, linux-arm-kernel, linux-kernel,
	Jernej Skrabec, Clément Péron

From: Jernej Skrabec <jernej.skrabec@siol.net>

H6 has DMA controller which supports 16 channels.

Add a node for it.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Clément Péron <peron.clem@gmail.com>
---

Changes since v3:
 - Rebase on top of sunxi/for-next
 - Sort by physical address

 arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
index b9a7dc8d2a40..7628a7c83096 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
@@ -203,6 +203,18 @@
 			#reset-cells = <1>;
 		};
 
+		dma: dma-controller@3002000 {
+			compatible = "allwinner,sun50i-h6-dma";
+			reg = <0x03002000 0x1000>;
+			interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&ccu CLK_BUS_DMA>, <&ccu CLK_MBUS_DMA>;
+			clock-names = "bus", "mbus";
+			dma-channels = <16>;
+			dma-requests = <46>;
+			resets = <&ccu RST_BUS_DMA>;
+			#dma-cells = <1>;
+		};
+
 		sid: sid@3006000 {
 			compatible = "allwinner,sun50i-h6-sid";
 			reg = <0x03006000 0x400>;
-- 
2.20.1


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

* Re: [PATCH v4] arm64: dts: allwinner: h6: Add DMA node
  2019-06-11 21:40 [PATCH v4] arm64: dts: allwinner: h6: Add DMA node Clément Péron
@ 2019-06-12 13:26 ` Maxime Ripard
  0 siblings, 0 replies; 2+ messages in thread
From: Maxime Ripard @ 2019-06-12 13:26 UTC (permalink / raw)
  To: Clément Péron
  Cc: Vinod Koul, Rob Herring, Mark Rutland, Chen-Yu Tsai,
	Dan Williams, dmaengine, devicetree, linux-arm-kernel,
	linux-kernel, Jernej Skrabec

[-- Attachment #1: Type: text/plain, Size: 430 bytes --]

On Tue, Jun 11, 2019 at 11:40:55PM +0200, Clément Péron wrote:
> From: Jernej Skrabec <jernej.skrabec@siol.net>
>
> H6 has DMA controller which supports 16 channels.
>
> Add a node for it.
>
> Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
> Signed-off-by: Clément Péron <peron.clem@gmail.com>

Applied, thanks!
Maxime

--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-11 21:40 [PATCH v4] arm64: dts: allwinner: h6: Add DMA node Clément Péron
2019-06-12 13:26 ` Maxime Ripard

dmaengine Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/dmaengine/0 dmaengine/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dmaengine dmaengine/ https://lore.kernel.org/dmaengine \
		dmaengine@vger.kernel.org
	public-inbox-index dmaengine

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.dmaengine


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git