1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/dma/renesas,usb-dmac.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Renesas USB DMA Controller 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel VadotallOf: 13*cb7aa33aSEmmanuel Vadot - $ref: dma-controller.yaml# 14c66ec88fSEmmanuel Vadot 15c66ec88fSEmmanuel Vadotproperties: 16c66ec88fSEmmanuel Vadot compatible: 17c66ec88fSEmmanuel Vadot items: 18c66ec88fSEmmanuel Vadot - enum: 19c66ec88fSEmmanuel Vadot - renesas,r8a7742-usb-dmac # RZ/G1H 20c66ec88fSEmmanuel Vadot - renesas,r8a7743-usb-dmac # RZ/G1M 21c66ec88fSEmmanuel Vadot - renesas,r8a7744-usb-dmac # RZ/G1N 22c66ec88fSEmmanuel Vadot - renesas,r8a7745-usb-dmac # RZ/G1E 23c66ec88fSEmmanuel Vadot - renesas,r8a77470-usb-dmac # RZ/G1C 24c66ec88fSEmmanuel Vadot - renesas,r8a774a1-usb-dmac # RZ/G2M 25c66ec88fSEmmanuel Vadot - renesas,r8a774b1-usb-dmac # RZ/G2N 26c66ec88fSEmmanuel Vadot - renesas,r8a774c0-usb-dmac # RZ/G2E 27c66ec88fSEmmanuel Vadot - renesas,r8a774e1-usb-dmac # RZ/G2H 28c66ec88fSEmmanuel Vadot - renesas,r8a7790-usb-dmac # R-Car H2 29c66ec88fSEmmanuel Vadot - renesas,r8a7791-usb-dmac # R-Car M2-W 30c66ec88fSEmmanuel Vadot - renesas,r8a7793-usb-dmac # R-Car M2-N 31c66ec88fSEmmanuel Vadot - renesas,r8a7794-usb-dmac # R-Car E2 32c66ec88fSEmmanuel Vadot - renesas,r8a7795-usb-dmac # R-Car H3 33c66ec88fSEmmanuel Vadot - renesas,r8a7796-usb-dmac # R-Car M3-W 34c66ec88fSEmmanuel Vadot - renesas,r8a77961-usb-dmac # R-Car M3-W+ 35c66ec88fSEmmanuel Vadot - renesas,r8a77965-usb-dmac # R-Car M3-N 36c66ec88fSEmmanuel Vadot - renesas,r8a77990-usb-dmac # R-Car E3 37c66ec88fSEmmanuel Vadot - renesas,r8a77995-usb-dmac # R-Car D3 38c66ec88fSEmmanuel Vadot - const: renesas,usb-dmac 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel Vadot reg: 41c66ec88fSEmmanuel Vadot maxItems: 1 42c66ec88fSEmmanuel Vadot 43c66ec88fSEmmanuel Vadot interrupts: 44c66ec88fSEmmanuel Vadot minItems: 2 45c66ec88fSEmmanuel Vadot maxItems: 2 46c66ec88fSEmmanuel Vadot 47c66ec88fSEmmanuel Vadot interrupt-names: 48c66ec88fSEmmanuel Vadot items: 49c66ec88fSEmmanuel Vadot - pattern: ch0 50c66ec88fSEmmanuel Vadot - pattern: ch1 51c66ec88fSEmmanuel Vadot 52c66ec88fSEmmanuel Vadot clocks: 53c66ec88fSEmmanuel Vadot maxItems: 1 54c66ec88fSEmmanuel Vadot 55c66ec88fSEmmanuel Vadot '#dma-cells': 56c66ec88fSEmmanuel Vadot const: 1 57c66ec88fSEmmanuel Vadot description: 58c66ec88fSEmmanuel Vadot The cell specifies the channel number of the DMAC port connected to 59c66ec88fSEmmanuel Vadot the DMA client. 60c66ec88fSEmmanuel Vadot 61c66ec88fSEmmanuel Vadot dma-channels: 62c66ec88fSEmmanuel Vadot const: 2 63c66ec88fSEmmanuel Vadot 64c66ec88fSEmmanuel Vadot iommus: 65c66ec88fSEmmanuel Vadot minItems: 2 66c66ec88fSEmmanuel Vadot maxItems: 2 67c66ec88fSEmmanuel Vadot 68c66ec88fSEmmanuel Vadot power-domains: 69c66ec88fSEmmanuel Vadot maxItems: 1 70c66ec88fSEmmanuel Vadot 71c66ec88fSEmmanuel Vadot resets: 72c66ec88fSEmmanuel Vadot maxItems: 1 73c66ec88fSEmmanuel Vadot 74c66ec88fSEmmanuel Vadotrequired: 75c66ec88fSEmmanuel Vadot - compatible 76c66ec88fSEmmanuel Vadot - reg 77c66ec88fSEmmanuel Vadot - interrupts 78c66ec88fSEmmanuel Vadot - interrupt-names 79c66ec88fSEmmanuel Vadot - clocks 80c66ec88fSEmmanuel Vadot - '#dma-cells' 81c66ec88fSEmmanuel Vadot - dma-channels 82c66ec88fSEmmanuel Vadot - power-domains 83c66ec88fSEmmanuel Vadot - resets 84c66ec88fSEmmanuel Vadot 85c66ec88fSEmmanuel VadotadditionalProperties: false 86c66ec88fSEmmanuel Vadot 87c66ec88fSEmmanuel Vadotexamples: 88c66ec88fSEmmanuel Vadot - | 89c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/r8a7790-cpg-mssr.h> 90c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 91c66ec88fSEmmanuel Vadot #include <dt-bindings/power/r8a7790-sysc.h> 92c66ec88fSEmmanuel Vadot 93c66ec88fSEmmanuel Vadot usb_dmac0: dma-controller@e65a0000 { 94c66ec88fSEmmanuel Vadot compatible = "renesas,r8a7790-usb-dmac", "renesas,usb-dmac"; 95c66ec88fSEmmanuel Vadot reg = <0xe65a0000 0x100>; 96c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>, 97c66ec88fSEmmanuel Vadot <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>; 98c66ec88fSEmmanuel Vadot interrupt-names = "ch0", "ch1"; 99c66ec88fSEmmanuel Vadot clocks = <&cpg CPG_MOD 330>; 100c66ec88fSEmmanuel Vadot power-domains = <&sysc R8A7790_PD_ALWAYS_ON>; 101c66ec88fSEmmanuel Vadot resets = <&cpg 330>; 102c66ec88fSEmmanuel Vadot #dma-cells = <1>; 103c66ec88fSEmmanuel Vadot dma-channels = <2>; 104c66ec88fSEmmanuel Vadot }; 105