From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.7 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, UNPARSEABLE_RELAY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 749D0C04EB9 for ; Wed, 5 Dec 2018 08:49:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2C11A206B7 for ; Wed, 5 Dec 2018 08:49:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iFwMgRYa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2C11A206B7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=t2aPb6M/0ZrzuUiTdGhMgAIk1aKhQs4CXsoObNh3CTk=; b=iFwMgRYajgq5pN v1KT0DT69HJSMCigKyNikNppZ920B2nrW8qQFfjQvU7vMZFvMGhTDMazsjuw5noKBiYchrYi2P0Pd WpYuPfq0sR/LDedY4RuMn7WEqfkspRj7drxqfgo5tw3768Q6tN7FuXzQUH+vwugNQezRkDo9xHu8M dHru0kp7O9Qj4k+rupF00oFH2jprGqqsBdalx+bBgo05ESKVljd750riWtB1gPSIKvV8DS2IV0T0A rR98mQEWIX7I3rC2cV4NUyCwc7gPsYkDGQtWJx/Rf3lXZgKOQD6dDyemSKk5Y2GHXB9GWyF8R2Oof mM1rpfq2LLWAR8t+jw1Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gUSsO-0005xk-CZ; Wed, 05 Dec 2018 08:49:48 +0000 Received: from [210.61.82.184] (helo=mailgw02.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gUSs1-0005bv-A9; Wed, 05 Dec 2018 08:49:27 +0000 X-UUID: afdfc0b02a554653964c9643705e9e10-20181205 X-UUID: afdfc0b02a554653964c9643705e9e10-20181205 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1919373343; Wed, 05 Dec 2018 16:43:38 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 5 Dec 2018 16:43:21 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 5 Dec 2018 16:43:20 +0800 From: Long Cheng To: Vinod Koul , Rob Herring , Mark Rutland Subject: [PATCH v2 0/4] add uart DMA function Date: Wed, 5 Dec 2018 16:42:56 +0800 Message-ID: <1543999380-7946-1-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-TM-SNTS-SMTP: 90B429745623B590E9A6ABAA0364BB6B9918717643458D63E3F14EAE56F7D0452000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181205_004925_486636_AFB78F5C X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, YT Shen , srv_heupstream@mediatek.com, Greg Kroah-Hartman , Sean Wang , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Long Cheng , linux-mediatek@lists.infradead.org, linux-serial@vger.kernel.org, Jiri Slaby , Matthias Brugger , Yingjoe Chen , Dan Williams , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org In Mediatek SOCs, the uart can support DMA function. Base on DMA engine formwork, we add the DMA code to support uart. And put the code under drivers/dma. This series contains document bindings, Kconfig to control the function enable or not, device tree including interrupt and dma device node, the code of UART DM Changes compared to v1: -mian revised file, 8250_mtk_dma.c --parameters renamed for standard --remove atomic operation Long Cheng (4): dt-bindings: dma: uart: add uart dma bindings dmaengine: mtk_uart_dma: add Mediatek uart DMA support serial: 8250-mtk: add uart DMA support arm: dts: mt2701: add uart APDMA to device tree .../devicetree/bindings/dma/8250_mtk_dma.txt | 33 + arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 50 ++ drivers/dma/mediatek/8250_mtk_dma.c | 894 ++++++++++++++++++++ drivers/dma/mediatek/Kconfig | 11 + drivers/dma/mediatek/Makefile | 1 + drivers/tty/serial/8250/8250_mtk.c | 210 ++++- 6 files changed, 1198 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/dma/8250_mtk_dma.txt create mode 100644 drivers/dma/mediatek/8250_mtk_dma.c _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel