Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2d896c0 authored by John Stultz's avatar John Stultz Committed by Vinod Koul
Browse files

Documentation: bindings: dma: Add binding for dma-channel-mask



Some dma channels can be reserved for secure mode or other
hardware on the SoC, so provide a binding for a bitmask
listing the available channels for the kernel to use.

This follows the pre-existing bcm,dma-channel-mask binding.

Cc: Vinod Koul <vkoul@kernel.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Tanglei Han <hantanglei@huawei.com>
Cc: Zhuangluan Su <suzhuangluan@hisilicon.com>
Cc: Ryan Grachek <ryan@edited.us>
Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Cc: dmaengine@vger.kernel.org
Cc: devicetree@vger.kernel.org
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 50fdb52a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -16,6 +16,9 @@ Optional properties:
- dma-channels: 	Number of DMA channels supported by the controller.
- dma-requests: 	Number of DMA request signals supported by the
			controller.
- dma-channel-mask:	Bitmask of available DMA channels in ascending order
			that are not reserved by firmware and are available to
			the kernel. i.e. first channel corresponds to LSB.

Example:

@@ -29,6 +32,7 @@ Example:
		#dma-cells = <1>;
		dma-channels = <32>;
		dma-requests = <127>;
		dma-channel-mask = <0xfffe>
	};

* DMA router