Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2653554imu; Thu, 17 Jan 2019 19:12:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN7m30HfG4wfPkMGGuFUmDwj5dyQPh9l7R3MZFJgdywmSGVY84eCa9nVccAYCTo4VznNWVNH X-Received: by 2002:a63:3d49:: with SMTP id k70mr15956382pga.191.1547781122292; Thu, 17 Jan 2019 19:12:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547781122; cv=none; d=google.com; s=arc-20160816; b=Qj7U9Ll0CTsmj86jmsgHLmOAm5v7ufA51kxdA4L2+Kk3TW7lChWWqW8+7Hvq9m0E6h uQIpL+Wm4ukC0w/qBmK+6a0QVqLbmL0Qeup/LIku+fkHDIZ2GvVFHxu/T51xw1gDlx6K hqJK8mfvTPDFrBBxptFFp/gXxZKAko0NtlGjAoPqX4qd5vFxl1XCGnCCpVfOXEyam/vu z2OqxkkOBHPXzI300dY+17CWW5gKlrTbs7R92X75dXlfeZCyF1OPV/S7GPGVYOJDQSD6 TMTB9N19SJb90zvjRUiBsaZjdRIB0IVGNgwmJ2wTz01JpCWTURrXBNJzNnMOs7g9+BAn XfWg== 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=TS/uWG+hm6TXDJJ7BaQ51i1hGwmYcEa4D2zhjYWImyM=; b=RyNdrIjtm3ZiKTymqNE/0kM2DjvGsqo1VXy4JF2dJem3pWkGpgCi69IPym79f1X4NK ct6KBG9VEhA291E9gbkgIX3+ySJBMWScKsmBfpi0Xo2f78JeZ4BPdiIdueBBQLWUn9uA 2ILRL00YChnLG2V4F61Nb0hMpuEQBUS5hegn0noXyHEqZX5PTi38n5/C2IyvWaWGsmUT AIhBl9GZqshHK7FoPclSwedpMZgLtyvrMW3YEJgwXKV2LQ0NGAq69JW/RZ3b7b5fuvLA jX2lGAwoIfl8LtnbNs7GH6shvCTTpd8A5ZRTre2n4ycxMuUZyOYeUqCf58h9xtcxVvvC ys5Q== 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 l96si3487799plb.292.2019.01.17.19.11.46; Thu, 17 Jan 2019 19:12:02 -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 S1727078AbfARDKh (ORCPT + 99 others); Thu, 17 Jan 2019 22:10:37 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:30851 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726853AbfARDKg (ORCPT ); Thu, 17 Jan 2019 22:10:36 -0500 X-UUID: e36a4e5bede84b238f1f241c0b5703ac-20190118 X-UUID: e36a4e5bede84b238f1f241c0b5703ac-20190118 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 345485991; Fri, 18 Jan 2019 11:10:22 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 18 Jan 2019 11:10:20 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 18 Jan 2019 11:10:18 +0800 From: Long Cheng To: Vinod Koul , Randy Dunlap , Rob Herring , Mark Rutland , Ryder Lee , Sean Wang , Nicolas Boichat CC: Matthias Brugger , Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , , , , , , , , Yingjoe Chen , YT Shen , Zhenbao Liu , Long Cheng Subject: [PATCH v10 0/3] add uart DMA function Date: Fri, 18 Jan 2019 11:10:13 +0800 Message-ID: <1547781016-890-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: 009D2B9849D936A7FDD77529FA925E9C37B99D604CB49D71C0F7AFF64189B0222000: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/mediatek. 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 Changes compared to v9 -rename dt-bindings file -remove direction from device_config -simplified code Changes compared to v8 -revise missing items Changes compared to v7: -modify apdma uart tx Changes compared to v6: -Correct spelling Changes compared to v5: -move 'requst irqs' to alloc channel -remove tasklet. Changes compared to v4: -modify Kconfig depends on. Changes compared to v3: -fix CONFIG_PM, will cause build fail Changes compared to v2: -remove unimportant parameters -instead of cookie, use APIs of virtual channel. -use of_dma_xlate_by_chan_id. Changes compared to v1: -mian revised file, 8250_mtk_dma.c --parameters renamed for standard --remove atomic operation Long Cheng (3): dmaengine: 8250_mtk_dma: add MediaTek uart DMA support arm: dts: mt2712: add uart APDMA to device tree dt-bindings: dma: uart: rename binding .../devicetree/bindings/dma/8250_mtk_dma.txt | 33 - .../devicetree/bindings/dma/mtk-uart-apdma.txt | 33 + arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 51 ++ drivers/dma/mediatek/Kconfig | 11 + drivers/dma/mediatek/Makefile | 1 + drivers/dma/mediatek/mtk-uart-apdma.c | 669 ++++++++++++++++++++ 6 files changed, 765 insertions(+), 33 deletions(-) delete mode 100644 Documentation/devicetree/bindings/dma/8250_mtk_dma.txt create mode 100644 Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt create mode 100644 drivers/dma/mediatek/mtk-uart-apdma.c -- 1.7.9.5