From patchwork Mon Jul 23 04:17:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10539597 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DC994157A for ; Mon, 23 Jul 2018 04:18:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C658128478 for ; Mon, 23 Jul 2018 04:18:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B834F28485; Mon, 23 Jul 2018 04:18:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 62BB128478 for ; Mon, 23 Jul 2018 04:18:32 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=eXjLbmHIemY5a9lMOak5c6VGd9v5WfnknxmnNgtJi2M=; b=IAI JcSRGEzxoeCr9YaFjMxh6sCDqSggAuIarfoRG2AWc7jFHJv2UHC8GZepyQP3R2WoG6UdXVfWMFW3X ZVaD3RalNJewIvZvPiVq1rc+Lcqwxkm4nRMnp43NX+syknuyllUp99Yf38RR5mlWMkRuDfO9iYMw3 1pWseF9SFeGgvWnE76TBBxYYtH9GMidv7fBcIOqPnzafVDLzIn9CtWlX3uDyjnAl54sbz/MLP1ryB /+IQvzpANqB5JYEl+C4kY3KuXzA4YfL0NRsT7AkkJCsLYEwIXJF1bEcKXCzUeemaHDxXW986Poo2I FzuWceeuolUiS3KudI6Fj2pQyeOwEmg==; 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 1fhSIn-0007e8-Sa; Mon, 23 Jul 2018 04:18:29 +0000 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhSIX-0007cN-7t for linux-arm-kernel@lists.infradead.org; Mon, 23 Jul 2018 04:18:14 +0000 Received: by mail-pl0-x243.google.com with SMTP id o7-v6so7675303plk.10 for ; Sun, 22 Jul 2018 21:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=o58N5bHQsq/+j9F99o0CqQR4WTmR1eeXgvHYhmsNOrQ=; b=AzYHWGhBihmWpCm4tMti3HinWoknKSd6NxBR+A+75CO7FWwGx3yZ281emJDWDIUH3U M3J6NaNgOu3Nvec/EYqbD3OHqCVg8pfz0k9mMG/CyklPvIW/dcLrchK/fJ/hfPP2QNO3 9mA7xyU8sLSl2MVgk49w0hsTmjUL34FKuj3/A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=o58N5bHQsq/+j9F99o0CqQR4WTmR1eeXgvHYhmsNOrQ=; b=ow6xE5dtnvv12LFZ5oV/gxKCVo8N/TF8yDzmSW8Du8P2dDBTil51i5SA1Eu4S8zSjt Yz6vWUUW48KTK3/c4mQm3/tXLDXovY6UFGjG9o72oaCvP7dcshLwn9GRKQjOsxJ9V3/V Gxq6ZFCrFAqUdBZ9/DJbQtwD5wL9VWRdS//A0mZo5uMXzHxiM/+pcSCetZ/1W326upk+ +l20DPQnd5CuAPapW6v146uDVhakpWo3Ryg5qhL57Yf2FsNeJSOnrNi5rOCcN0IkwDmE tW4PS/H/WrwM6N105esKWIrFnD2IidKG62RTtblJUOJtfccYtGfuD3MFt7KpIw7ha8L8 Wnsw== X-Gm-Message-State: AOUpUlEENsI1Q9TX80ua44tZDKf8ZvBm3GKAex0di8JpD/k+U+8CMJRx V9cCJFrEy6sEhFBnkzvajGWJ X-Google-Smtp-Source: AAOMgpeTvQsVZWC1Bp3pnN8T23MfThFhsVc4B26YE/rhVme5U5u+9vCqrf0qVHcWhHOE+s93nlBTvQ== X-Received: by 2002:a17:902:209:: with SMTP id 9-v6mr11475965plc.270.1532319481344; Sun, 22 Jul 2018 21:18:01 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:802:a98c:b568:c01f:49a2:2aa5]) by smtp.gmail.com with ESMTPSA id i20-v6sm13369282pfj.82.2018.07.22.21.17.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 21:18:00 -0700 (PDT) From: Manivannan Sadhasivam To: vkoul@kernel.org, dan.j.williams@intel.com, afaerber@suse.de, robh+dt@kernel.org Subject: [PATCH v2 0/4] Add Actions Semi Owl family S900 DMA Controller support Date: Mon, 23 Jul 2018 09:47:39 +0530 Message-Id: <20180723041743.32024-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180722_211813_284130_0A767169 X-CRM114-Status: GOOD ( 13.53 ) 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, daniel.thompson@linaro.org, manivannanece23@gmail.com, jeff.chen@actions-semi.com, bdong@ucrobotics.com, liuwei@actions-semi.com, linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, hzhang@ucrobotics.com, thomas.liau@actions-semi.com, 96boards@ucrobotics.com, dmaengine@vger.kernel.org, pn@denx.de, Manivannan Sadhasivam , edgar.righi@lsitec.org.br, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset adds DMA controller support for Actions Semi Owl family S900 SoC. This driver has been structured in a way such that there will be only one controller driver for the whole Owl family series (S500, S700 and S900 SoCs). There are 12 physical channels and 46 logical channels supported by the DMA controller. The DMA controller also supports 4 software configurable interrupt lines for the priority based DMA usecase. But the DMA driver supports only 1 interrupt for simplification. By default, the driver uses Linked list mode for all transfers. Right now only MEMCPY support has been added and the rest (SLAVE, CYCLIC) will be added in upcoming patches. The driver has been tested using dmatest utility on the Bubblegum-96 board. The DTS patches in this series depends on the pinctrl DTS patches submitted [1], which is yet to be merged by the platform maintainer Andreas. Since the DMA driver goes through DMA tree and the relevant DTS patches goes through ARM-SoC tree, Andreas will pick it up once it has been reviewed. For the reference, I have queued up all reviewed dts patches so far in my repo [2] from which Andreas is picking them for 4.19. Thanks, Mani [1] https://patchwork.kernel.org/patch/10322937/ [2] https://git.linaro.org/people/manivannan.sadhasivam/linux.git/log/?h=s900-for-next Changes in v2: * Fixed up the multi-line alignments according to `checkpatch --strict` Manivannan Sadhasivam (4): dt-bindings: dma: Add binding for Actions Semi Owl SoCs arm64: dts: actions: Add Actions Semi S900 DMA Controller dma: Add Actions Semi Owl family S900 DMA driver MAINTAINERS: Add entry for Actions Semi Owl SoCs DMA driver .../devicetree/bindings/dma/owl-dma.txt | 46 + MAINTAINERS | 2 + arch/arm64/boot/dts/actions/s900.dtsi | 13 + drivers/dma/Kconfig | 8 + drivers/dma/Makefile | 1 + drivers/dma/owl-dma.c | 1023 +++++++++++++++++ 6 files changed, 1093 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/owl-dma.txt create mode 100644 drivers/dma/owl-dma.c