Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1609309imm; Thu, 18 Oct 2018 00:50:14 -0700 (PDT) X-Google-Smtp-Source: ACcGV61kyWAm93ZvPGpE3a2SaMiW4IGGZca2rKTQ+cmoC4MmGFiOyAb5IiV0GEqgLgcBKp4ZFy7C X-Received: by 2002:a63:c5a:: with SMTP id 26-v6mr27527250pgm.372.1539849014855; Thu, 18 Oct 2018 00:50:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539849014; cv=none; d=google.com; s=arc-20160816; b=zMMzJhLa9GrIwr+JsP4vBwiAncEb838IQooXllw4uQ2BpogqgVKsILB12Z30XyVpT1 zPMS0xPvnWJ+8W91EwaFc3j8wxMGMHdAHIlpd/hU4TW2ddP2AW4B3zK/ojePEqlvb1AW DOxGJE+Wy2tehUni4909f8lBd0+YSyHNu/K8W37orOC165V0qtNpW7cYoK5UWWw5Tc5J EdDuoz191pdDQVUZIjQhC7awaNNRuZWKcWDiJBk6rIjR2EZnWdPvaq3rFVc2aOFMPBXJ oEkdxSWsNkd0kByJL6dozqNmcl0FxnB/N89hpTreUEBy9TC8KEh9LsPUJB9ioHGlmqcD o5AQ== 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=hJ160x2GboSNIPvsCBqv4hOYauWSLKVxc7VIsWkCPH8=; b=MjnwZEiCcgNbqNdHAr1tJZ9Banbvg6Rng+SwKSyP9Ie/s9SSM3OzFNdqEaPBSVe7zq 7CR0JNKSCLdhxxdno6ueb/oiHgjKv9L79avS7BifDc39ALJEYKSIKXTc5yTw2dbIXUDo wNwo0berw6A1/eVhBIoeKrIpx386OvKEYIRc8fecMKEepiF454utWU79yf+Il0nUz2oE 6kcqUeCi1BMDvoQHZa2R7BHTXx/5thYDs1cwapOx50VUxN9qZdfll0cZZzCKboZx6HBR jHXbyrLzr4rzhafrV0DleHUdOYxjgYEbjx723DEohd3KjH9Dm6EuABrbv/RBnFg7iFWd 830g== 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 3-v6si10245264plo.75.2018.10.18.00.49.59; Thu, 18 Oct 2018 00:50:14 -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 S1727485AbeJRPtQ (ORCPT + 99 others); Thu, 18 Oct 2018 11:49:16 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:7038 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726031AbeJRPtQ (ORCPT ); Thu, 18 Oct 2018 11:49:16 -0400 X-UUID: c272e98317314a91a8a20174a1862ba8-20181018 X-UUID: c272e98317314a91a8a20174a1862ba8-20181018 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1645721796; Thu, 18 Oct 2018 15:49:26 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 18 Oct 2018 15:49:24 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 18 Oct 2018 15:49:24 +0800 From: To: Sean Wang , Vinod Koul , Rob Herring , Matthias Brugger , Dan Williams CC: , , , , , Subject: [PATCH v3] add support for Mediatek Command-Queue DMA controller on MT6765 SoC Date: Thu, 18 Oct 2018 15:49:09 +0800 Message-ID: <1539848951-14798-1-git-send-email-shun-chih.yu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: AF58D6D0DAB9842F051060ACC9C3933A15FB9811D0F67077BCB39713D3B222C32000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v2: - fix build warning for kernel with DMA address in 32-bit Changes since v1: - remove unused macros, typos - leverage ASYNC_TX_ENABLE_CHANNEL_SWITCH to maintain DMA descriptor list Shun-Chih Yu (2): dt-bindings: dmaengine: Add MediaTek Command-Queue DMA controller bindings dmaengine: mediatek: Add MediaTek Command-Queue DMA controller for MT6765 SoC .../devicetree/bindings/dma/mtk-cqdma.txt | 31 + drivers/dma/mediatek/Kconfig | 13 + drivers/dma/mediatek/Makefile | 1 + drivers/dma/mediatek/mtk-cqdma.c | 951 ++++++++++++++++++++ 4 files changed, 996 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/mtk-cqdma.txt create mode 100644 drivers/dma/mediatek/mtk-cqdma.c