From: Jingchang Lu <b35083@freescale.com>
To: vinod.koul@intel.com
Cc: shawn.guo@linaro.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
Jingchang Lu <b35083@freescale.com>
Subject: [PATCH RESEND 2/3] ARM: dts: vf610: Add eDMA node
Date: Fri, 11 Oct 2013 09:53:41 +0800 [thread overview]
Message-ID: <1381456421-7620-2-git-send-email-b35083@freescale.com> (raw)
In-Reply-To: <1381456421-7620-1-git-send-email-b35083@freescale.com>
Signed-off-by: Jingchang Lu <b35083@freescale.com>
---
arch/arm/boot/dts/vf610.dtsi | 49 +++++++++++++++++
include/dt-bindings/dma/vf610-edma.h | 103 +++++++++++++++++++++++++++++++++++
2 files changed, 152 insertions(+)
create mode 100644 include/dt-bindings/dma/vf610-edma.h
diff --git a/arch/arm/boot/dts/vf610.dtsi b/arch/arm/boot/dts/vf610.dtsi
index d31ce1b..365e0fa 100644
--- a/arch/arm/boot/dts/vf610.dtsi
+++ b/arch/arm/boot/dts/vf610.dtsi
@@ -10,6 +10,7 @@
#include "skeleton.dtsi"
#include "vf610-pinfunc.h"
#include <dt-bindings/clock/vf610-clock.h>
+#include <dt-bindings/dma/vf610-edma.h>
/ {
aliases {
@@ -87,6 +88,30 @@
arm,tag-latency = <2 2 2>;
};
+ edma0: dma-controller@40018000 {
+ #dma-cells = <2>;
+ compatible = "fsl,vf610-edma";
+ reg = <0x40018000 0x2000>;
+ interrupts = <0 8 0x04>, <0 9 0x04>;
+ interrupt-names = "edma-tx", "edma-err";
+ dma-channels = <32>;
+ fsl,dma-mux = <&dmamux0>, <&dmamux1>;
+ };
+
+ dmamux0: dmamux@40024000 {
+ reg = <0x40024000 0x1000>;
+ fsl,dmamux-id = <0>;
+ clocks = <&clks VF610_CLK_DMAMUX0>;
+ clock-names = "dmamux";
+ };
+
+ dmamux1: dmamux@40025000 {
+ reg = <0x40025000 0x1000>;
+ fsl,dmamux-id = <1>;
+ clocks = <&clks VF610_CLK_DMAMUX1>;
+ clock-names = "dmamux";
+ };
+
uart0: serial@40027000 {
compatible = "fsl,vf610-lpuart";
reg = <0x40027000 0x1000>;
@@ -432,6 +457,30 @@
reg = <0x40080000 0x80000>;
ranges;
+ edma1: dma-controller@40098000 {
+ #dma-cells = <2>;
+ compatible = "fsl,vf610-edma";
+ reg = <0x40098000 0x2000>;
+ interrupts = <0 10 0x04>, <0 11 0x04>;
+ interrupt-names = "edma-tx", "edma-err";
+ dma-channels = <32>;
+ fsl,dma-mux = <&dmamux2>, <&dmamux3>;
+ };
+
+ dmamux2: dmamux@400a1000 {
+ reg = <0x400a1000 0x1000>;
+ fsl,dmamux-id = <1>;
+ clocks = <&clks VF610_CLK_DMAMUX2>;
+ clock-names = "dmamux";
+ };
+
+ dmamux3: dmamux@400a2000 {
+ reg = <0x400a2000 0x1000>;
+ fsl,dmamux-id = <0>;
+ clocks = <&clks VF610_CLK_DMAMUX3>;
+ clock-names = "dmamux";
+ };
+
uart4: serial@400a9000 {
compatible = "fsl,vf610-lpuart";
reg = <0x400a9000 0x1000>;
diff --git a/include/dt-bindings/dma/vf610-edma.h b/include/dt-bindings/dma/vf610-edma.h
new file mode 100644
index 0000000..dbe1db2
--- /dev/null
+++ b/include/dt-bindings/dma/vf610-edma.h
@@ -0,0 +1,103 @@
+/*
+ * Copyright 2013 Freescale Semiconductor, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ *
+ */
+
+#ifndef __DT_BINDINGS_VF610_EDMA_H__
+#define __DT_BINDINGS_VF610_EDMA_H__
+
+/* DMAMUX0,3 reqeust source(slot) number */
+#define VF610_EDMA_MUXID0_UART0_RX 2
+#define VF610_EDMA_MUXID0_UART0_TX 3
+#define VF610_EDMA_MUXID0_UART1_RX 4
+#define VF610_EDMA_MUXID0_UART1_TX 5
+#define VF610_EDMA_MUXID0_UART2_RX 6
+#define VF610_EDMA_MUXID0_UART2_TX 7
+#define VF610_EDMA_MUXID0_UART3_RX 8
+#define VF610_EDMA_MUXID0_UART3_TX 9
+#define VF610_EDMA_MUXID0_DSPI0_RX 12
+#define VF610_EDMA_MUXID0_DSPI0_TX 13
+#define VF610_EDMA_MUXID0_DSPI1_RX 14
+#define VF610_EDMA_MUXID0_DSPI1_TX 15
+#define VF610_EDMA_MUXID0_SAI0_RX 16
+#define VF610_EDMA_MUXID0_SAI0_TX 17
+#define VF610_EDMA_MUXID0_SAI1_RX 18
+#define VF610_EDMA_MUXID0_SAI1_TX 19
+#define VF610_EDMA_MUXID0_SAI2_RX 20
+#define VF610_EDMA_MUXID0_SAI2_TX 21
+#define VF610_EDMA_MUXID0_PDB 22
+#define VF610_EDMA_MUXID0_FTM0_CH0 24
+#define VF610_EDMA_MUXID0_FTM0_CH1 25
+#define VF610_EDMA_MUXID0_FTM0_CH2 26
+#define VF610_EDMA_MUXID0_FTM0_CH3 27
+#define VF610_EDMA_MUXID0_FTM0_CH4 28
+#define VF610_EDMA_MUXID0_FTM0_CH5 29
+#define VF610_EDMA_MUXID0_FTM0_CH6 30
+#define VF610_EDMA_MUXID0_FTM0_CH7 31
+#define VF610_EDMA_MUXID0_FTM1_CH0 32
+#define VF610_EDMA_MUXID0_FTM1_CH1 33
+#define VF610_EDMA_MUXID0_ADC0 34
+#define VF610_EDMA_MUXID0_QUADSPI0 36
+#define VF610_EDMA_MUXID0_GPIOA 38
+#define VF610_EDMA_MUXID0_GPIOB 39
+#define VF610_EDMA_MUXID0_GPIOC 40
+#define VF610_EDMA_MUXID0_GPIOD 41
+#define VF610_EDMA_MUXID0_GPIOE 42
+#define VF610_EDMA_MUXID0_RLE_RX 45
+#define VF610_EDMA_MUXID0_RLE_TX 46
+#define VF610_EDMA_MUXID0_SPDIF_RX 47
+#define VF610_EDMA_MUXID0_SPDIF_TX 48
+#define VF610_EDMA_MUXID0_I2C0_RX 50
+#define VF610_EDMA_MUXID0_I2C0_TX 51
+#define VF610_EDMA_MUXID0_I2C1_RX 52
+#define VF610_EDMA_MUXID0_I2C1_TX 53
+
+/* DMA MUX1,2 request source(slot) number */
+#define VF610_EDMA_MUXID1_UART4_RX 2
+#define VF610_EDMA_MUXID1_UART4_TX 3
+#define VF610_EDMA_MUXID1_UART5_RX 4
+#define VF610_EDMA_MUXID1_UART5_TX 5
+#define VF610_EDMA_MUXID1_SAI3_RX 8
+#define VF610_EDMA_MUXID1_SAI3_TX 9
+#define VF610_EDMA_MUXID1_DSPI2_RX 10
+#define VF610_EDMA_MUXID1_DSPI2_TX 11
+#define VF610_EDMA_MUXID1_DSPI3_RX 12
+#define VF610_EDMA_MUXID1_DSPI3_TX 13
+#define VF610_EDMA_MUXID1_FTM2_CH0 16
+#define VF610_EDMA_MUXID1_FTM2_CH1 17
+#define VF610_EDMA_MUXID1_FTM3_CH0 18
+#define VF610_EDMA_MUXID1_FTM3_CH1 19
+#define VF610_EDMA_MUXID1_FTM3_CH2 20
+#define VF610_EDMA_MUXID1_FTM3_CH3 21
+#define VF610_EDMA_MUXID1_FTM3_CH4 22
+#define VF610_EDMA_MUXID1_FTM3_CH5 24
+#define VF610_EDMA_MUXID1_FTM3_CH6 25
+#define VF610_EDMA_MUXID1_FTM3_CH7 26
+#define VF610_EDMA_MUXID1_QUADSPI1 27
+#define VF610_EDMA_MUXID1_DAC0 32
+#define VF610_EDMA_MUXID1_DAC1 33
+#define VF610_EDMA_MUXID1_ESAI_BIFIFO_TX 34
+#define VF610_EDMA_MUXID1_ESAI_BIFIFO_RX 35
+#define VF610_EDMA_MUXID1_I2C2_RX 36
+#define VF610_EDMA_MUXID1_I2C2_TX 37
+#define VF610_EDMA_MUXID1_I2C3_RX 38
+#define VF610_EDMA_MUXID1_I2C3_TX 39
+#define VF610_EDMA_MUXID1_ASRC0_TX 40
+#define VF610_EDMA_MUXID1_ASRC0_RX 41
+#define VF610_EDMA_MUXID1_ASRC1_TX 42
+#define VF610_EDMA_MUXID1_ASRC1_RX 43
+#define VF610_EDMA_MUXID1_TIMER0 44
+#define VF610_EDMA_MUXID1_TIMER1 45
+#define VF610_EDMA_MUXID1_TIMER2 46
+#define VF610_EDMA_MUXID1_TIMER3 47
+#define VF610_EDMA_MUXID1_TIMER4 48
+#define VF610_EDMA_MUXID1_TIMER5 49
+#define VF610_EDMA_MUXID1_TIMER6 50
+#define VF610_EDMA_MUXID1_TIMER7 51
+
+#endif
--
1.8.0
prev parent reply other threads:[~2013-10-11 1:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-11 1:53 [PATCH RESEND 1/3] ARM: imx: Add DMAMUX clock for Vybrid vf610 SoC Jingchang Lu
2013-10-11 1:53 ` Jingchang Lu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1381456421-7620-2-git-send-email-b35083@freescale.com \
--to=b35083@freescale.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shawn.guo@linaro.org \
--cc=vinod.koul@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).