Skip to content

Commit d57b2a6

Browse files
Akhil Rvinodkoul
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 <[email protected]> Acked-by: Thierry Reding <[email protected]> Acked-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 444eef7 commit d57b2a6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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)