1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (C) 2020 Texas Instruments Incorporated
3 # Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
6 $id: http://devicetree.org/schemas/dma/ti/k3-bcdma.yaml#
7 $schema: http://devicetree.org/meta-schemas/core.yaml#
9 title: Texas Instruments K3 DMSS BCDMA Device Tree Bindings
12 - Peter Ujfalusi <peter.ujfalusi@gmail.com>
15 The Block Copy DMA (BCDMA) is intended to perform similar functions as the TR
16 mode channels of K3 UDMA-P.
17 BCDMA includes block copy channels and Split channels.
19 Block copy channels mainly used for memory to memory transfers, but with
20 optional triggers a block copy channel can service peripherals by accessing
21 directly to memory mapped registers or area.
23 Split channels can be used to service PSI-L based peripherals.
24 The peripherals can be PSI-L native or legacy, non PSI-L native peripherals
25 with PDMAs. PDMA is tasked to act as a bridge between the PSI-L fabric and the
28 PDMAs can be configured via BCDMA split channel's peer registers to match with
29 the configuration of the legacy peripheral.
32 - $ref: /schemas/dma/dma-controller.yaml#
36 const: ti,am64-dmss-bcdma
41 cell 1: type of the BCDMA channel to be used to service the peripheral:
43 1 - block copy channel using global trigger 1
44 2 - block copy channel using global trigger 2
45 3 - block copy channel using local trigger
47 cell 2: parameter for the channel:
48 if cell 1 is 0 (split channel):
49 PSI-L thread ID of the remote (to BCDMA) end.
50 Valid ranges for thread ID depends on the data movement direction:
51 for source thread IDs (rx): 0 - 0x7fff
52 for destination thread IDs (tx): 0x8000 - 0xffff
54 Please refer to the device documentation for the PSI-L thread map and
55 also the PSI-L peripheral chapter for the correct thread ID.
56 if cell 1 is 1 or 2 (block copy channel using global trigger):
59 The trigger must be configured for the channel externally to BCDMA,
60 channels using global triggers should not be requested directly, but
62 if cell 1 is 3 (block copy channel using local trigger):
63 bchan number of the locally triggered channel
65 cell 3: ASEL value for the channel
81 $ref: /schemas/types.yaml#/definitions/uint32
82 description: ASEL value for non slave channels
84 ti,sci-rm-range-bchan:
85 $ref: /schemas/types.yaml#/definitions/uint32-array
87 Array of BCDMA block-copy channel resource subtypes for resource
88 allocation for this host
95 ti,sci-rm-range-tchan:
96 $ref: /schemas/types.yaml#/definitions/uint32-array
98 Array of BCDMA split tx channel resource subtypes for resource allocation
106 ti,sci-rm-range-rchan:
107 $ref: /schemas/types.yaml#/definitions/uint32-array
109 Array of BCDMA split rx channel resource subtypes for resource allocation
125 - ti,sci-rm-range-bchan
126 - ti,sci-rm-range-tchan
127 - ti,sci-rm-range-rchan
129 unevaluatedProperties: false
134 #address-cells = <2>;
138 compatible = "simple-mfd";
139 #address-cells = <2>;
144 ti,sci-dev-id = <25>;
146 main_bcdma: dma-controller@485c0100 {
147 compatible = "ti,am64-dmss-bcdma";
149 reg = <0x0 0x485c0100 0x0 0x100>,
150 <0x0 0x4c000000 0x0 0x20000>,
151 <0x0 0x4a820000 0x0 0x20000>,
152 <0x0 0x4aa40000 0x0 0x20000>,
153 <0x0 0x4bc00000 0x0 0x100000>;
154 reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt";
155 msi-parent = <&inta_main_dmss>;
159 ti,sci-dev-id = <26>;
161 ti,sci-rm-range-bchan = <0x20>; /* BLOCK_COPY_CHAN */
162 ti,sci-rm-range-rchan = <0x21>; /* SPLIT_TR_RX_CHAN */
163 ti,sci-rm-range-tchan = <0x22>; /* SPLIT_TR_TX_CHAN */