From: Nicolas Ferre <hidden> Date: 2016-12-01 10:50:12
The sama5d2 SoC has a second DMA controller and can be used just like DMA0.
By default both DMA controllers are configured as "Secure" in
MATRIX_SPSELR so we can use whichever we want in a "single Secure World"
configuration.
Surprisingly the DMA1 has a lower address than DMA0. To avoid confusion
place it after DMA0 node anyway.
Signed-off-by: Nicolas Ferre <redacted>
---
arch/arm/boot/dts/sama5d2.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
@@ -395,6 +395,16 @@clock-names="dma_clk";};+/* Place dma1 here despite its address */+dma1:dma-controlleratf0004000{+compatible="atmel,sama5d4-dma";+reg=<0xf00040000x1000>;+interrupts=<7IRQ_TYPE_LEVEL_HIGH0>;+#dma-cells=<1>;+clocks=<&dma1_clk>;+clock-names="dma_clk";+};+pmc:pmcatf0014000{compatible="atmel,sama5d2-pmc","syscon";reg=<0xf00140000x160>;
From: Nicolas Ferre <hidden> Date: 2016-12-01 10:50:37
Now that DMA1 is defined, use it to distribute channel usage among the two
controllers.
Signed-off-by: Nicolas Ferre <redacted>
---
arch/arm/boot/dts/sama5d2.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Nicolas Ferre <hidden> Date: 2016-12-01 10:51:00
Use DMA for UART3 as we have enough channels and to show how to
specify DMA use with serial nodes.
Signed-off-by: Nicolas Ferre <redacted>
---
arch/arm/boot/dts/at91-sama5d2_xplained.dts | 2 ++
1 file changed, 2 insertions(+)
On 01/12/2016 at 11:49:47 +0100, Nicolas Ferre wrote :
The sama5d2 SoC has a second DMA controller and can be used just like DMA0.
By default both DMA controllers are configured as "Secure" in
MATRIX_SPSELR so we can use whichever we want in a "single Secure World"
configuration.
Surprisingly the DMA1 has a lower address than DMA0. To avoid confusion
place it after DMA0 node anyway.
sama5d2.dtsi is probably the only one that is properly ordered and I
feel like we should keep it this way.
If one of the nodes is not ordered properly, other ones will follow...
We don't care about the name, it is just an alias. We only care about
the address.
@@ -395,6 +395,16 @@clock-names="dma_clk";};+/* Place dma1 here despite its address */+dma1:dma-controlleratf0004000{+compatible="atmel,sama5d4-dma";+reg=<0xf00040000x1000>;+interrupts=<7IRQ_TYPE_LEVEL_HIGH0>;+#dma-cells=<1>;+clocks=<&dma1_clk>;+clock-names="dma_clk";+};+pmc:pmcatf0014000{compatible="atmel,sama5d2-pmc","syscon";reg=<0xf00140000x160>;
--
2.9.0
--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
On 01/12/2016 at 11:49:47 +0100, Nicolas Ferre wrote :
The sama5d2 SoC has a second DMA controller and can be used just like DMA0.
By default both DMA controllers are configured as "Secure" in
MATRIX_SPSELR so we can use whichever we want in a "single Secure World"
configuration.
Surprisingly the DMA1 has a lower address than DMA0. To avoid confusion
place it after DMA0 node anyway.
Signed-off-by: Nicolas Ferre <redacted>
---
arch/arm/boot/dts/sama5d2.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
All applied, thanks.
--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com