Skip to content

Commit d57b2a6

Browse files
akhilr-nvvinodkoul
authored andcommitted
dt-bindings: dmaengine: Add dma-channel-mask to Tegra GPCDMA
Add dma-channel-mask property in Tegra GPCDMA document. The property would help to specify the channels to be used in kernel and reserve few for the firmware. This was previously achieved by limiting the channel number to 31 in the driver. This is wrong and does not align with the hardware. Correct this and set the max interrupts to 32. Signed-off-by: Akhil R <akhilrajeev@nvidia.com> Acked-by: Thierry Reding <treding@nvidia.com> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20221110171748.40304-2-akhilrajeev@nvidia.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 444eef7 commit d57b2a6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Documentation/devicetree/bindings/dma/nvidia,tegra186-gpc-dma.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ properties:
3939
Should contain all of the per-channel DMA interrupts in
4040
ascending order with respect to the DMA channel index.
4141
minItems: 1
42-
maxItems: 31
42+
maxItems: 32
4343

4444
resets:
4545
maxItems: 1
@@ -52,6 +52,9 @@ properties:
5252

5353
dma-coherent: true
5454

55+
dma-channel-mask:
56+
maxItems: 1
57+
5558
required:
5659
- compatible
5760
- reg
@@ -60,6 +63,7 @@ required:
6063
- reset-names
6164
- "#dma-cells"
6265
- iommus
66+
- dma-channel-mask
6367

6468
additionalProperties: false
6569

@@ -108,5 +112,6 @@ examples:
108112
#dma-cells = <1>;
109113
iommus = <&smmu TEGRA186_SID_GPCDMA_0>;
110114
dma-coherent;
115+
dma-channel-mask = <0xfffffffe>;
111116
};
112117
...

0 commit comments

Comments
 (0)