LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v1 0/4] Add DMAv2 and DMAMUX Support on STM32MP157C
@ 2018-04-20  9:14 Pierre-Yves MORDRET
  2018-04-20  9:14 ` [PATCH v1 1/4] ARM: configs: stm32: Add DMAv2 support on STM32MP157C machine Pierre-Yves MORDRET
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Pierre-Yves MORDRET @ 2018-04-20  9:14 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Russell King, Maxime Coquelin,
	Alexandre Torgue, devicetree, linux-arm-kernel, linux-kernel
  Cc: Pierre-Yves MORDRET

This patch adds DMAv2 and DMAMUX support on STM32MP157C with configs and device tree.
---
  Version history:
     v1:
        * Initial
---

Pierre-Yves MORDRET (4):
  ARM: configs: stm32: Add DMAv2 support on STM32MP157C machine
  ARM: configs: stm32: Add DMAMUX support on STM32MP157C
  ARM: dts: stm32: Add DMAv2 support on STM32MP157C
  ARM: dts: stm32: Add DMAMUX support on STM32MP157C

 arch/arm/boot/dts/stm32mp157c.dtsi | 44 ++++++++++++++++++++++++++++++++++++++
 arch/arm/mach-stm32/Kconfig        |  2 ++
 2 files changed, 46 insertions(+)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v1 1/4] ARM: configs: stm32: Add DMAv2 support on STM32MP157C machine
  2018-04-20  9:14 [PATCH v1 0/4] Add DMAv2 and DMAMUX Support on STM32MP157C Pierre-Yves MORDRET
@ 2018-04-20  9:14 ` Pierre-Yves MORDRET
  2018-04-20  9:14 ` [PATCH v1 2/4] ARM: configs: stm32: Add DMAMUX support on STM32MP157C Pierre-Yves MORDRET
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Pierre-Yves MORDRET @ 2018-04-20  9:14 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Russell King, Maxime Coquelin,
	Alexandre Torgue, devicetree, linux-arm-kernel, linux-kernel
  Cc: Pierre-Yves MORDRET

This patch adds DMAv2 support for STM32MP157C machine

Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
---
  Version history:
     v1:
        * Initial
---
---
 arch/arm/mach-stm32/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig
index 713c068..e5ac842 100644
--- a/arch/arm/mach-stm32/Kconfig
+++ b/arch/arm/mach-stm32/Kconfig
@@ -46,6 +46,7 @@ if ARCH_MULTI_V7
 
 config MACH_STM32MP157
 	bool "STMicroelectronics STM32MP157"
+	select STM32_DMA
 	default y
 
 endif # ARMv7-A
-- 
2.7.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v1 2/4] ARM: configs: stm32: Add DMAMUX support on STM32MP157C
  2018-04-20  9:14 [PATCH v1 0/4] Add DMAv2 and DMAMUX Support on STM32MP157C Pierre-Yves MORDRET
  2018-04-20  9:14 ` [PATCH v1 1/4] ARM: configs: stm32: Add DMAv2 support on STM32MP157C machine Pierre-Yves MORDRET
@ 2018-04-20  9:14 ` Pierre-Yves MORDRET
  2018-04-20  9:14 ` [PATCH v1 3/4] ARM: dts: stm32: Add DMAv2 " Pierre-Yves MORDRET
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Pierre-Yves MORDRET @ 2018-04-20  9:14 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Russell King, Maxime Coquelin,
	Alexandre Torgue, devicetree, linux-arm-kernel, linux-kernel
  Cc: Pierre-Yves MORDRET

This patch adds DMAMUX support on STM32MP157C

Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
---
  Version history:
     v1:
        * Initial
---
---
 arch/arm/mach-stm32/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig
index e5ac842..b746bf7 100644
--- a/arch/arm/mach-stm32/Kconfig
+++ b/arch/arm/mach-stm32/Kconfig
@@ -47,6 +47,7 @@ if ARCH_MULTI_V7
 config MACH_STM32MP157
 	bool "STMicroelectronics STM32MP157"
 	select STM32_DMA
+	select STM32_DMAMUX
 	default y
 
 endif # ARMv7-A
-- 
2.7.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v1 3/4] ARM: dts: stm32: Add DMAv2 support on STM32MP157C
  2018-04-20  9:14 [PATCH v1 0/4] Add DMAv2 and DMAMUX Support on STM32MP157C Pierre-Yves MORDRET
  2018-04-20  9:14 ` [PATCH v1 1/4] ARM: configs: stm32: Add DMAv2 support on STM32MP157C machine Pierre-Yves MORDRET
  2018-04-20  9:14 ` [PATCH v1 2/4] ARM: configs: stm32: Add DMAMUX support on STM32MP157C Pierre-Yves MORDRET
@ 2018-04-20  9:14 ` Pierre-Yves MORDRET
  2018-04-20  9:14 ` [PATCH v1 4/4] ARM: dts: stm32: Add DMAMUX " Pierre-Yves MORDRET
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Pierre-Yves MORDRET @ 2018-04-20  9:14 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Russell King, Maxime Coquelin,
	Alexandre Torgue, devicetree, linux-arm-kernel, linux-kernel
  Cc: Pierre-Yves MORDRET

Activate DMAv2 for STM32MP157C

Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
---
  Version history:
     v1:
        * Initial
---
---
 arch/arm/boot/dts/stm32mp157c.dtsi | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi
index bc3eddc..3c0ca6c 100644
--- a/arch/arm/boot/dts/stm32mp157c.dtsi
+++ b/arch/arm/boot/dts/stm32mp157c.dtsi
@@ -160,6 +160,38 @@
 			status = "disabled";
 		};
 
+		dma1: dma@48000000 {
+			compatible = "st,stm32-dma";
+			reg = <0x48000000 0x400>;
+			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&rcc DMA1>;
+			#dma-cells = <4>;
+			st,mem2mem;
+		};
+
+		dma2: dma@48001000 {
+			compatible = "st,stm32-dma";
+			reg = <0x48001000 0x400>;
+			interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&rcc DMA2>;
+			#dma-cells = <4>;
+			st,mem2mem;
+		};
+
 		rcc: rcc@50000000 {
 			compatible = "st,stm32mp1-rcc", "syscon";
 			reg = <0x50000000 0x1000>;
-- 
2.7.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v1 4/4] ARM: dts: stm32: Add DMAMUX support on STM32MP157C
  2018-04-20  9:14 [PATCH v1 0/4] Add DMAv2 and DMAMUX Support on STM32MP157C Pierre-Yves MORDRET
                   ` (2 preceding siblings ...)
  2018-04-20  9:14 ` [PATCH v1 3/4] ARM: dts: stm32: Add DMAv2 " Pierre-Yves MORDRET
@ 2018-04-20  9:14 ` Pierre-Yves MORDRET
  2018-04-23  8:51 ` [PATCH v1 0/4] Add DMAv2 and DMAMUX Support " Alexandre Torgue
  2018-05-02 14:24 ` Alexandre Torgue
  5 siblings, 0 replies; 7+ messages in thread
From: Pierre-Yves MORDRET @ 2018-04-20  9:14 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Russell King, Maxime Coquelin,
	Alexandre Torgue, devicetree, linux-arm-kernel, linux-kernel
  Cc: Pierre-Yves MORDRET

Activate DMAMUX for STM32MP157C

Signed-off-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
---
  Version history:
     v1:
        * Initial
---
---
 arch/arm/boot/dts/stm32mp157c.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi
index 3c0ca6c..da4c39e 100644
--- a/arch/arm/boot/dts/stm32mp157c.dtsi
+++ b/arch/arm/boot/dts/stm32mp157c.dtsi
@@ -174,6 +174,7 @@
 			clocks = <&rcc DMA1>;
 			#dma-cells = <4>;
 			st,mem2mem;
+			dma-requests = <8>;
 		};
 
 		dma2: dma@48001000 {
@@ -190,6 +191,17 @@
 			clocks = <&rcc DMA2>;
 			#dma-cells = <4>;
 			st,mem2mem;
+			dma-requests = <8>;
+		};
+
+		dmamux1: dma-router@48002000 {
+			compatible = "st,stm32h7-dmamux";
+			reg = <0x48002000 0x1c>;
+			#dma-cells = <3>;
+			dma-requests = <128>;
+			dma-masters = <&dma1 &dma2>;
+			dma-channels = <16>;
+			clocks = <&rcc DMAMUX>;
 		};
 
 		rcc: rcc@50000000 {
-- 
2.7.4

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v1 0/4] Add DMAv2 and DMAMUX Support on STM32MP157C
  2018-04-20  9:14 [PATCH v1 0/4] Add DMAv2 and DMAMUX Support on STM32MP157C Pierre-Yves MORDRET
                   ` (3 preceding siblings ...)
  2018-04-20  9:14 ` [PATCH v1 4/4] ARM: dts: stm32: Add DMAMUX " Pierre-Yves MORDRET
@ 2018-04-23  8:51 ` Alexandre Torgue
  2018-05-02 14:24 ` Alexandre Torgue
  5 siblings, 0 replies; 7+ messages in thread
From: Alexandre Torgue @ 2018-04-23  8:51 UTC (permalink / raw)
  To: Pierre-Yves MORDRET, Rob Herring, Mark Rutland, Russell King,
	Maxime Coquelin, devicetree, linux-arm-kernel, linux-kernel

Hi Pierre-Yves,

On 04/20/2018 11:14 AM, Pierre-Yves MORDRET wrote:
> This patch adds DMAv2 and DMAMUX support on STM32MP157C with configs and device tree.
> ---
>    Version history:
>       v1:
>          * Initial
> ---
> 
> Pierre-Yves MORDRET (4):
>    ARM: configs: stm32: Add DMAv2 support on STM32MP157C machine
>    ARM: configs: stm32: Add DMAMUX support on STM32MP157C

For patches located in mach-stm32, for the next time I prefer that you 
format commit header as following:

ARM: stm32: Add DMAv2 support on STM32MP157C.....

I don't see other issue, so don't resend for that, I will change it.

Regards
Alex


>    ARM: dts: stm32: Add DMAv2 support on STM32MP157C
>    ARM: dts: stm32: Add DMAMUX support on STM32MP157C
> 
>   arch/arm/boot/dts/stm32mp157c.dtsi | 44 ++++++++++++++++++++++++++++++++++++++
>   arch/arm/mach-stm32/Kconfig        |  2 ++
>   2 files changed, 46 insertions(+)
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v1 0/4] Add DMAv2 and DMAMUX Support on STM32MP157C
  2018-04-20  9:14 [PATCH v1 0/4] Add DMAv2 and DMAMUX Support on STM32MP157C Pierre-Yves MORDRET
                   ` (4 preceding siblings ...)
  2018-04-23  8:51 ` [PATCH v1 0/4] Add DMAv2 and DMAMUX Support " Alexandre Torgue
@ 2018-05-02 14:24 ` Alexandre Torgue
  5 siblings, 0 replies; 7+ messages in thread
From: Alexandre Torgue @ 2018-05-02 14:24 UTC (permalink / raw)
  To: Pierre-Yves MORDRET, Rob Herring, Mark Rutland, Russell King,
	Maxime Coquelin, devicetree, linux-arm-kernel, linux-kernel

Hi

On 04/20/2018 11:14 AM, Pierre-Yves MORDRET wrote:
> This patch adds DMAv2 and DMAMUX support on STM32MP157C with configs and device tree.
> ---
>    Version history:
>       v1:
>          * Initial
> ---
> 
> Pierre-Yves MORDRET (4):
>    ARM: configs: stm32: Add DMAv2 support on STM32MP157C machine
>    ARM: configs: stm32: Add DMAMUX support on STM32MP157C
>    ARM: dts: stm32: Add DMAv2 support on STM32MP157C
>    ARM: dts: stm32: Add DMAMUX support on STM32MP157C
> 
>   arch/arm/boot/dts/stm32mp157c.dtsi | 44 ++++++++++++++++++++++++++++++++++++++
>   arch/arm/mach-stm32/Kconfig        |  2 ++
>   2 files changed, 46 insertions(+)
> 
Series applied on stm32-next. As said before I modified commit header 
for mach-stm32/Kconfig patch.

Regards
Alex

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-05-02 14:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-20  9:14 [PATCH v1 0/4] Add DMAv2 and DMAMUX Support on STM32MP157C Pierre-Yves MORDRET
2018-04-20  9:14 ` [PATCH v1 1/4] ARM: configs: stm32: Add DMAv2 support on STM32MP157C machine Pierre-Yves MORDRET
2018-04-20  9:14 ` [PATCH v1 2/4] ARM: configs: stm32: Add DMAMUX support on STM32MP157C Pierre-Yves MORDRET
2018-04-20  9:14 ` [PATCH v1 3/4] ARM: dts: stm32: Add DMAv2 " Pierre-Yves MORDRET
2018-04-20  9:14 ` [PATCH v1 4/4] ARM: dts: stm32: Add DMAMUX " Pierre-Yves MORDRET
2018-04-23  8:51 ` [PATCH v1 0/4] Add DMAv2 and DMAMUX Support " Alexandre Torgue
2018-05-02 14:24 ` Alexandre Torgue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).