Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1627832imm; Wed, 19 Sep 2018 23:43:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYzG4D/MCTcNTU26ajg/6LyiwKTGhYB0deoUexr59bOSKCHME1E/kaKwqC0D3/btkKEO5BL X-Received: by 2002:a63:df04:: with SMTP id u4-v6mr36324828pgg.434.1537425805016; Wed, 19 Sep 2018 23:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537425804; cv=none; d=google.com; s=arc-20160816; b=P/q/34v/FsO73FxXQBNGqe/Vip6zI1Fb7uAU8c4GjEgqbF31GfV6+RlXH2LrJye7Y0 B2HHssMryxsl0vWrJoN2GusA1Otkpf657y6edTPWKX4uiJ/alLbFbD+tZqVHqKeZiGr2 xkl1RvB1qA9g17DatVC849WbJJBx/QniGTNapRMxpZyl/n7p+cnUf9ESAnh4qLuQOLCt Ujyb5Is5JtxdhjUzKrDew2WpwyzXIdmea88e7tRsvHgTZzLse4aoS1rK6PvMxuhP0NVB EAhG2j/b8uSJFpe3hsEgNrVQlnhcel7q3M/pbypnwqRl9VtdZ/h58NtWSsoi2O7wNLP8 oZaA== 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=3EB9vUIRxXCpFzeP4qW4U5XdcT4bdKyFmyKddIA8JYI=; b=r5+jwU4fWH8iu2M+Jr21fjxBnxG8IGaYbFifk2qt0+BevN2VeGge/XU6jLfaPELOHW ljdJCW41EJRuTCytG6Cmk3iwAPlmnNKhXfUwTtjV2tyc6/AQBQLB2sREhdvAlKhYhgQb lKGjo3fWStkCqhu9lXCo+2BLuC8mZjDuvlmmxA1IiIiqOpEY+H3wbUCAugbD5/xzB+ol 649RAxoCt5xg7l2YhVyjsDrNlZIU/GU78+/+hIkUUVy0ADnLaxgtqTJEsO0VdyoYrYxp teA6rrR5ljGjK+F6tZO9Ig3jrAUkb7C4ih8bjpK6gqT/qhxKPNPDc2jaitW7V0YXuU+L rqoQ== 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 h14-v6si23029033pfo.361.2018.09.19.23.43.09; Wed, 19 Sep 2018 23:43:24 -0700 (PDT) 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 S1731684AbeITMXg (ORCPT + 99 others); Thu, 20 Sep 2018 08:23:36 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:8174 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731159AbeITMXf (ORCPT ); Thu, 20 Sep 2018 08:23:35 -0400 X-UUID: 71354c29b3a44c4bb770fab526698269-20180920 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 610914191; Thu, 20 Sep 2018 14:41:37 +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.1210.3; Thu, 20 Sep 2018 14:41:35 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Thu, 20 Sep 2018 14:41:34 +0800 From: Long Cheng To: Vinod Koul , Rob Herring , Mark Rutland CC: Matthias Brugger , Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Ed Blake , Long Cheng , , , , , , , , Yingjoe Chen , YT Shen Subject: [PATCH 0/4] add uart DMA function Date: Thu, 20 Sep 2018 14:41:09 +0800 Message-ID: <1537425673-18807-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: B07FE630EE267F38493279D12D954B3CC1733D277661529957BDE1DBC86DEF992000: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 DMA function. 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 | 32 + arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 50 + drivers/dma/8250_mtk_dma.c | 1049 ++++++++++++++++++++ drivers/dma/Kconfig | 11 + drivers/dma/Makefile | 1 + drivers/tty/serial/8250/8250_mtk.c | 211 +++- 6 files changed, 1353 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/dma/8250_mtk_dma.txt create mode 100644 drivers/dma/8250_mtk_dma.c -- 1.7.9.5