Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9221756imu; Wed, 5 Dec 2018 00:45:58 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xv5kRNPqmpnEHKNKDuH0gxbRZPlw5vTTFf4N9TsE6kdpdqWONfOtA1Fwv2CD9wuy7yku3D X-Received: by 2002:a63:c64f:: with SMTP id x15mr19118704pgg.16.1543999558720; Wed, 05 Dec 2018 00:45:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543999558; cv=none; d=google.com; s=arc-20160816; b=Kt1nG/KSF8YlXjPA93fZndBGKz5KPG9lx4Ib3aEedXK2LNbffK96dLkunyneYrufH8 2unMshoANbmL+59X10RclhVPaTIlpEpsw9Y7NfXBFsBiMuuNqX1fSHTJpxBHC+Q1k/+s 6gday1uZBPJHAoJvAbpReA/x997nUwH7PYhYolKWjLTuHNC5Tn5cjdK1X0R7VeYjc6Ep JuXi86IGf3pRFxIPzAi/+HT6FGaPMJBS6Gp8UdjB2LQajmYfZc9DCMzOBV+9ShPkzJD0 z4RY/skzOHMN3fmaH0eQ5WdnSbWXqVP6pbQ6oS0tLEUVew3NGm8ekHHBpJqmQ/SNhHNs /0Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=rfqyZCOdueGxP7vUMGE69qLYOh0I6/EQ8H2vR+l00wQ=; b=ri62bqkO7loDj8Vm6va7cMPxeXGP5UDIIOO1O78omGDVp0gasjif26MJH3Mb/rIAcu wp0Zwmvk+V7PUIpxgN7YWPIi7VNX3Vezq1qrwNteVoj6p1/f1omhwbm3tKBul0Jlk/vZ hFyoagQawgbbsiSEvR0MPNaFPPogXX7evcm3+JWmHdS0vhSO/z/tPFs53nI/1f+xvZ40 Ff+8YH5DcZKZ8KRmnr/K10+RkNvNZPnv+rSFbUCdliI+hTgcQIwBzbTHggMHnlATg+wS 41Rpx/GI0C/qwAC+Ysm//HWMWg4+fNVuDavsbZMHaw3kvL6b5FATIs8Biv2ILNbevZdc 6Xfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si16353038pgk.249.2018.12.05.00.45.44; Wed, 05 Dec 2018 00:45:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727410AbeLEInx (ORCPT + 99 others); Wed, 5 Dec 2018 03:43:53 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:38611 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726909AbeLEInw (ORCPT ); Wed, 5 Dec 2018 03:43:52 -0500 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 CC: Matthias Brugger , Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , Long Cheng , , , , , , , , Yingjoe Chen , YT Shen 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 Content-Type: text/plain X-TM-SNTS-SMTP: 90B429745623B590E9A6ABAA0364BB6B9918717643458D63E3F14EAE56F7D0452000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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