1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/dma/ti/k3-udma.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Texas Instruments K3 NAVSS Unified DMA Device Tree Bindings
10 - Peter Ujfalusi <peter.ujfalusi@ti.com>
13 The UDMA-P is intended to perform similar (but significantly upgraded)
14 functions as the packet-oriented DMA used on previous SoC devices. The UDMA-P
15 module supports the transmission and reception of various packet types.
16 The UDMA-P architecture facilitates the segmentation and reassembly of SoC DMA
17 data structure compliant packets to/from smaller data blocks that are natively
18 compatible with the specific requirements of each connected peripheral.
19 Multiple Tx and Rx channels are provided within the DMA which allow multiple
20 segmentation or reassembly operations to be ongoing. The DMA controller
21 maintains state information for each of the channels which allows packet
22 segmentation and reassembly operations to be time division multiplexed between
23 channels in order to share the underlying DMA hardware. An external DMA
24 scheduler is used to control the ordering and rate at which this multiplexing
25 occurs for Transmit operations. The ordering and rate of Receive operations
26 is indirectly controlled by the order in which blocks are pushed into the DMA
27 on the Rx PSI-L interface.
29 The UDMA-P also supports acting as both a UTC and UDMA-C for its internal
30 channels. Channels in the UDMA-P can be configured to be either Packet-Based
31 or Third-Party channels on a channel by channel basis.
33 All transfers within NAVSS is done between PSI-L source and destination
35 The peripherals serviced by UDMA can be PSI-L native (sa2ul, cpsw, etc) or
36 legacy, non PSI-L native peripherals. In the later case a special, small PDMA
37 is tasked to act as a bridge between the PSI-L fabric and the legacy
40 PDMAs can be configured via UDMAP peer registers to match with the
41 configuration of the legacy peripheral.
44 - $ref: "../dma-controller.yaml#"
50 The cell is the PSI-L thread ID of the remote (to UDMAP) end.
51 Valid ranges for thread ID depends on the data movement direction:
52 for source thread IDs (rx): 0 - 0x7fff
53 for destination thread IDs (tx): 0x8000 - 0xffff
55 Please refer to the device documentation for the PSI-L thread map and also
56 the PSI-L peripheral chapter for the correct thread ID.
60 - ti,am654-navss-main-udmap
61 - ti,am654-navss-mcu-udmap
62 - ti,j721e-navss-main-udmap
63 - ti,j721e-navss-mcu-udmap
77 description: phandle to TI-SCI compatible System controller node
79 - $ref: /schemas/types.yaml#/definitions/phandle
82 description: TI-SCI device id of UDMAP
84 - $ref: /schemas/types.yaml#/definitions/uint32
87 description: phandle to the ring accelerator node
89 - $ref: /schemas/types.yaml#/definitions/phandle
91 ti,sci-rm-range-tchan:
93 Array of UDMA tchan resource subtypes for resource allocation for this
96 - $ref: /schemas/types.yaml#/definitions/uint32-array
101 ti,sci-rm-range-rchan:
103 Array of UDMA rchan resource subtypes for resource allocation for this
106 - $ref: /schemas/types.yaml#/definitions/uint32-array
111 ti,sci-rm-range-rflow:
113 Array of UDMA rflow resource subtypes for resource allocation for this
116 - $ref: /schemas/types.yaml#/definitions/uint32-array
130 - ti,sci-rm-range-tchan
131 - ti,sci-rm-range-rchan
132 - ti,sci-rm-range-rflow
137 #address-cells = <2>;
140 cbass_main_navss: navss@30800000 {
141 compatible = "simple-mfd";
142 #address-cells = <2>;
148 ti,sci-dev-id = <118>;
150 main_udmap: dma-controller@31150000 {
151 compatible = "ti,am654-navss-main-udmap";
152 reg = <0x0 0x31150000 0x0 0x100>,
153 <0x0 0x34000000 0x0 0x100000>,
154 <0x0 0x35000000 0x0 0x100000>;
155 reg-names = "gcfg", "rchanrt", "tchanrt";
158 ti,ringacc = <&ringacc>;
160 msi-parent = <&inta_main_udmass>;
163 ti,sci-dev-id = <188>;
165 ti,sci-rm-range-tchan = <0x1>, /* TX_HCHAN */
167 ti,sci-rm-range-rchan = <0x4>, /* RX_HCHAN */
169 ti,sci-rm-range-rflow = <0x6>; /* GP RFLOW */
173 mcasp0: mcasp@02B00000 {
174 dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>;
175 dma-names = "tx", "rx";
178 crypto: crypto@4E00000 {
179 compatible = "ti,sa2ul-crypto";
181 dmas = <&main_udmap 0xc000>, <&main_udmap 0x4000>, <&main_udmap 0x4001>;
182 dma-names = "tx", "rx1", "rx2";