Path: blob/master/Documentation/devicetree/bindings/dma/img-mdc-dma.txt
26308 views
* IMG Multi-threaded DMA Controller (MDC)12Required properties:3- compatible: Must be "img,pistachio-mdc-dma".4- reg: Must contain the base address and length of the MDC registers.5- interrupts: Must contain all the per-channel DMA interrupts.6- clocks: Must contain an entry for each entry in clock-names.7See ../clock/clock-bindings.txt for details.8- clock-names: Must include the following entries:9- sys: MDC system interface clock.10- img,cr-periph: Must contain a phandle to the peripheral control syscon11node which contains the DMA request to channel mapping registers.12- img,max-burst-multiplier: Must be the maximum supported burst size multiplier.13The maximum burst size is this value multiplied by the hardware-reported bus14width.15- #dma-cells: Must be 3:16- The first cell is the peripheral's DMA request line.17- The second cell is a bitmap specifying to which channels the DMA request18line may be mapped (i.e. bit N set indicates channel N is usable).19- The third cell is the thread ID to be used by the channel.2021Optional properties:22- dma-channels: Number of supported DMA channels, up to 32. If not specified23the number reported by the hardware is used.2425Example:2627mdc: dma-controller@18143000 {28compatible = "img,pistachio-mdc-dma";29reg = <0x18143000 0x1000>;30interrupts = <GIC_SHARED 27 IRQ_TYPE_LEVEL_HIGH>,31<GIC_SHARED 28 IRQ_TYPE_LEVEL_HIGH>,32<GIC_SHARED 29 IRQ_TYPE_LEVEL_HIGH>,33<GIC_SHARED 30 IRQ_TYPE_LEVEL_HIGH>,34<GIC_SHARED 31 IRQ_TYPE_LEVEL_HIGH>,35<GIC_SHARED 32 IRQ_TYPE_LEVEL_HIGH>,36<GIC_SHARED 33 IRQ_TYPE_LEVEL_HIGH>,37<GIC_SHARED 34 IRQ_TYPE_LEVEL_HIGH>,38<GIC_SHARED 35 IRQ_TYPE_LEVEL_HIGH>,39<GIC_SHARED 36 IRQ_TYPE_LEVEL_HIGH>,40<GIC_SHARED 37 IRQ_TYPE_LEVEL_HIGH>,41<GIC_SHARED 38 IRQ_TYPE_LEVEL_HIGH>;42clocks = <&system_clk>;43clock-names = "sys";4445img,max-burst-multiplier = <16>;46img,cr-periph = <&cr_periph>;4748#dma-cells = <3>;49};5051spi@18100f00 {52...53dmas = <&mdc 9 0xffffffff 0>, <&mdc 10 0xffffffff 0>;54dma-names = "tx", "rx";55...56};575859