Renesas RZ DMA Controller

Schema identifier ($id): "http://devicetree.org/schemas/dma/renesas,rz-dmac.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Biju Das <biju.das.jz@bp.renesas.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r7s72100-dmac", "renesas,r9a07g043-dmac", "renesas,r9a07g044-dmac", "renesas,r9a07g054-dmac", "renesas,r9a08g045-dmac"

Item 2

Exact value (const): "renesas,rz-dmac"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r9a09g047-dmac", "renesas,r9a09g056-dmac"

Item 2

Exact value (const): "renesas,r9a09g057-dmac"

Rule 3

Exact value (const): "renesas,r9a09g057-dmac"

reg — required here #

Array item rules (items) #

Item 1

Control and channel register block

Item 2

DMA extended resource selector block

Minimum number of items (minItems): 1

interrupts — required here #

Maximum number of items (maxItems): 17

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "error"

Item 2

Exact value (const): "ch0"

Item 3

Exact value (const): "ch1"

Item 4

Exact value (const): "ch2"

Item 5

Exact value (const): "ch3"

Item 6

Exact value (const): "ch4"

Item 7

Exact value (const): "ch5"

Item 8

Exact value (const): "ch6"

Item 9

Exact value (const): "ch7"

Item 10

Exact value (const): "ch8"

Item 11

Exact value (const): "ch9"

Item 12

Exact value (const): "ch10"

Item 13

Exact value (const): "ch11"

Item 14

Exact value (const): "ch12"

Item 15

Exact value (const): "ch13"

Item 16

Exact value (const): "ch14"

Item 17

Exact value (const): "ch15"

clocks — not listed as required here #

Array item rules (items) #

Item 1

DMA main clock

Item 2

DMA register access clock

Minimum number of items (minItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "main"

Item 2

Exact value (const): "register"

#dma-cells — required here #

Exact value (const): 1

The cell specifies the encoded MID/RID or the REQ No values of the DMAC port connected to the DMA client and the slave channel configuration parameters. bits[0:9] - Specifies the MID/RID or the REQ No value bit[10] - Specifies DMA request high enable (HIEN) bit[11] - Specifies DMA request detection type (LVL) bits[12:14] - Specifies DMAACK output mode (AM) bit[15] - Specifies Transfer Mode (TM)

dma-channels — required here #

Exact value (const): 16

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Array item rules (items) #

Item 1

Reset for DMA ARESETN reset terminal

Item 2

Reset for DMA RST_ASYNC reset terminal

Minimum number of items (minItems): 1

reset-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "arst"

Item 2

Exact value (const): "rst_async"

renesas,icu — not listed as required here #

It must contain the phandle to the ICU and the index of the DMAC as seen from the ICU.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

Phandle to the ICU node.

Item 2

The number of the DMAC as seen from the ICU, i.e. parameter k from register ICU_DMkSELy. This may differ from the actual DMAC instance number.

Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "#dma-cells", "dma-channels"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dma-controller.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,r9a07g043-dmac", "renesas,r9a07g044-dmac", "renesas,r9a07g054-dmac", "renesas,r9a08g045-dmac"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

clocks — required here

Minimum number of items (minItems): 2

resets — required here

Minimum number of items (minItems): 2

renesas,icu — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "clocks", "clock-names", "power-domains", "resets", "reset-names"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,r7s72100-dmac"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

clocks — not listed as required here

false — Not permitted by this property rule.

clock-names — not listed as required here

false — Not permitted by this property rule.

power-domains — not listed as required here

false — Not permitted by this property rule.

resets — not listed as required here

false — Not permitted by this property rule.

reset-names — not listed as required here

false — Not permitted by this property rule.

renesas,icu — not listed as required here

false — Not permitted by this property rule.

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,r9a09g057-dmac"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

clocks — required here

Maximum number of items (maxItems): 1

resets — required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

false — Not permitted by this property rule.

reset-names — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "clocks", "power-domains", "renesas,icu", "resets"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/r9a07g044-cpg.h>

dmac: dma-controller@11820000 {
    compatible = "renesas,r9a07g044-dmac",
                 "renesas,rz-dmac";
    reg = <0x11820000 0x10000>,
          <0x11830000 0x10000>;
    interrupts = <GIC_SPI 141 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 125 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 126 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 127 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 129 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 130 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 131 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 132 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 133 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 134 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 135 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 136 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 137 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 138 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 139 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 140 IRQ_TYPE_EDGE_RISING>;
    interrupt-names = "error",
                      "ch0", "ch1", "ch2", "ch3",
                      "ch4", "ch5", "ch6", "ch7",
                      "ch8", "ch9", "ch10", "ch11",
                      "ch12", "ch13", "ch14", "ch15";
    clocks = <&cpg CPG_MOD R9A07G044_DMAC_ACLK>,
             <&cpg CPG_MOD R9A07G044_DMAC_PCLK>;
    clock-names = "main", "register";
    power-domains = <&cpg>;
    resets = <&cpg R9A07G044_DMAC_ARESETN>,
             <&cpg R9A07G044_DMAC_RST_ASYNC>;
    reset-names = "arst", "rst_async";
    #dma-cells = <1>;
    dma-channels = <16>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 17: RZ/A1H

Line 18: RZ/G2UL and RZ/Five

Line 19: RZ/G2{L,LC}

Line 20: RZ/V2L

Line 21: RZ/G3S

Line 26: RZ/G3E

Line 27: RZ/V2N

Line 30: RZ/V2H(P)

Edit this page