Renesas R-Car and RZ/G DMA Controller

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

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

Maintainers (maintainers): "Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>"

All of these rules must match (allOf) #

Rule 1 #

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

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,dmac-r8a7742", "renesas,dmac-r8a7743", "renesas,dmac-r8a7744", "renesas,dmac-r8a7745", "renesas,dmac-r8a77470", "renesas,dmac-r8a774a1", "renesas,dmac-r8a774b1", "renesas,dmac-r8a774c0", "renesas,dmac-r8a774e1", "renesas,dmac-r8a7790", "renesas,dmac-r8a7791", "renesas,dmac-r8a7792", "renesas,dmac-r8a7793", "renesas,dmac-r8a7794", "renesas,dmac-r8a7795", "renesas,dmac-r8a7796", "renesas,dmac-r8a77961", "renesas,dmac-r8a77965", "renesas,dmac-r8a77970", "renesas,dmac-r8a77980", "renesas,dmac-r8a77990", "renesas,dmac-r8a77995"

Item 2

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

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,dmac-r8a779a0", "renesas,dmac-r8a779f0", "renesas,dmac-r8a779g0", "renesas,dmac-r8a779h0"

Item 2

Exact value (const): "renesas,rcar-gen4-dmac"

reg — required here #

true — No constraints added by this property rule.

interrupts — required here #

Minimum number of items (minItems): 9

Maximum number of items (maxItems): 17

interrupt-names — required here #

Minimum number of items (minItems): 9

Array item rules (items) #

Item 1

Exact value (const): "error"

Item 2

String pattern (pattern): "^ch([0-9]|1[0-5])$"

Item 3

String pattern (pattern): "^ch([0-9]|1[0-5])$"

Item 4

String pattern (pattern): "^ch([0-9]|1[0-5])$"

Item 5

String pattern (pattern): "^ch([0-9]|1[0-5])$"

Item 6

String pattern (pattern): "^ch([0-9]|1[0-5])$"

Item 7

String pattern (pattern): "^ch([0-9]|1[0-5])$"

Item 8

String pattern (pattern): "^ch([0-9]|1[0-5])$"

Item 9

String pattern (pattern): "^ch([0-9]|1[0-5])$"

Item 10

String pattern (pattern): "^ch([0-9]|1[0-5])$"

Item 11

String pattern (pattern): "^ch([0-9]|1[0-5])$"

Item 12

String pattern (pattern): "^ch([0-9]|1[0-5])$"

Item 13

String pattern (pattern): "^ch([0-9]|1[0-5])$"

Item 14

String pattern (pattern): "^ch([0-9]|1[0-5])$"

Item 15

String pattern (pattern): "^ch([0-9]|1[0-5])$"

Item 16

String pattern (pattern): "^ch([0-9]|1[0-5])$"

Item 17

String pattern (pattern): "^ch([0-9]|1[0-5])$"

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "fck"

#dma-cells — required here #

Exact value (const): 1

The cell specifies the MID/RID of the DMAC port connected to the DMA client.

dma-channels — required here #

Minimum value (minimum): 8

Maximum value (maximum): 16

dma-channel-mask — not listed as required here #

true — No constraints added by this property rule.

iommus — not listed as required here #

Minimum number of items (minItems): 8

Maximum number of items (maxItems): 16

power-domains — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

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

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "renesas,rcar-gen4-dmac"

When the condition matches (then) #

Properties and child nodes (properties) #

reg — not listed as required here #

Array item rules (items)

Item 1

Base register block

Item 2

Channel register block

When the condition does not match (else) #

Properties and child nodes (properties) #

reg — not listed as required here #

Maximum number of items (maxItems): 1

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a7790-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7790-sysc.h>

dmac0: dma-controller@e6700000 {
    compatible = "renesas,dmac-r8a7790", "renesas,rcar-dmac";
    reg = <0xe6700000 0x20000>;
    interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "error",
                      "ch0", "ch1", "ch2", "ch3",
                      "ch4", "ch5", "ch6", "ch7",
                      "ch8", "ch9", "ch10", "ch11",
                      "ch12", "ch13", "ch14";
    clocks = <&cpg CPG_MOD 219>;
    clock-names = "fck";
    power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
    resets = <&cpg 219>;
    #dma-cells = <1>;
    dma-channels = <15>;
};

Source notes #

Annotations retained from the schema source

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

Line 20: RZ/G1H

Line 21: RZ/G1M

Line 22: RZ/G1N

Line 23: RZ/G1E

Line 24: RZ/G1C

Line 25: RZ/G2M

Line 26: RZ/G2N

Line 27: RZ/G2E

Line 28: RZ/G2H

Line 29: R-Car H2

Line 30: R-Car M2-W

Line 31: R-Car V2H

Line 32: R-Car M2-N

Line 33: R-Car E2

Line 34: R-Car H3

Line 35: R-Car M3-W

Line 36: R-Car M3-W+

Line 37: R-Car M3-N

Line 38: R-Car V3M

Line 39: R-Car V3H

Line 40: R-Car E3

Line 41: R-Car D3

Line 46: R-Car V3U

Line 47: R-Car S4-8

Line 48: R-Car V4H

Line 49: R-Car V4M

Line 50: R-Car Gen4

Edit this page