1354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2354d7675SEmmanuel Vadot%YAML 1.2 3354d7675SEmmanuel Vadot--- 4354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/dma/renesas,rz-dmac.yaml# 5354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6354d7675SEmmanuel Vadot 7c9ccf3a3SEmmanuel Vadottitle: Renesas RZ/{G2L,G2UL,V2L} DMA Controller 8354d7675SEmmanuel Vadot 9354d7675SEmmanuel Vadotmaintainers: 10354d7675SEmmanuel Vadot - Biju Das <biju.das.jz@bp.renesas.com> 11354d7675SEmmanuel Vadot 12354d7675SEmmanuel VadotallOf: 13cb7aa33aSEmmanuel Vadot - $ref: dma-controller.yaml# 14354d7675SEmmanuel Vadot 15354d7675SEmmanuel Vadotproperties: 16354d7675SEmmanuel Vadot compatible: 17354d7675SEmmanuel Vadot items: 18354d7675SEmmanuel Vadot - enum: 19*8d13bc63SEmmanuel Vadot - renesas,r9a07g043-dmac # RZ/G2UL and RZ/Five 20354d7675SEmmanuel Vadot - renesas,r9a07g044-dmac # RZ/G2{L,LC} 21c9ccf3a3SEmmanuel Vadot - renesas,r9a07g054-dmac # RZ/V2L 22354d7675SEmmanuel Vadot - const: renesas,rz-dmac 23354d7675SEmmanuel Vadot 24354d7675SEmmanuel Vadot reg: 25354d7675SEmmanuel Vadot items: 26354d7675SEmmanuel Vadot - description: Control and channel register block 27354d7675SEmmanuel Vadot - description: DMA extended resource selector block 28354d7675SEmmanuel Vadot 29354d7675SEmmanuel Vadot interrupts: 30354d7675SEmmanuel Vadot maxItems: 17 31354d7675SEmmanuel Vadot 32354d7675SEmmanuel Vadot interrupt-names: 33354d7675SEmmanuel Vadot items: 34354d7675SEmmanuel Vadot - const: error 35354d7675SEmmanuel Vadot - const: ch0 36354d7675SEmmanuel Vadot - const: ch1 37354d7675SEmmanuel Vadot - const: ch2 38354d7675SEmmanuel Vadot - const: ch3 39354d7675SEmmanuel Vadot - const: ch4 40354d7675SEmmanuel Vadot - const: ch5 41354d7675SEmmanuel Vadot - const: ch6 42354d7675SEmmanuel Vadot - const: ch7 43354d7675SEmmanuel Vadot - const: ch8 44354d7675SEmmanuel Vadot - const: ch9 45354d7675SEmmanuel Vadot - const: ch10 46354d7675SEmmanuel Vadot - const: ch11 47354d7675SEmmanuel Vadot - const: ch12 48354d7675SEmmanuel Vadot - const: ch13 49354d7675SEmmanuel Vadot - const: ch14 50354d7675SEmmanuel Vadot - const: ch15 51354d7675SEmmanuel Vadot 52354d7675SEmmanuel Vadot clocks: 53354d7675SEmmanuel Vadot items: 54354d7675SEmmanuel Vadot - description: DMA main clock 55354d7675SEmmanuel Vadot - description: DMA register access clock 56354d7675SEmmanuel Vadot 57fac71e4eSEmmanuel Vadot clock-names: 58fac71e4eSEmmanuel Vadot items: 59fac71e4eSEmmanuel Vadot - const: main 60fac71e4eSEmmanuel Vadot - const: register 61fac71e4eSEmmanuel Vadot 62354d7675SEmmanuel Vadot '#dma-cells': 63354d7675SEmmanuel Vadot const: 1 64354d7675SEmmanuel Vadot description: 65354d7675SEmmanuel Vadot The cell specifies the encoded MID/RID values of the DMAC port 66354d7675SEmmanuel Vadot connected to the DMA client and the slave channel configuration 67354d7675SEmmanuel Vadot parameters. 68354d7675SEmmanuel Vadot bits[0:9] - Specifies MID/RID value 69354d7675SEmmanuel Vadot bit[10] - Specifies DMA request high enable (HIEN) 70354d7675SEmmanuel Vadot bit[11] - Specifies DMA request detection type (LVL) 71354d7675SEmmanuel Vadot bits[12:14] - Specifies DMAACK output mode (AM) 72354d7675SEmmanuel Vadot bit[15] - Specifies Transfer Mode (TM) 73354d7675SEmmanuel Vadot 74354d7675SEmmanuel Vadot dma-channels: 75354d7675SEmmanuel Vadot const: 16 76354d7675SEmmanuel Vadot 77354d7675SEmmanuel Vadot power-domains: 78354d7675SEmmanuel Vadot maxItems: 1 79354d7675SEmmanuel Vadot 80354d7675SEmmanuel Vadot resets: 81354d7675SEmmanuel Vadot items: 82354d7675SEmmanuel Vadot - description: Reset for DMA ARESETN reset terminal 83354d7675SEmmanuel Vadot - description: Reset for DMA RST_ASYNC reset terminal 84354d7675SEmmanuel Vadot 85fac71e4eSEmmanuel Vadot reset-names: 86fac71e4eSEmmanuel Vadot items: 87fac71e4eSEmmanuel Vadot - const: arst 88fac71e4eSEmmanuel Vadot - const: rst_async 89fac71e4eSEmmanuel Vadot 90354d7675SEmmanuel Vadotrequired: 91354d7675SEmmanuel Vadot - compatible 92354d7675SEmmanuel Vadot - reg 93354d7675SEmmanuel Vadot - interrupts 94354d7675SEmmanuel Vadot - interrupt-names 95354d7675SEmmanuel Vadot - clocks 96fac71e4eSEmmanuel Vadot - clock-names 97354d7675SEmmanuel Vadot - '#dma-cells' 98354d7675SEmmanuel Vadot - dma-channels 99354d7675SEmmanuel Vadot - power-domains 100354d7675SEmmanuel Vadot - resets 101fac71e4eSEmmanuel Vadot - reset-names 102354d7675SEmmanuel Vadot 103354d7675SEmmanuel VadotadditionalProperties: false 104354d7675SEmmanuel Vadot 105354d7675SEmmanuel Vadotexamples: 106354d7675SEmmanuel Vadot - | 107354d7675SEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 108354d7675SEmmanuel Vadot #include <dt-bindings/clock/r9a07g044-cpg.h> 109354d7675SEmmanuel Vadot 110354d7675SEmmanuel Vadot dmac: dma-controller@11820000 { 111354d7675SEmmanuel Vadot compatible = "renesas,r9a07g044-dmac", 112354d7675SEmmanuel Vadot "renesas,rz-dmac"; 113354d7675SEmmanuel Vadot reg = <0x11820000 0x10000>, 114354d7675SEmmanuel Vadot <0x11830000 0x10000>; 115354d7675SEmmanuel Vadot interrupts = <GIC_SPI 141 IRQ_TYPE_EDGE_RISING>, 116354d7675SEmmanuel Vadot <GIC_SPI 125 IRQ_TYPE_EDGE_RISING>, 117354d7675SEmmanuel Vadot <GIC_SPI 126 IRQ_TYPE_EDGE_RISING>, 118354d7675SEmmanuel Vadot <GIC_SPI 127 IRQ_TYPE_EDGE_RISING>, 119354d7675SEmmanuel Vadot <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>, 120354d7675SEmmanuel Vadot <GIC_SPI 129 IRQ_TYPE_EDGE_RISING>, 121354d7675SEmmanuel Vadot <GIC_SPI 130 IRQ_TYPE_EDGE_RISING>, 122354d7675SEmmanuel Vadot <GIC_SPI 131 IRQ_TYPE_EDGE_RISING>, 123354d7675SEmmanuel Vadot <GIC_SPI 132 IRQ_TYPE_EDGE_RISING>, 124354d7675SEmmanuel Vadot <GIC_SPI 133 IRQ_TYPE_EDGE_RISING>, 125354d7675SEmmanuel Vadot <GIC_SPI 134 IRQ_TYPE_EDGE_RISING>, 126354d7675SEmmanuel Vadot <GIC_SPI 135 IRQ_TYPE_EDGE_RISING>, 127354d7675SEmmanuel Vadot <GIC_SPI 136 IRQ_TYPE_EDGE_RISING>, 128354d7675SEmmanuel Vadot <GIC_SPI 137 IRQ_TYPE_EDGE_RISING>, 129354d7675SEmmanuel Vadot <GIC_SPI 138 IRQ_TYPE_EDGE_RISING>, 130354d7675SEmmanuel Vadot <GIC_SPI 139 IRQ_TYPE_EDGE_RISING>, 131354d7675SEmmanuel Vadot <GIC_SPI 140 IRQ_TYPE_EDGE_RISING>; 132354d7675SEmmanuel Vadot interrupt-names = "error", 133354d7675SEmmanuel Vadot "ch0", "ch1", "ch2", "ch3", 134354d7675SEmmanuel Vadot "ch4", "ch5", "ch6", "ch7", 135354d7675SEmmanuel Vadot "ch8", "ch9", "ch10", "ch11", 136354d7675SEmmanuel Vadot "ch12", "ch13", "ch14", "ch15"; 137354d7675SEmmanuel Vadot clocks = <&cpg CPG_MOD R9A07G044_DMAC_ACLK>, 138354d7675SEmmanuel Vadot <&cpg CPG_MOD R9A07G044_DMAC_PCLK>; 139fac71e4eSEmmanuel Vadot clock-names = "main", "register"; 140354d7675SEmmanuel Vadot power-domains = <&cpg>; 141354d7675SEmmanuel Vadot resets = <&cpg R9A07G044_DMAC_ARESETN>, 142354d7675SEmmanuel Vadot <&cpg R9A07G044_DMAC_RST_ASYNC>; 143fac71e4eSEmmanuel Vadot reset-names = "arst", "rst_async"; 144354d7675SEmmanuel Vadot #dma-cells = <1>; 145354d7675SEmmanuel Vadot dma-channels = <16>; 146354d7675SEmmanuel Vadot }; 147