Skip to content

Commit 99405ef

Browse files
yongxu-wang15abhinavnxp
authored andcommitted
boards: nxp: imx95_evk_mimx9596_m7: add uart dma support
- verify in uart_async_api test case. Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
1 parent 24f1a23 commit 99405ef

File tree

6 files changed

+44
-5
lines changed

6 files changed

+44
-5
lines changed

boards/nxp/imx95_evk/imx95_evk-pinctrl.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@
9696
};
9797
};
9898

99+
lpuart5_default: lpuart5_default {
100+
group0 {
101+
pinmux = <&iomuxc_gpio_io01_lpuart_rx_lpuart5_rx>,
102+
<&iomuxc_gpio_io00_lpuart_tx_lpuart5_tx>;
103+
bias-pull-up;
104+
slew-rate = "slightly_fast";
105+
drive-strength = "x4";
106+
};
107+
};
108+
99109
sai3_default: sai3_default {
100110
group0 {
101111
pinmux = <&iomuxc_gpio_io16_sai_tx_bclk_sai3_tx_bclk>,

boards/nxp/imx95_evk/imx95_evk_mimx9596_m7.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@
6969
pinctrl-names = "default";
7070
};
7171

72+
&lpuart5 {
73+
status = "okay";
74+
current-speed = <115200>;
75+
pinctrl-0 = <&lpuart5_default>;
76+
pinctrl-names = "default";
77+
};
78+
7279
&sai3 {
7380
pinctrl-0 = <&sai3_default>;
7481
pinctrl-names = "default";
@@ -83,3 +90,7 @@
8390
&lptmr2 {
8491
status = "okay";
8592
};
93+
94+
&edma2 {
95+
status = "okay";
96+
};

boards/nxp/imx95_evk/imx95_evk_mimx9596_m7.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ supported:
2020
- spi
2121
- netif:eth
2222
- counter
23+
- dma
2324
testing:
2425
binaries:
2526
- flash.bin

dts/arm/nxp/nxp_imx95_m7.dtsi

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,16 @@
135135
};
136136

137137
edma2: dma@42000000 {
138-
compatible = "nxp,edma";
139-
reg = <0x42000000 (DT_SIZE_K(64) * 33)>;
140-
valid-channels = <30>, <31>;
141-
interrupts = <143 0>, <143 0>;
138+
compatible = "nxp,mcux-edma";
139+
reg = <0x42000000 0x4000>;
142140
#dma-cells = <2>;
141+
nxp,version = <5>;
142+
dma-channels = <64>;
143+
dma-requests = <92>;
144+
no-error-irq;
145+
interrupts = <128 0>, <129 0>, <143 0>;
146+
channels-shared-irq-mask = <0x00000003 0x00000000 0x0000000C 0x00000000
147+
0x00000030 0x00000000>;
143148
status = "disabled";
144149
};
145150

@@ -234,6 +239,8 @@
234239
reg = <0x42570000 DT_SIZE_K(64)>;
235240
interrupts = <64 3>;
236241
clocks = <&scmi_clk IMX95_CLK_LPUART3>;
242+
dmas = <&edma2 0 17>, <&edma2 1 18>;
243+
dma-names = "tx", "rx";
237244
status = "disabled";
238245
};
239246

@@ -250,6 +257,8 @@
250257
reg = <0x42590000 DT_SIZE_K(64)>;
251258
interrupts = <66 3>;
252259
clocks = <&scmi_clk IMX95_CLK_LPUART5>;
260+
dmas = <&edma2 2 21>, <&edma2 3 22>;
261+
dma-names = "tx", "rx";
253262
status = "disabled";
254263
};
255264

@@ -269,7 +278,7 @@
269278
interrupts = <170 0>;
270279
dai-index = <3>;
271280
mclk-is-output;
272-
dmas = <&edma2 30 60>, <&edma2 31 61>;
281+
dmas = <&edma2 4 60>, <&edma2 5 61>;
273282
dma-names = "tx", "rx";
274283
status = "disabled";
275284
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_DMA_MCUX_USE_DTCM_FOR_DMA_DESCRIPTORS=n
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
dut: &lpuart5 {
4+
status = "okay";
5+
current-speed = <115200>;
6+
nxp,loopback;
7+
};

0 commit comments

Comments
 (0)