linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/2] ARM: dts: vf610: lpuart: Add eDMA support
@ 2014-01-15  5:21 Yuan Yao
  2014-01-15  5:21 ` [PATCH v3 2/2] serial: fsl_lpuart: add DMA support Yuan Yao
  0 siblings, 1 reply; 12+ messages in thread
From: Yuan Yao @ 2014-01-15  5:21 UTC (permalink / raw)
  To: gregkh, shawn.guo; +Cc: linux, arnd, linux-arm-kernel, linux-serial

Add lpuart dts node properties for eDMA support, them depend on the eDMA driver.
See VF610_EDMA_MUXID0_UART*_*X macro on eDMA driver

Signed-off-by: Yuan Yao <yao.yuan@freescale.com>
---
 arch/arm/boot/dts/vf610.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/vf610.dtsi b/arch/arm/boot/dts/vf610.dtsi
index 365e0fa..ed6b053 100644
--- a/arch/arm/boot/dts/vf610.dtsi
+++ b/arch/arm/boot/dts/vf610.dtsi
@@ -118,6 +118,9 @@
 				interrupts = <0 61 0x00>;
 				clocks = <&clks VF610_CLK_UART0>;
 				clock-names = "ipg";
+				dma-names = "lpuart-tx","lpuart-rx";
+				dmas = <&edma0 0 VF610_EDMA_MUXID0_UART0_TX>,
+					<&edma0 0 VF610_EDMA_MUXID0_UART0_RX>;
 				status = "disabled";
 			};
 
@@ -127,6 +130,9 @@
 				interrupts = <0 62 0x04>;
 				clocks = <&clks VF610_CLK_UART1>;
 				clock-names = "ipg";
+				dma-names = "lpuart-tx","lpuart-rx";
+				dmas = <&edma0 0 VF610_EDMA_MUXID0_UART1_TX>,
+					<&edma0 0 VF610_EDMA_MUXID0_UART1_RX>;
 				status = "disabled";
 			};
 
@@ -136,6 +142,9 @@
 				interrupts = <0 63 0x04>;
 				clocks = <&clks VF610_CLK_UART2>;
 				clock-names = "ipg";
+				dma-names = "lpuart-tx","lpuart-rx";
+				dmas = <&edma0 0 VF610_EDMA_MUXID0_UART2_TX>,
+					<&edma0 0 VF610_EDMA_MUXID0_UART2_RX>;
 				status = "disabled";
 			};
 
@@ -145,6 +154,9 @@
 				interrupts = <0 64 0x04>;
 				clocks = <&clks VF610_CLK_UART3>;
 				clock-names = "ipg";
+				dma-names = "lpuart-tx","lpuart-rx";
+				dmas = <&edma0 0 VF610_EDMA_MUXID0_UART3_TX>,
+					<&edma0 0 VF610_EDMA_MUXID0_UART3_RX>;
 				status = "disabled";
 			};
 
-- 
1.8.4



^ permalink raw reply related	[flat|nested] 12+ messages in thread
* [PATCH v3 0/2] serial: fsl_lpuart: add DMA support
@ 2014-01-15  5:24 Yuan Yao
  2014-01-15  5:24 ` [PATCH v3 2/2] " Yuan Yao
  0 siblings, 1 reply; 12+ messages in thread
From: Yuan Yao @ 2014-01-15  5:24 UTC (permalink / raw)
  To: gregkh, shawn.guo; +Cc: linux, arnd, linux-arm-kernel, linux-serial

Changed in v3:
- Use the streaming DMA API for receive.
- Add the macro(SERIAL_FSL_LPUART_DMA) and dts node propertie for whether using the dma.
- Adjust some coding style.

Changed in v2:
- Add eDMA support for lpuart receive.
- Use dma_mapping_error test dma_map_single.
- Change some names of variable.
- Fix some bugs.
 
 Added in v1:
 - Add device tree bindings for lupart eDMA support.
 - Add eDMA support for lpuart send.



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

end of thread, other threads:[~2014-01-22  3:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-15  5:21 [PATCH v3 1/2] ARM: dts: vf610: lpuart: Add eDMA support Yuan Yao
2014-01-15  5:21 ` [PATCH v3 2/2] serial: fsl_lpuart: add DMA support Yuan Yao
2014-01-15  9:25   ` Arnd Bergmann
2014-01-16  6:02     ` Yao Yuan
2014-01-16  8:19     ` Yao Yuan
2014-01-16 10:47       ` Arnd Bergmann
2014-01-15 11:05   ` Mark Rutland
2014-01-15 11:17     ` Arnd Bergmann
2014-01-15 13:50       ` Mark Rutland
2014-01-16  6:54     ` Yao Yuan
2014-01-22  3:41       ` Yao Yuan
  -- strict thread matches above, loose matches on Subject: below --
2014-01-15  5:24 [PATCH v3 0/2] " Yuan Yao
2014-01-15  5:24 ` [PATCH v3 2/2] " Yuan Yao

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).