AnsweredAssumed Answered

imx6ul: which are the dma values for the uart1?

Question asked by Isaac Hermida on Sep 29, 2016
Latest reply on Sep 29, 2016 by Isaac Hermida

In the file arch/arm/boot/dts/imx6ul.dtsi I am missing the "dmas" values for the uart1.

This uart1 does support DMA (according to CPU HRM), so I image it is just missing because it is the console uart in the EVK board (console does not use DMA).

The other uarts (2, 3, 4, ...) has defined those values.

Can anyone point me to the values for the DMA of that uart?

 

I think I have figure out those values, but I would like to get a confirmation to ensure they are correct

diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi
index cdcda7f739f9..a4452c269f9e 100644
--- a/arch/arm/boot/dts/imx6ul.dtsi
+++ b/arch/arm/boot/dts/imx6ul.dtsi
@@ -324,20 +324,22 @@
};

uart1: serial@02020000 {
compatible = "fsl,imx6ul-uart",
"fsl,imx6q-uart", "fsl,imx21-uart";
reg = <0x02020000 0x4000>;
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6UL_CLK_UART1_IPG>,
<&clks IMX6UL_CLK_UART1_SERIAL>;
clock-names = "ipg", "per";
+ dmas = <&sdma 25 4 0>, <&sdma 26 4 0>;
+ dma-names = "rx", "tx";
status = "disabled";
};

Outcomes