linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: b32955@freescale.com (Huang Shijie)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 0/6] serial: imx: add DMA support for imx6
Date: Fri, 5 Jul 2013 14:12:26 +0800	[thread overview]
Message-ID: <1373004752-21302-1-git-send-email-b32955@freescale.com> (raw)

(1) This patch set adds the DMA support for the imx serial driver.
    The uart with the dma support is usually used by the Bluetooth.

    For the firmware's limit, i only enable the DMA for imx6 serials.
    If we have proper firmware for imx53 (or other chips), we can also
    enable the DMA for it.

(2) We only enable the DMA support when the following are meet:

    [1] The uart port supports the hardware flow control(CTS/RTS).
      (Some uart port does not support the CTS/RTS.)

    [2] The application enables the CTS/RTS.

    [3] The Soc is imx6 serials.
      For the sdma's firmware limit, we do not support the DMA except
      the imx6 platform.

    [4] The uart is not used as a console.


(3) Tested this patch set by:
	connecting a imx6q-arm2 board(DTE) with a imx53 board(DCE).

v2 --> v3:
	[0] add a new patch to fix the RTS/CTS pad name issue.
	[1] rename the uart DTE pinctrl, remove the "dte" from the pinctrl.
	[2] add a similar UART DTE pinctrl for IMX6DL.
	[3] move the "fsl,imx6q-uart" to the first of the compatible table.

v1 --> v2:
	[0] use the "fsl,imx6q-uart" as the new compatible value.
	[1] move dma_is_inited to imx_uart_dma_init();
	    move dma_is_enabled to imx_enable_dma();
	[2] move imx_disable_dma() to the front place of the imx_shutdown(),
	    just before calls the imx_uart_dma_exit().
	[3] misc    
	

Huang Shijie (6):
  serial: imx: distinguish the imx6q uart from the others
  serial: imx: add DMA support for imx6q
  ARM: dts: imx6sl: add "fsl,imx6q-uart" for uart compatible
  ARM: dts: imx6q{dl}: fix the wrong RTS/CTS pad name
  ARM: dts: imx6q{dl}: add a DTE uart pinctrl for uart2
  ARM: dts: enable the uart2 for imx6q-arm2

 arch/arm/boot/dts/imx6dl-pinfunc.h |   88 ++++----
 arch/arm/boot/dts/imx6dl.dtsi      |    9 +
 arch/arm/boot/dts/imx6q-arm2.dts   |   10 +
 arch/arm/boot/dts/imx6q-pinfunc.h  |   88 ++++----
 arch/arm/boot/dts/imx6q.dtsi       |    9 +
 arch/arm/boot/dts/imx6sl.dtsi      |   15 +-
 drivers/tty/serial/imx.c           |  422 +++++++++++++++++++++++++++++++++++-
 7 files changed, 541 insertions(+), 100 deletions(-)

             reply	other threads:[~2013-07-05  6:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-05  6:12 Huang Shijie [this message]
2013-07-05  6:12 ` [PATCH v3 1/6] serial: imx: distinguish the imx6q uart from the others Huang Shijie
2013-07-05  6:12 ` [PATCH v3 2/6] serial: imx: add DMA support for imx6q Huang Shijie
2013-07-05  6:12 ` [PATCH v3 3/6] ARM: dts: imx6sl: add "fsl, imx6q-uart" for uart compatible Huang Shijie
2013-07-05  6:12 ` [PATCH v3 4/6] ARM: dts: imx6q{dl}: fix the wrong RTS/CTS pad name Huang Shijie
2013-07-06  5:08   ` Shawn Guo
2013-07-07 11:51     ` Lothar Waßmann
2013-07-08  2:42       ` Shawn Guo
2013-07-08  6:31       ` Huang Shijie
2013-07-08  7:32         ` Lothar Waßmann
2013-07-08  8:54           ` Huang Shijie
2013-07-08  7:50       ` Russell King - ARM Linux
2013-07-08  8:03         ` Lothar Waßmann
2013-07-08  8:54         ` Huang Shijie
2013-07-05  6:12 ` [PATCH v3 5/6] ARM: dts: imx6q{dl}: add a DTE uart pinctrl for uart2 Huang Shijie
2013-07-05  6:12 ` [PATCH v3 6/6] ARM: dts: enable the uart2 for imx6q-arm2 Huang Shijie

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=1373004752-21302-1-git-send-email-b32955@freescale.com \
    --to=b32955@freescale.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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).