From patchwork Thu Jun 8 02:55:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Binbin Zhou X-Patchwork-Id: 13271554 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23979C77B7A for ; Thu, 8 Jun 2023 02:55:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233870AbjFHCzv (ORCPT ); Wed, 7 Jun 2023 22:55:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233887AbjFHCzr (ORCPT ); Wed, 7 Jun 2023 22:55:47 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EDAB7210C; Wed, 7 Jun 2023 19:55:45 -0700 (PDT) Received: from loongson.cn (unknown [223.106.25.146]) by gateway (Coremail) with SMTP id _____8AxX+swQ4FkoloAAA--.1408S3; Thu, 08 Jun 2023 10:55:44 +0800 (CST) Received: from localhost.localdomain (unknown [223.106.25.146]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxTMouQ4FkIFQGAA--.12049S2; Thu, 08 Jun 2023 10:55:43 +0800 (CST) From: Binbin Zhou To: Binbin Zhou , Huacai Chen , Vinod Koul , dmaengine@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org Cc: Huacai Chen , loongson-kernel@lists.loongnix.cn, Xuerui Wang , loongarch@lists.linux.dev, Yingkun Meng , Binbin Zhou Subject: [PATCH RESEND v2 0/2] New driver for the Loongson LS2X APB DMA Controller Date: Thu, 8 Jun 2023 10:55:29 +0800 Message-Id: X-Mailer: git-send-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CI42IY6xII jxv20xvE14v26ryj6F1UMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWxJVW8Jr1lIxAIcVCF04 k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIEc7Cj xVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07b1UUUUUUUU= Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org Hi all: This patchset introduces you to the LS2X apbdma controller. The Loongson LS2X APB DMA controller is available on Loongson-2K chips. It is a single-channel, configurable DMA controller IP core based on the AXI bus, whose main function is to integrate DMA functionality on a chip dedicated to carrying data between memory and peripherals in APB bus (e.g. nand). Thanks. ---- V2: patch(1/2) - Minor changes from Conor; - Add Reviewed-by tag. patch(2/2) - Fix build errors from lkp@intel.com. Link to V1: https://lore.kernel.org/dmaengine/cover.1685448898.git.zhoubinbin@loongson.cn/ Binbin Zhou (2): dt-bindings: dmaengine: Add Loongson LS2X APB DMA controller dmaengine: ls2x-apb: new driver for the Loongson LS2X APB DMA controller .../bindings/dma/loongson,ls2x-apbdma.yaml | 61 ++ drivers/dma/Kconfig | 14 + drivers/dma/Makefile | 1 + drivers/dma/ls2x-apb-dma.c | 644 ++++++++++++++++++ 4 files changed, 720 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/loongson,ls2x-apbdma.yaml create mode 100644 drivers/dma/ls2x-apb-dma.c