mbox series

[v5,0/2] New driver for the Loongson LS2X APB DMA Controller

Message ID cover.1700644483.git.zhoubinbin@loongson.cn (mailing list archive)
Headers show
Series New driver for the Loongson LS2X APB DMA Controller | expand

Message

Binbin Zhou Nov. 22, 2023, 9:27 a.m. UTC
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.

----
V5:
patch(2/2):
 - Rebase on dmaengine/next;
 - Annotate struct ls2x_dma_sg with __counted_by;
 - .remove()->.remove_new();
 - Drop duplicate assignments in ls2x_dma_chan_init().

Link to V4:
https://lore.kernel.org/all/cover.1691647870.git.zhoubinbin@loongson.cn/

V4:
patch(2/2)
  - Drop linux/of_device.h;
  - Meaningful parameter name for ls2x_dma_fill_desc(): i->sg_index; 
  - Check the slave config and reject invalid configurations;
  - Update data width handle;
  - Use generic xlate: of_dma_xlate_by_chan_id().

Link to V3:
https://lore.kernel.org/dmaengine/cover.1689075791.git.zhoubinbin@loongson.cn/

V3:
patch(1/2)
  - Add clocks property;
  - Drop dma-channels property, for we are single-channel dmac.
patch(2/2)
  - Add clk support. 

Link to V2:
https://lore.kernel.org/dmaengine/cover.1686192243.git.zhoubinbin@loongson.cn/

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    |  62 ++
 MAINTAINERS                                   |   7 +
 drivers/dma/Kconfig                           |  14 +
 drivers/dma/Makefile                          |   1 +
 drivers/dma/ls2x-apb-dma.c                    | 705 ++++++++++++++++++
 5 files changed, 789 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/dma/loongson,ls2x-apbdma.yaml
 create mode 100644 drivers/dma/ls2x-apb-dma.c

Comments

Binbin Zhou Dec. 7, 2023, 7:42 a.m. UTC | #1
On Wed, Nov 22, 2023 at 3:27 PM Binbin Zhou <zhoubinbin@loongson.cn> wrote:
>
> 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).

Hi Vinod:

Gentle ping. Any comments on this series of patches?

Thanks.
Binbin
>
> Thanks.
>
> ----
> V5:
> patch(2/2):
>  - Rebase on dmaengine/next;
>  - Annotate struct ls2x_dma_sg with __counted_by;
>  - .remove()->.remove_new();
>  - Drop duplicate assignments in ls2x_dma_chan_init().
>
> Link to V4:
> https://lore.kernel.org/all/cover.1691647870.git.zhoubinbin@loongson.cn/
>
> V4:
> patch(2/2)
>   - Drop linux/of_device.h;
>   - Meaningful parameter name for ls2x_dma_fill_desc(): i->sg_index;
>   - Check the slave config and reject invalid configurations;
>   - Update data width handle;
>   - Use generic xlate: of_dma_xlate_by_chan_id().
>
> Link to V3:
> https://lore.kernel.org/dmaengine/cover.1689075791.git.zhoubinbin@loongson.cn/
>
> V3:
> patch(1/2)
>   - Add clocks property;
>   - Drop dma-channels property, for we are single-channel dmac.
> patch(2/2)
>   - Add clk support.
>
> Link to V2:
> https://lore.kernel.org/dmaengine/cover.1686192243.git.zhoubinbin@loongson.cn/
>
> 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    |  62 ++
>  MAINTAINERS                                   |   7 +
>  drivers/dma/Kconfig                           |  14 +
>  drivers/dma/Makefile                          |   1 +
>  drivers/dma/ls2x-apb-dma.c                    | 705 ++++++++++++++++++
>  5 files changed, 789 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/dma/loongson,ls2x-apbdma.yaml
>  create mode 100644 drivers/dma/ls2x-apb-dma.c
>
> --
> 2.39.3
>