1cde9a96eSYoshihiro Shimoda# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2cde9a96eSYoshihiro Shimoda%YAML 1.2 3cde9a96eSYoshihiro Shimoda--- 4cde9a96eSYoshihiro Shimoda$id: http://devicetree.org/schemas/dma/renesas,rcar-dmac.yaml# 5cde9a96eSYoshihiro Shimoda$schema: http://devicetree.org/meta-schemas/core.yaml# 6cde9a96eSYoshihiro Shimoda 7cde9a96eSYoshihiro Shimodatitle: Renesas R-Car and RZ/G DMA Controller 8cde9a96eSYoshihiro Shimoda 9cde9a96eSYoshihiro Shimodamaintainers: 10cde9a96eSYoshihiro Shimoda - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> 11cde9a96eSYoshihiro Shimoda 12cde9a96eSYoshihiro ShimodaallOf: 13cde9a96eSYoshihiro Shimoda - $ref: "dma-controller.yaml#" 14cde9a96eSYoshihiro Shimoda 15cde9a96eSYoshihiro Shimodaproperties: 16cde9a96eSYoshihiro Shimoda compatible: 17*72ec393bSGeert Uytterhoeven oneOf: 18*72ec393bSGeert Uytterhoeven - items: 19cde9a96eSYoshihiro Shimoda - enum: 2078e7a522SLad Prabhakar - renesas,dmac-r8a7742 # RZ/G1H 21cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7743 # RZ/G1M 22cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7744 # RZ/G1N 23cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7745 # RZ/G1E 24cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a77470 # RZ/G1C 25cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a774a1 # RZ/G2M 26cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a774b1 # RZ/G2N 27cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a774c0 # RZ/G2E 2809b4db27SLad Prabhakar - renesas,dmac-r8a774e1 # RZ/G2H 29cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7790 # R-Car H2 30cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7791 # R-Car M2-W 31cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7792 # R-Car V2H 32cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7793 # R-Car M2-N 33cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7794 # R-Car E2 34cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7795 # R-Car H3 35cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a7796 # R-Car M3-W 36cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a77961 # R-Car M3-W+ 37cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a77965 # R-Car M3-N 38cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a77970 # R-Car V3M 39cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a77980 # R-Car V3H 40cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a77990 # R-Car E3 41cde9a96eSYoshihiro Shimoda - renesas,dmac-r8a77995 # R-Car D3 42cde9a96eSYoshihiro Shimoda - const: renesas,rcar-dmac 43cde9a96eSYoshihiro Shimoda 44*72ec393bSGeert Uytterhoeven - items: 45*72ec393bSGeert Uytterhoeven - const: renesas,dmac-r8a779a0 # R-Car V3U 46*72ec393bSGeert Uytterhoeven 47*72ec393bSGeert Uytterhoeven reg: true 48cde9a96eSYoshihiro Shimoda 49cde9a96eSYoshihiro Shimoda interrupts: 50cde9a96eSYoshihiro Shimoda minItems: 9 51cde9a96eSYoshihiro Shimoda maxItems: 17 52cde9a96eSYoshihiro Shimoda 53cde9a96eSYoshihiro Shimoda interrupt-names: 54cde9a96eSYoshihiro Shimoda minItems: 9 55cde9a96eSYoshihiro Shimoda maxItems: 17 56cde9a96eSYoshihiro Shimoda items: 57cde9a96eSYoshihiro Shimoda - const: error 58cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 59cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 60cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 61cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 62cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 63cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 64cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 65cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 66cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 67cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 68cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 69cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 70cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 71cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 72cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 73cde9a96eSYoshihiro Shimoda - pattern: "^ch([0-9]|1[0-5])$" 74cde9a96eSYoshihiro Shimoda 75cde9a96eSYoshihiro Shimoda clocks: 76cde9a96eSYoshihiro Shimoda maxItems: 1 77cde9a96eSYoshihiro Shimoda 78cde9a96eSYoshihiro Shimoda clock-names: 79cde9a96eSYoshihiro Shimoda items: 80cde9a96eSYoshihiro Shimoda - const: fck 81cde9a96eSYoshihiro Shimoda 82cde9a96eSYoshihiro Shimoda '#dma-cells': 83cde9a96eSYoshihiro Shimoda const: 1 84cde9a96eSYoshihiro Shimoda description: 85cde9a96eSYoshihiro Shimoda The cell specifies the MID/RID of the DMAC port connected to 86cde9a96eSYoshihiro Shimoda the DMA client. 87cde9a96eSYoshihiro Shimoda 88cde9a96eSYoshihiro Shimoda dma-channels: 89cde9a96eSYoshihiro Shimoda minimum: 8 90cde9a96eSYoshihiro Shimoda maximum: 16 91cde9a96eSYoshihiro Shimoda 92cde9a96eSYoshihiro Shimoda dma-channel-mask: true 93cde9a96eSYoshihiro Shimoda 94cde9a96eSYoshihiro Shimoda iommus: 95cde9a96eSYoshihiro Shimoda minItems: 8 96cde9a96eSYoshihiro Shimoda maxItems: 16 97cde9a96eSYoshihiro Shimoda 98cde9a96eSYoshihiro Shimoda power-domains: 99cde9a96eSYoshihiro Shimoda maxItems: 1 100cde9a96eSYoshihiro Shimoda 101cde9a96eSYoshihiro Shimoda resets: 102cde9a96eSYoshihiro Shimoda maxItems: 1 103cde9a96eSYoshihiro Shimoda 104cde9a96eSYoshihiro Shimodarequired: 105cde9a96eSYoshihiro Shimoda - compatible 106cde9a96eSYoshihiro Shimoda - reg 107cde9a96eSYoshihiro Shimoda - interrupts 108cde9a96eSYoshihiro Shimoda - interrupt-names 109cde9a96eSYoshihiro Shimoda - clocks 110cde9a96eSYoshihiro Shimoda - clock-names 111cde9a96eSYoshihiro Shimoda - '#dma-cells' 112cde9a96eSYoshihiro Shimoda - dma-channels 113cde9a96eSYoshihiro Shimoda - power-domains 114cde9a96eSYoshihiro Shimoda - resets 115cde9a96eSYoshihiro Shimoda 116*72ec393bSGeert Uytterhoevenif: 117*72ec393bSGeert Uytterhoeven properties: 118*72ec393bSGeert Uytterhoeven compatible: 119*72ec393bSGeert Uytterhoeven contains: 120*72ec393bSGeert Uytterhoeven enum: 121*72ec393bSGeert Uytterhoeven - renesas,dmac-r8a779a0 122*72ec393bSGeert Uytterhoeventhen: 123*72ec393bSGeert Uytterhoeven properties: 124*72ec393bSGeert Uytterhoeven reg: 125*72ec393bSGeert Uytterhoeven items: 126*72ec393bSGeert Uytterhoeven - description: Base register block 127*72ec393bSGeert Uytterhoeven - description: Channel register block 128*72ec393bSGeert Uytterhoevenelse: 129*72ec393bSGeert Uytterhoeven properties: 130*72ec393bSGeert Uytterhoeven reg: 131*72ec393bSGeert Uytterhoeven maxItems: 1 132*72ec393bSGeert Uytterhoeven 133cde9a96eSYoshihiro ShimodaadditionalProperties: false 134cde9a96eSYoshihiro Shimoda 135cde9a96eSYoshihiro Shimodaexamples: 136cde9a96eSYoshihiro Shimoda - | 137cde9a96eSYoshihiro Shimoda #include <dt-bindings/clock/r8a7790-cpg-mssr.h> 138cde9a96eSYoshihiro Shimoda #include <dt-bindings/interrupt-controller/arm-gic.h> 139cde9a96eSYoshihiro Shimoda #include <dt-bindings/power/r8a7790-sysc.h> 140cde9a96eSYoshihiro Shimoda 141cde9a96eSYoshihiro Shimoda dmac0: dma-controller@e6700000 { 142cde9a96eSYoshihiro Shimoda compatible = "renesas,dmac-r8a7790", "renesas,rcar-dmac"; 143cde9a96eSYoshihiro Shimoda reg = <0xe6700000 0x20000>; 144cde9a96eSYoshihiro Shimoda interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>, 145cde9a96eSYoshihiro Shimoda <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>, 146cde9a96eSYoshihiro Shimoda <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>, 147cde9a96eSYoshihiro Shimoda <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>, 148cde9a96eSYoshihiro Shimoda <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>, 149cde9a96eSYoshihiro Shimoda <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>, 150cde9a96eSYoshihiro Shimoda <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>, 151cde9a96eSYoshihiro Shimoda <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>, 152cde9a96eSYoshihiro Shimoda <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>, 153cde9a96eSYoshihiro Shimoda <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>, 154cde9a96eSYoshihiro Shimoda <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>, 155cde9a96eSYoshihiro Shimoda <GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH>, 156cde9a96eSYoshihiro Shimoda <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>, 157cde9a96eSYoshihiro Shimoda <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>, 158cde9a96eSYoshihiro Shimoda <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>, 159cde9a96eSYoshihiro Shimoda <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>; 160cde9a96eSYoshihiro Shimoda interrupt-names = "error", 161cde9a96eSYoshihiro Shimoda "ch0", "ch1", "ch2", "ch3", 162cde9a96eSYoshihiro Shimoda "ch4", "ch5", "ch6", "ch7", 163cde9a96eSYoshihiro Shimoda "ch8", "ch9", "ch10", "ch11", 164cde9a96eSYoshihiro Shimoda "ch12", "ch13", "ch14"; 165cde9a96eSYoshihiro Shimoda clocks = <&cpg CPG_MOD 219>; 166cde9a96eSYoshihiro Shimoda clock-names = "fck"; 167cde9a96eSYoshihiro Shimoda power-domains = <&sysc R8A7790_PD_ALWAYS_ON>; 168cde9a96eSYoshihiro Shimoda resets = <&cpg 219>; 169cde9a96eSYoshihiro Shimoda #dma-cells = <1>; 170cde9a96eSYoshihiro Shimoda dma-channels = <15>; 171cde9a96eSYoshihiro Shimoda }; 172