From patchwork Thu Jul 29 08:25:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 12408075 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A321EC4320E for ; Thu, 29 Jul 2021 08:25:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 849C161074 for ; Thu, 29 Jul 2021 08:25:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234891AbhG2IZb (ORCPT ); Thu, 29 Jul 2021 04:25:31 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:58501 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234673AbhG2IZ3 (ORCPT ); Thu, 29 Jul 2021 04:25:29 -0400 X-IronPort-AV: E=Sophos;i="5.84,278,1620658800"; d="scan'208";a="89101697" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 29 Jul 2021 17:25:25 +0900 Received: from localhost.localdomain (unknown [10.226.92.2]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id C2BE8420869A; Thu, 29 Jul 2021 17:25:22 +0900 (JST) From: Biju Das To: Vinod Koul , Rob Herring Cc: Biju Das , Chris Brandt , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, Geert Uytterhoeven , Chris Paterson , Prabhakar Mahadev Lad , linux-renesas-soc@vger.kernel.org Subject: [PATCH v5 0/3] Add RZ/G2L DMAC support Date: Thu, 29 Jul 2021 09:25:17 +0100 Message-Id: <20210729082520.26186-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org This patch series aims to add DMAC support on RZ/G2L SoC's. It is based on the work done by Chris Brandt for RZ/A DMA driver. v4->v5: * Passing legacy slave channel configuration parameters using dmaengine_slave_config is prohibited. So started passing this parameters in DT instead, by encoding MID/RID values with channel parameters in the #dma-cells. * Removed Rb tag's of Geert and Rob since there is a modification in binding patch * Added 128 byte slave bus width support * Removed SoC dtsi and Defconfig patch from this series. Will send as separate patch. Ref:- https://lore.kernel.org/linux-renesas-soc/20210719092535.4474-1-biju.das.jz@bp.renesas.com/T/#ma0b261df6d4400882204aaaaa014ddb59c479db4 v3->v4: * Added Rob's Rb tag for binding patch. * Incorporated Vinod and Geert's review comments. v2->v3: * Described clocks and resets in binding file as per Rob's feedback. v1->v2 * Started using virtual DMAC * Added Geert's Rb tag for binding patch. Biju Das (3): dt-bindings: dma: Document RZ/G2L bindings dmaengine: Extend the dma_slave_width for 128 bytes drivers: dma: sh: Add DMAC driver for RZ/G2L SoC .../bindings/dma/renesas,rz-dmac.yaml | 130 +++ drivers/dma/sh/Kconfig | 9 + drivers/dma/sh/Makefile | 1 + drivers/dma/sh/rz-dmac.c | 971 ++++++++++++++++++ include/linux/dmaengine.h | 3 +- 5 files changed, 1113 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/dma/renesas,rz-dmac.yaml create mode 100644 drivers/dma/sh/rz-dmac.c