renesas,ra-dma

Vendor: Renesas Electronics Corporation

Note

An implementation of a driver matching this compatible is available in drivers/dma/dma_renesas_ra.c.

Description

These nodes are “dma” bus nodes.

Renesas RA DMA Controller

The following example displays the minimum DMA node layout:

  dma0: dma@4000a000 {
      compatible = "renesas,ra-dma";
      reg = <0x4000a000 0x200>, <0x4000a800 0xa0>;
      reg-names = "channel", "common";
      clocks = <&iclk MSTPA 22>;
      dma-channels = <8>;
      #dma-cells = <2>;
      status = "disabled";
  };

By default, the DMA controller node appears with `status = "disabled"`.
To enable and use the DMA controller, add an overlay that sets `status = "okay"`
and provides the required `interrupts` and `interrupt-names` properties.

Example overlay to enable the DMA controller for specific channels:

  &dma0 {
      status = "okay";
      interrupts = <95 1>, <94 1>;
      interrupt-names = "ch0", "ch1";
  };

Note:
- The `interrupts` property specifies only the channels intended for use.
  It is not necessary to declare interrupts for all available DMA channels;
  just include entries for the channels intended for use.
- The `interrupt-names` property provides human-readable names corresponding
  to each interrupt, typically matching the channel number.

Properties

Properties not inherited from the base binding file.

Name

Type

Details

dma-channels

int

Number of DMA channels supported by the controller

This property is required.

#dma-cells

int

Number of items to expect in a DMA specifier

This property is required.

Constant value: 2

dma-channel-mask

int

Bitmask of available DMA channels in ascending order that are
not reserved by firmware and are available to the
kernel. i.e. first channel corresponds to LSB.

dma-requests

int

Number of DMA request signals supported by the controller.

dma-buf-addr-alignment

int

Memory address alignment requirement for DMA buffers used by the controller.

dma-buf-size-alignment

int

Memory size alignment requirement for DMA buffers used by the controller.

dma-copy-alignment

int

Minimal chunk of data possible to be copied by the controller.

Specifier cell names

  • dma cells: channel, config