Skip to contentSkip to conversation

Convert STM32 dma to json-schema

PATCH In review Benjamin Gaignard 2 participants 5 messages Dec 18, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover Convert STM32 dma to json-schema

version 2: Only contains rebased dtsi file on top of stm32-next after DT diversity patches

This series convert STM32 dma, mdma and dmamux bindings to json-schema. Yaml bindings use dma-controller and dma-router schemas where nodes names are verified which lead to fix stm32f746, stm32f743 and stm32mp157 device tree files.

Benjamin Gaignard (3):
ARM: dts: stm32: fix dma controller node name on stm32f746
ARM: dts: stm32: fix dma controller node name on stm32f743
ARM: dts: stm32: fix dma controller node name on stm32mp157c

 arch/arm/boot/dts/stm32f746.dtsi  | 4 ++--
 arch/arm/boot/dts/stm32h743.dtsi  | 6 +++---
 arch/arm/boot/dts/stm32mp151.dtsi | 6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)
Signature · 1 line
2.15.0
#1 lore raw

PATCH v2 1/3 ARM: dts: stm32: fix dma controller node name on stm32f746

Modify dma controller nodes name to fit with the standard naming.

---
 arch/arm/boot/dts/stm32f746.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/stm32f746.dtsi +2 -2
index 3a8e2dc1978c..93c063796780 100644
@@ -586,7 +586,7 @@
 			assigned-clock-rates = <1000000>;
 		};
 
-		dma1: dma@40026000 {
+		dma1: dma-controller@40026000 {
 			compatible = "st,stm32-dma";
 			reg = <0x40026000 0x400>;
 			interrupts = <11>,
@@ -602,7 +602,7 @@
 			status = "disabled";
 		};
 
-		dma2: dma@40026400 {
+		dma2: dma-controller@40026400 {
 			compatible = "st,stm32-dma";
 			reg = <0x40026400 0x400>;
 			interrupts = <56>,
Signature · 1 line
2.15.0
#2 lore raw

PATCH v2 2/3 ARM: dts: stm32: fix dma controller node name on stm32f743

In reply to Benjamin Gaignard

Modify dma controller nodes name to fit with the standard naming.

---
 arch/arm/boot/dts/stm32h743.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/stm32h743.dtsi +3 -3
index c065266ee377..05eb02e6d083 100644
@@ -231,7 +231,7 @@
 			status = "disabled";
 		};
 
-		dma1: dma@40020000 {
+		dma1: dma-controller@40020000 {
 			compatible = "st,stm32-dma";
 			reg = <0x40020000 0x400>;
 			interrupts = <11>,
@@ -249,7 +249,7 @@
 			status = "disabled";
 		};
 
-		dma2: dma@40020400 {
+		dma2: dma-controller@40020400 {
 			compatible = "st,stm32-dma";
 			reg = <0x40020400 0x400>;
 			interrupts = <56>,
@@ -329,7 +329,7 @@
 			status = "disabled";
 		};
 
-		mdma1: dma@52000000 {
+		mdma1: dma-controller@52000000 {
 			compatible = "st,stm32h7-mdma";
 			reg = <0x52000000 0x1000>;
 			interrupts = <122>;
Signature · 1 line
2.15.0
#3 lore raw

PATCH v2 3/3 ARM: dts: stm32: fix dma controller node name on stm32mp157c

In reply to Benjamin Gaignard

Modify dma controller nodes name to fit with the standard naming.

---
version 2:
- rebased on top of stm32-next after DT diversity patches

 arch/arm/boot/dts/stm32mp151.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/stm32mp151.dtsi +3 -3
index b0f3fa564967..3dd570b10181 100644
@@ -947,7 +947,7 @@
 			};
 		};
 
-		dma1: dma@48000000 {
+		dma1: dma-controller@48000000 {
 			compatible = "st,stm32-dma";
 			reg = <0x48000000 0x400>;
 			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
@@ -964,7 +964,7 @@
 			dma-requests = <8>;
 		};
 
-		dma2: dma@48001000 {
+		dma2: dma-controller@48001000 {
 			compatible = "st,stm32-dma";
 			reg = <0x48001000 0x400>;
 			interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
@@ -1275,7 +1275,7 @@
 			status = "disabled";
 		};
 
-		mdma1: dma@58000000 {
+		mdma1: dma-controller@58000000 {
 			compatible = "st,stm32h7-mdma";
 			reg = <0x58000000 0x1000>;
 			interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
Signature · 1 line
2.15.0
#4 lore raw
In reply to Benjamin Gaignard

Hi Benjamin,

Quoted 14 lines · Benjamin Gaignard

version 2: Only contains rebased dtsi file on top of stm32-next after DT diversity patches

This series convert STM32 dma, mdma and dmamux bindings to json-schema. Yaml bindings use dma-controller and dma-router schemas where nodes names are verified which lead to fix stm32f746, stm32f743 and stm32mp157 device tree files.

Benjamin Gaignard (3):
ARM: dts: stm32: fix dma controller node name on stm32f746
ARM: dts: stm32: fix dma controller node name on stm32f743
ARM: dts: stm32: fix dma controller node name on stm32mp157c

Quoted 5 lines
  arch/arm/boot/dts/stm32f746.dtsi  | 4 ++--
  arch/arm/boot/dts/stm32h743.dtsi  | 6 +++---
  arch/arm/boot/dts/stm32mp151.dtsi | 6 +++---
  3 files changed, 8 insertions(+), 8 deletions(-)

Series applied on stm32-next.

regards
Alex