Thread (1 message) 1 message, 1 author, 2016-09-19

Re: [PATCH 11/11] ARM: DT: STM32: add dma for usart1 on F429

From: Alexandre Torgue <hidden>
Date: 2016-09-19 07:47:55
Also in: linux-arm-kernel, linux-serial

Possibly related (same subject, not in this thread)

Hi Bruno,

On 09/19/2016 03:28 AM, Bruno Herrera wrote:
quoted
Signed-off-by: Gerald Baeza <redacted>
Signed-off-by: Alexandre TORGUE <redacted>
I just tested your patch with success in two scenarios:

1) STM32F469IDISCO board
2) Custom board running STM32F439NI

Tested-by: Bruno Herrera <redacted>

One last comment I have bellow:
quoted
diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi
index 35df462..227376b 100644
--- a/arch/arm/boot/dts/stm32f429.dtsi
+++ b/arch/arm/boot/dts/stm32f429.dtsi
@@ -161,6 +161,9 @@
                        interrupts = <37>;
                        clocks = <&rcc 0 164>;
                        status = "disabled";
+                       dmas = <&dma2 2 4 0x414 0x0>,
+                              <&dma2 7 4 0x414 0x0>;
According to stm32-dma.txt documentation in the third parameter (32bit
mask) only the following bits can be set : 9,10,15,16,17 and 0x414 is
setting bits 2 and 4. It make sense if you look in the register itself
(DMA_SxCR) but as far I could see from the DMA driver code this bits
are set internally. The correct value should be 0x400.
Thanks for you careful review: the dma issue you noticed is due to the 
fact that this bit field binding changed between kernel 4.2 and 4.8. 
Front of kernel 4.2, 0x414 was fine... but now it is no more, you are 
right.
I will fix it in my next pull request.

Thanks
Alex
quoted
+                       dma-names = "rx", "tx";
                };

                usart6: serial@40011400 {
.


--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help