Skip to content

Commit dd3a331

Browse files
ElectronFluxcfriedt
authored andcommitted
dts: atmel: sam0: Add clarification on dma-cells property
Add clarification to the dma-cells property explaining the purpose of each cell. Signed-off-by: Ron Smith <[email protected]>
1 parent 683dbc4 commit dd3a331

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

dts/bindings/dma/atmel,sam0-dmac.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,26 @@ properties:
1414
"#dma-cells":
1515
const: 2
1616

17+
# #dma-cells : Must be <2>.
18+
# The 1st cell specifies the DMAC channel to be used for the data transfer.
19+
# This channel should be unique between all peripherals that are using the
20+
# DMAC instance.
21+
# The 2nd cell defines the peripheral trigger which is the source of the transfer.
22+
# For details on trigger selection and trigger modes, refer to
23+
# "Transfer Triggers and Actions".
24+
# See the SoC's reference manual for all the supported request sources.
25+
#
26+
# Example of devicetree dma channel configuration:
27+
#
28+
# &sercom3 {
29+
# /* Configure DMA channels for async operation */
30+
# dmas = <&dmac 10 7>, <&dmac 11 8>;
31+
# dma-names = "rx", "tx";
32+
# };
33+
#
34+
# In above fragment 10 and 11 represents the different channels used to
35+
# transfer data between peripheral and ram. The numbers 7/8 are, for instance,
36+
# uart_rx/tx peripheral trigger for sercom3.
1737
dma-cells:
1838
- channel
1939
- trigsrc

0 commit comments

Comments
 (0)