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: 10539591 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 99B3A157A for ; Mon, 23 Jul 2018 04:18:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8531228478 for ; Mon, 23 Jul 2018 04:18:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 759EB28485; Mon, 23 Jul 2018 04:18:03 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EEBFE28478 for ; Mon, 23 Jul 2018 04:18:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726619AbeGWFRO (ORCPT ); Mon, 23 Jul 2018 01:17:14 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:45910 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726162AbeGWFRO (ORCPT ); Mon, 23 Jul 2018 01:17:14 -0400 Received: by mail-pl0-f67.google.com with SMTP id 94-v6so7677327ple.12 for ; Sun, 22 Jul 2018 21:18:01 -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=K/dfKeAvbwDh44poRs6fgr5360hKrRtos5DMtfNt7CFjuB8yGx7Qt2YvaMScrzCQA7 G8mfngAWXrXZ+Ekeomjk5xytnhng87X/9obX4gHHGO1AUpUNkDX5cRwpwxfr0oz3hZ2z sQRQcJXLvinXaqbcEtNQdxDKXVSl9m2dl9SGfRlxZij/1L4HIBsPbDfRtwFxwv9mZ/As /IvRDCv9XnlAO3DIlNPjABXE3bbAWSToJxfn279XGJcxZ/bZDbptlZ/iDE+svNFPSCPT M4D3wQ1tiEC8I5yfuCO2sc3xBQy2ShcrBg6kQYp/7YpPEIjOOMfgGmr3riNvjIfMbTqD gaqA== X-Gm-Message-State: AOUpUlEBjbNBUCouohE9z28RRZirq7lOnvQAhW/QhfLyJxaVMRDc14Ng 0bzlwmiAdHW4K2xgqN1Na4gk 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 Cc: dmaengine@vger.kernel.org, liuwei@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, thomas.liau@actions-semi.com, jeff.chen@actions-semi.com, pn@denx.de, edgar.righi@lsitec.org.br, Manivannan Sadhasivam 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 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.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