From: Binbin Zhou <zhoubinbin@loongson.cn>
To: Binbin Zhou <zhoubb.aaron@gmail.com>,
Huacai Chen <chenhuacai@loongson.cn>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Vinod Koul <vkoul@kernel.org>,
dmaengine@vger.kernel.org
Cc: Xiaochuang Mao <maoxiaochuan@loongson.cn>,
Huacai Chen <chenhuacai@kernel.org>,
Xuerui Wang <kernel@xen0n.name>,
loongarch@lists.linux.dev, devicetree@vger.kernel.org,
Keguang Zhang <keguang.zhang@gmail.com>,
linux-mips@vger.kernel.org, jeffbai@aosc.io,
Binbin Zhou <zhoubinbin@loongson.cn>
Subject: [PATCH v2 0/4] dmaengine: Add Loongson Multi-Channel DMA controller support
Date: Mon, 9 Feb 2026 11:04:17 +0800 [thread overview]
Message-ID: <cover.1770605931.git.zhoubinbin@loongson.cn> (raw)
Hi all:
This patchset introduces the Loongson multi-channel DMA controller,
which is present in the Loongson-2K0300 and Loongson-2K3000 processors.
It is a multi-channel controller that enables data transfers from memory
to memory, device to memory, and memory to device, as well as channel
prioritization configurable through the channel configuration registers.
Additionally, since multiple distinct types of DMA controllers exist on
the Loongson platform, I have attempted to consolidate all Loongson DMA
drivers into a new directory named `Loongson` for easier management.
Thanks.
Binbin
===========
V2:
patch(1/4):
- Update loongson1-apb-dma.c entry in MAINTAINERS.
patch(2/4):
- New patch, use dmaenginem_async_device_register() helper.
patch(3/4):
- `additionalProperties: false` replaced by
`unevaluatedProperties: false`.
patch(4/4):
- Rename filename as loongson2-apb-cmc-dma.c;
- Rename Kconfig item as LOONGSON2_APB_CMC_DMA;
- Rename the variable prefix as `loongson2_cmc_dma`;
- Use dmaenginem_async_device_register() helper;
- Drop 'dma_' prefix in struct loongson2_mdma_chan_reg;
- Use struct_size();
Link to V1:
https://lore.kernel.org/all/cover.1770119693.git.zhoubinbin@loongson.cn/
Binbin Zhou (4):
dmaengine: loongson: New directory for Loongson DMA controllers
drivers
dmaengine: loongson: loongson2-apb: Convert to
dmaenginem_async_device_register()
dt-bindings: dmaengine: Add Loongson Multi-Channel DMA controller
dmaengine: loongson: New driver for the Loongson Multi-Channel DMA
controller
.../bindings/dma/loongson,ls2k0300-dma.yaml | 78 ++
MAINTAINERS | 7 +-
drivers/dma/Kconfig | 25 +-
drivers/dma/Makefile | 3 +-
drivers/dma/loongson/Kconfig | 38 +
drivers/dma/loongson/Makefile | 4 +
.../dma/{ => loongson}/loongson1-apb-dma.c | 4 +-
drivers/dma/loongson/loongson2-apb-cmc-dma.c | 736 ++++++++++++++++++
.../dma/{ => loongson}/loongson2-apb-dma.c | 11 +-
9 files changed, 870 insertions(+), 36 deletions(-)
create mode 100644 Documentation/devicetree/bindings/dma/loongson,ls2k0300-dma.yaml
create mode 100644 drivers/dma/loongson/Kconfig
create mode 100644 drivers/dma/loongson/Makefile
rename drivers/dma/{ => loongson}/loongson1-apb-dma.c (99%)
create mode 100644 drivers/dma/loongson/loongson2-apb-cmc-dma.c
rename drivers/dma/{ => loongson}/loongson2-apb-dma.c (98%)
base-commit: ab736ed52e3409b58a4888715e4425b6e8ac444f
--
2.52.0
next reply other threads:[~2026-02-09 3:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 3:04 Binbin Zhou [this message]
2026-02-09 3:04 ` [PATCH v2 1/4] dmaengine: loongson: New directory for Loongson DMA controllers drivers Binbin Zhou
2026-02-09 16:48 ` Frank Li
2026-02-10 1:27 ` Binbin Zhou
2026-02-26 8:07 ` Huacai Chen
2026-02-09 3:04 ` [PATCH v2 2/4] dmaengine: loongson: loongson2-apb: Convert to dmaenginem_async_device_register() Binbin Zhou
2026-02-09 16:51 ` Frank Li
2026-02-09 3:04 ` [PATCH v2 3/4] dt-bindings: dmaengine: Add Loongson Multi-Channel DMA controller Binbin Zhou
2026-02-10 3:03 ` Rob Herring
2026-02-10 6:02 ` Binbin Zhou
2026-02-09 3:04 ` [PATCH v2 4/4] dmaengine: loongson: New driver for the " Binbin Zhou
2026-02-09 17:04 ` Frank Li
2026-02-10 7:41 ` Binbin Zhou
2026-02-10 12:02 ` Binbin Zhou
2026-02-10 15:27 ` Frank Li
2026-02-24 12:59 ` Binbin Zhou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1770605931.git.zhoubinbin@loongson.cn \
--to=zhoubinbin@loongson.cn \
--cc=chenhuacai@kernel.org \
--cc=chenhuacai@loongson.cn \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=jeffbai@aosc.io \
--cc=keguang.zhang@gmail.com \
--cc=kernel@xen0n.name \
--cc=krzk+dt@kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
--cc=maoxiaochuan@loongson.cn \
--cc=robh@kernel.org \
--cc=vkoul@kernel.org \
--cc=zhoubb.aaron@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox