Skip to content

Commit 3d62305

Browse files
Peter UjfalusiTero Kristo
authored andcommitted
arm64: dts: ti: k3-am65: DMA support
Add the ringacc and udmap nodes for main and mcu NAVSS. Signed-off-by: Peter Ujfalusi <[email protected]> Reviewed-by: Lokesh Vutla <[email protected]> Signed-off-by: Tero Kristo <[email protected]>
1 parent 12f2070 commit 3d62305

File tree

2 files changed

+85
-0
lines changed

2 files changed

+85
-0
lines changed

arch/arm64/boot/dts/ti/k3-am65-main.dtsi

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,10 @@
379379
#address-cells = <2>;
380380
#size-cells = <2>;
381381
ranges;
382+
dma-coherent;
383+
dma-ranges;
384+
385+
ti,sci-dev-id = <118>;
382386

383387
intr_main_navss: interrupt-controller1 {
384388
compatible = "ti,sci-intr";
@@ -527,6 +531,41 @@
527531
ti,mbox-num-fifos = <16>;
528532
interrupt-parent = <&intr_main_navss>;
529533
};
534+
535+
ringacc: ringacc@3c000000 {
536+
compatible = "ti,am654-navss-ringacc";
537+
reg = <0x0 0x3c000000 0x0 0x400000>,
538+
<0x0 0x38000000 0x0 0x400000>,
539+
<0x0 0x31120000 0x0 0x100>,
540+
<0x0 0x33000000 0x0 0x40000>;
541+
reg-names = "rt", "fifos", "proxy_gcfg", "proxy_target";
542+
ti,num-rings = <818>;
543+
ti,sci-rm-range-gp-rings = <0x2>; /* GP ring range */
544+
ti,dma-ring-reset-quirk;
545+
ti,sci = <&dmsc>;
546+
ti,sci-dev-id = <187>;
547+
msi-parent = <&inta_main_udmass>;
548+
};
549+
550+
main_udmap: dma-controller@31150000 {
551+
compatible = "ti,am654-navss-main-udmap";
552+
reg = <0x0 0x31150000 0x0 0x100>,
553+
<0x0 0x34000000 0x0 0x100000>,
554+
<0x0 0x35000000 0x0 0x100000>;
555+
reg-names = "gcfg", "rchanrt", "tchanrt";
556+
msi-parent = <&inta_main_udmass>;
557+
#dma-cells = <1>;
558+
559+
ti,sci = <&dmsc>;
560+
ti,sci-dev-id = <188>;
561+
ti,ringacc = <&ringacc>;
562+
563+
ti,sci-rm-range-tchan = <0x1>, /* TX_HCHAN */
564+
<0x2>; /* TX_CHAN */
565+
ti,sci-rm-range-rchan = <0x4>, /* RX_HCHAN */
566+
<0x5>; /* RX_CHAN */
567+
ti,sci-rm-range-rflow = <0x6>; /* GP RFLOW */
568+
};
530569
};
531570

532571
main_gpio0: main_gpio0@600000 {

arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,52 @@
104104
};
105105
};
106106

107+
mcu_navss {
108+
compatible = "simple-mfd";
109+
#address-cells = <2>;
110+
#size-cells = <2>;
111+
ranges;
112+
dma-coherent;
113+
dma-ranges;
114+
115+
ti,sci-dev-id = <119>;
116+
117+
mcu_ringacc: ringacc@2b800000 {
118+
compatible = "ti,am654-navss-ringacc";
119+
reg = <0x0 0x2b800000 0x0 0x400000>,
120+
<0x0 0x2b000000 0x0 0x400000>,
121+
<0x0 0x28590000 0x0 0x100>,
122+
<0x0 0x2a500000 0x0 0x40000>;
123+
reg-names = "rt", "fifos", "proxy_gcfg", "proxy_target";
124+
ti,num-rings = <286>;
125+
ti,sci-rm-range-gp-rings = <0x2>; /* GP ring range */
126+
ti,dma-ring-reset-quirk;
127+
ti,sci = <&dmsc>;
128+
ti,sci-dev-id = <195>;
129+
msi-parent = <&inta_main_udmass>;
130+
};
131+
132+
mcu_udmap: dma-controller@285c0000 {
133+
compatible = "ti,am654-navss-mcu-udmap";
134+
reg = <0x0 0x285c0000 0x0 0x100>,
135+
<0x0 0x2a800000 0x0 0x40000>,
136+
<0x0 0x2aa00000 0x0 0x40000>;
137+
reg-names = "gcfg", "rchanrt", "tchanrt";
138+
msi-parent = <&inta_main_udmass>;
139+
#dma-cells = <1>;
140+
141+
ti,sci = <&dmsc>;
142+
ti,sci-dev-id = <194>;
143+
ti,ringacc = <&mcu_ringacc>;
144+
145+
ti,sci-rm-range-tchan = <0x1>, /* TX_HCHAN */
146+
<0x2>; /* TX_CHAN */
147+
ti,sci-rm-range-rchan = <0x3>, /* RX_HCHAN */
148+
<0x4>; /* RX_CHAN */
149+
ti,sci-rm-range-rflow = <0x5>; /* GP RFLOW */
150+
};
151+
};
152+
107153
fss: fss@47000000 {
108154
compatible = "simple-bus";
109155
#address-cells = <2>;

0 commit comments

Comments
 (0)