renesas,rza2m-dma

Description

These nodes are “dma” bus nodes.

RZA2M DMA controller

channel: Select channel for data transmitting

slot: Select peripheral to connect DMA. Use one of the RZA2M_DMA_* macros from
  dt-bindings/dma/renesas_rza2m_dma.h. Each macro packs the DMARS request code
  together with the CHCFG AM, LVL and REQD settings that the hardware fixes for
  that request source, so no raw slot value should ever be written here.

config: A 32bit mask specifying the DMA channel configuration. Reserved for
  future use, pass 0.

Example of devicetree configuration

  &spi0 {
    status = "okay";

    dmas = <&dma0 1 RZA2M_DMA_RS_SPTI0 0>, <&dma0 0 RZA2M_DMA_RS_SPRI0 0>;
    dma-names = "tx", "rx";
  }

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: 3

dma-buf-addr-alignment

int

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

This property is required.

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-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.

pinctrl-0

phandles

Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.

pinctrl-1

phandles

Pin configuration/s for the second state. See pinctrl-0.

pinctrl-2

phandles

Pin configuration/s for the third state. See pinctrl-0.

pinctrl-3

phandles

Pin configuration/s for the fourth state. See pinctrl-0.

pinctrl-4

phandles

Pin configuration/s for the fifth state. See pinctrl-0.

pinctrl-names

string-array

Names for the provided states. The number of names needs to match the
number of states.

Specifier cell names

  • dma cells: channel, slot, config