Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt/bindings: bcm2835: add interrupt-names property

Added standard interrupt-names property so that
platform_get_irq_byname() can get used to fetch the
interrupt corresponding to each dma_channel
instead of the current platform_get_irq() with
an assumed ordering of the interrupts.

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Eric Anholt <eric@anholt.net>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Martin Sperl and committed by
Vinod Koul
e7679db7 d9f094a0

+26
+26
Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.txt
··· 12 12 - reg: Should contain DMA registers location and length. 13 13 - interrupts: Should contain the DMA interrupts associated 14 14 to the DMA channels in ascending order. 15 + - interrupt-names: Should contain the names of the interrupt 16 + in the form "dmaXX". 17 + Use "dma-shared-all" for the common interrupt line 18 + that is shared by all dma channels. 15 19 - #dma-cells: Must be <1>, the cell in the dmas property of the 16 20 client device represents the DREQ number. 17 21 - brcm,dma-channel-mask: Bit mask representing the channels ··· 38 34 <1 24>, 39 35 <1 25>, 40 36 <1 26>, 37 + /* dma channel 11-14 share one irq */ 41 38 <1 27>, 39 + <1 27>, 40 + <1 27>, 41 + <1 27>, 42 + /* unused shared irq for all channels */ 42 43 <1 28>; 44 + interrupt-names = "dma0", 45 + "dma1", 46 + "dma2", 47 + "dma3", 48 + "dma4", 49 + "dma5", 50 + "dma6", 51 + "dma7", 52 + "dma8", 53 + "dma9", 54 + "dma10", 55 + "dma11", 56 + "dma12", 57 + "dma13", 58 + "dma14", 59 + "dma-shared-all"; 43 60 44 61 #dma-cells = <1>; 45 62 brcm,dma-channel-mask = <0x7f35>; 46 63 }; 64 + 47 65 48 66 DMA clients connected to the BCM2835 DMA controller must use the format 49 67 described in the dma.txt file, using a two-cell specifier for each channel.