Skip to contentSkip to conversation

Cleanup OMAP Mailbox nodes for YAML binding

PATCH In review Suman Anna 2 participants 6 messages May 18, 2021 – May 27, 2021 Device tree bindings

lore
Share & tools
lore

Suman Anna

author
#0 lore raw

cover Cleanup OMAP Mailbox nodes for YAML binding

Hi Tony,

The following series is minor cleanups in the OMAP Mailbox nodes on various OMAP2+ SoCs. The changes are to bring the nodes in compliance with the OMAP Mailbox YAML binding conversion [1]. The changes can be applied independent of the YAML conversion, and all the dtbs_check warnings around Mailbox nodes should be gone once all the dts patches and binding conversion are merged.

regards
Suman

[1] http://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]/

Suman Anna (4):
ARM: dts: OMAP2420: Drop interrupt-names from mailbox node
ARM: dts: OMAP2/OMAP3: Rename processor sub-mailbox nodes
ARM: dts: AM33xx/AM43xx: Rename wkup_m3 sub-mailbox node
ARM: dts: OMAP2+: Replace underscores in sub-mailbox node names

 arch/arm/boot/dts/am33xx-l4.dtsi            | 2 +-
 arch/arm/boot/dts/am437x-l4.dtsi            | 2 +-
 arch/arm/boot/dts/am57xx-cl-som-am57x.dts   | 8 ++++----
 arch/arm/boot/dts/dm816x.dtsi               | 2 +-
 arch/arm/boot/dts/dra7-ipu-dsp-common.dtsi  | 6 +++---
 arch/arm/boot/dts/dra72x.dtsi               | 6 +++---
 arch/arm/boot/dts/dra74-ipu-dsp-common.dtsi | 2 +-
 arch/arm/boot/dts/dra74x.dtsi               | 8 ++++----
 arch/arm/boot/dts/omap2420.dtsi             | 5 ++---
 arch/arm/boot/dts/omap2430.dtsi             | 2 +-
 arch/arm/boot/dts/omap3.dtsi                | 2 +-
 arch/arm/boot/dts/omap4-l4.dtsi             | 4 ++--
 arch/arm/boot/dts/omap5-l4.dtsi             | 4 ++--
 13 files changed, 26 insertions(+), 27 deletions(-)
Signature · 1 line
2.30.1
author
#1 lore raw

PATCH 1/4 ARM: dts: OMAP2420: Drop interrupt-names from mailbox node

The interrupt-names property is neither defined nor used in either of the OMAP Mailbox binding or the driver. So, drop them. This is in preparation for converting the OMAP Mailbox binding to YAML format.

---
 arch/arm/boot/dts/omap2420.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm/boot/dts/omap2420.dtsi +0 -1
index 494bf6972005..35f8d1f6878e 100644
@@ -192,7 +192,6 @@ mailbox: mailbox@48094000 {
 			compatible = "ti,omap2-mailbox";
 			reg = <0x48094000 0x200>;
 			interrupts = <26>, <34>;
-			interrupt-names = "dsp", "iva";
 			ti,hwmods = "mailbox";
 			#mbox-cells = <1>;
 			ti,mbox-num-users = <4>;
Signature · 1 line
2.30.1
author
#2 lore raw

PATCH 2/4 ARM: dts: OMAP2/OMAP3: Rename processor sub-mailbox nodes

In reply to Suman Anna

The OMAP sub-mailbox used to communicate with the DSP and IVA remote processors are currently named after the processor name. These can be confused with the remote processors themselves. Rename them to remove the ambiguity and use the prefix mbox to also adhere to the sub-mailbox node name convention being added in the OMAP Mailbox YAML binding.

---
 arch/arm/boot/dts/omap2420.dtsi | 4 ++--
 arch/arm/boot/dts/omap2430.dtsi | 2 +-
 arch/arm/boot/dts/omap3.dtsi    | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/omap2420.dtsi +2 -2
index 35f8d1f6878e..bb529a2a295d 100644
@@ -196,11 +196,11 @@ mailbox: mailbox@48094000 {
 			#mbox-cells = <1>;
 			ti,mbox-num-users = <4>;
 			ti,mbox-num-fifos = <6>;
-			mbox_dsp: dsp {
+			mbox_dsp: mbox-dsp {
 				ti,mbox-tx = <0 0 0>;
 				ti,mbox-rx = <1 0 0>;
 			};
-			mbox_iva: iva {
+			mbox_iva: mbox-iva {
 				ti,mbox-tx = <2 1 3>;
 				ti,mbox-rx = <3 1 3>;
 			};
arch/arm/boot/dts/omap2430.dtsi +1 -1
index d19d8ba3b607..23115ba61bc0 100644
@@ -284,7 +284,7 @@ mailbox: mailbox@48094000 {
 			#mbox-cells = <1>;
 			ti,mbox-num-users = <4>;
 			ti,mbox-num-fifos = <6>;
-			mbox_dsp: dsp {
+			mbox_dsp: mbox-dsp {
 				ti,mbox-tx = <0 0 0>;
 				ti,mbox-rx = <1 0 0>;
 			};
arch/arm/boot/dts/omap3.dtsi +1 -1
index c5b9da0d7e6c..574bda7a4afd 100644
@@ -440,7 +440,7 @@ mailbox: mailbox@48094000 {
 			#mbox-cells = <1>;
 			ti,mbox-num-users = <2>;
 			ti,mbox-num-fifos = <2>;
-			mbox_dsp: dsp {
+			mbox_dsp: mbox-dsp {
 				ti,mbox-tx = <0 0 0>;
 				ti,mbox-rx = <1 0 0>;
 			};
Signature · 1 line
2.30.1
author
#3 lore raw

PATCH 3/4 ARM: dts: AM33xx/AM43xx: Rename wkup_m3 sub-mailbox node

In reply to Suman Anna

The OMAP sub-mailbox used to communicate with the Wakeup M3 remote processor is currently named wkup_m3. This name can be confused with the remote processor node. So, rename this to mbox-wkup-m3 to remove the ambiguity and to also adhere to the sub-mailbox node name convention being added in the OMAP Mailbox YAML binding.

---
 arch/arm/boot/dts/am33xx-l4.dtsi | 2 +-
 arch/arm/boot/dts/am437x-l4.dtsi | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/am33xx-l4.dtsi +1 -1
index 039a9ab4c7ea..50663b506205 100644
@@ -1486,7 +1486,7 @@ mailbox: mailbox@0 {
 				#mbox-cells = <1>;
 				ti,mbox-num-users = <4>;
 				ti,mbox-num-fifos = <8>;
-				mbox_wkupm3: wkup_m3 {
+				mbox_wkupm3: mbox-wkup-m3 {
 					ti,mbox-send-noirq;
 					ti,mbox-tx = <0 0 0>;
 					ti,mbox-rx = <0 0 3>;
arch/arm/boot/dts/am437x-l4.dtsi +1 -1
index e217ffc09770..667086297f36 100644
@@ -1168,7 +1168,7 @@ mailbox: mailbox@0 {
 				#mbox-cells = <1>;
 				ti,mbox-num-users = <4>;
 				ti,mbox-num-fifos = <8>;
-				mbox_wkupm3: wkup_m3 {
+				mbox_wkupm3: mbox-wkup-m3 {
 					ti,mbox-send-noirq;
 					ti,mbox-tx = <0 0 0>;
 					ti,mbox-rx = <0 0 3>;
Signature · 1 line
2.30.1
author
#4 lore raw

PATCH 4/4 ARM: dts: OMAP2+: Replace underscores in sub-mailbox node names

In reply to Suman Anna

A number of sub-mailbox node names in various OMAP2+ dts files are currently using underscores. This is not adhering to the node name convention, fix all of these to use hiphens.

These nodes are already using the prefix mbox, so they will be in compliance with the sub-mailbox node name convention being added in the OMAP Mailbox YAML binding as well.

---
 arch/arm/boot/dts/am57xx-cl-som-am57x.dts   | 8 ++++----
 arch/arm/boot/dts/dm816x.dtsi               | 2 +-
 arch/arm/boot/dts/dra7-ipu-dsp-common.dtsi  | 6 +++---
 arch/arm/boot/dts/dra72x.dtsi               | 6 +++---
 arch/arm/boot/dts/dra74-ipu-dsp-common.dtsi | 2 +-
 arch/arm/boot/dts/dra74x.dtsi               | 8 ++++----
 arch/arm/boot/dts/omap4-l4.dtsi             | 4 ++--
 arch/arm/boot/dts/omap5-l4.dtsi             | 4 ++--
 8 files changed, 20 insertions(+), 20 deletions(-)
arch/arm/boot/dts/am57xx-cl-som-am57x.dts +4 -4
index 0d5fe2bfb683..e7b037b8a6dc 100644
@@ -454,20 +454,20 @@ &sata {
 
 &mailbox5 {
 	status = "okay";
-	mbox_ipu1_ipc3x: mbox_ipu1_ipc3x {
+	mbox_ipu1_ipc3x: mbox-ipu1-ipc3x {
 		status = "okay";
 	};
-	mbox_dsp1_ipc3x: mbox_dsp1_ipc3x {
+	mbox_dsp1_ipc3x: mbox-dsp1-ipc3x {
 		status = "okay";
 	};
 };
 
 &mailbox6 {
 	status = "okay";
-	mbox_ipu2_ipc3x: mbox_ipu2_ipc3x {
+	mbox_ipu2_ipc3x: mbox-ipu2-ipc3x {
 		status = "okay";
 	};
-	mbox_dsp2_ipc3x: mbox_dsp2_ipc3x {
+	mbox_dsp2_ipc3x: mbox-dsp2-ipc3x {
 		status = "okay";
 	};
 };
arch/arm/boot/dts/dm816x.dtsi +1 -1
index 3551a64963f8..1825d912b8ab 100644
@@ -351,7 +351,7 @@ mailbox: mailbox@480c8000 {
 			#mbox-cells = <1>;
 			ti,mbox-num-users = <4>;
 			ti,mbox-num-fifos = <12>;
-			mbox_dsp: mbox_dsp {
+			mbox_dsp: mbox-dsp {
 				ti,mbox-tx = <3 0 0>;
 				ti,mbox-rx = <0 0 0>;
 			};
arch/arm/boot/dts/dra7-ipu-dsp-common.dtsi +3 -3
index a25749a1c365..a5bdc6431d8d 100644
@@ -5,17 +5,17 @@
 
 &mailbox5 {
 	status = "okay";
-	mbox_ipu1_ipc3x: mbox_ipu1_ipc3x {
+	mbox_ipu1_ipc3x: mbox-ipu1-ipc3x {
 		status = "okay";
 	};
-	mbox_dsp1_ipc3x: mbox_dsp1_ipc3x {
+	mbox_dsp1_ipc3x: mbox-dsp1-ipc3x {
 		status = "okay";
 	};
 };
 
 &mailbox6 {
 	status = "okay";
-	mbox_ipu2_ipc3x: mbox_ipu2_ipc3x {
+	mbox_ipu2_ipc3x: mbox-ipu2-ipc3x {
 		status = "okay";
 	};
 };
arch/arm/boot/dts/dra72x.dtsi +3 -3
index d403acc754b6..85ab1f46e56b 100644
@@ -77,12 +77,12 @@ &dss {
 };
 
 &mailbox5 {
-	mbox_ipu1_ipc3x: mbox_ipu1_ipc3x {
+	mbox_ipu1_ipc3x: mbox-ipu1-ipc3x {
 		ti,mbox-tx = <6 2 2>;
 		ti,mbox-rx = <4 2 2>;
 		status = "disabled";
 	};
-	mbox_dsp1_ipc3x: mbox_dsp1_ipc3x {
+	mbox_dsp1_ipc3x: mbox-dsp1-ipc3x {
 		ti,mbox-tx = <5 2 2>;
 		ti,mbox-rx = <1 2 2>;
 		status = "disabled";
@@ -90,7 +90,7 @@ mbox_dsp1_ipc3x: mbox_dsp1_ipc3x {
 };
 
 &mailbox6 {
-	mbox_ipu2_ipc3x: mbox_ipu2_ipc3x {
+	mbox_ipu2_ipc3x: mbox-ipu2-ipc3x {
 		ti,mbox-tx = <6 2 2>;
 		ti,mbox-rx = <4 2 2>;
 		status = "disabled";
arch/arm/boot/dts/dra74-ipu-dsp-common.dtsi +1 -1
index b1147a4b77f9..3256631510c5 100644
@@ -6,7 +6,7 @@
 #include "dra7-ipu-dsp-common.dtsi"
 
 &mailbox6 {
-	mbox_dsp2_ipc3x: mbox_dsp2_ipc3x {
+	mbox_dsp2_ipc3x: mbox-dsp2-ipc3x {
 		status = "okay";
 	};
 };
arch/arm/boot/dts/dra74x.dtsi +4 -4
index e1850d6c841a..411ad295c201 100644
@@ -188,12 +188,12 @@ &dss {
 };
 
 &mailbox5 {
-	mbox_ipu1_ipc3x: mbox_ipu1_ipc3x {
+	mbox_ipu1_ipc3x: mbox-ipu1-ipc3x {
 		ti,mbox-tx = <6 2 2>;
 		ti,mbox-rx = <4 2 2>;
 		status = "disabled";
 	};
-	mbox_dsp1_ipc3x: mbox_dsp1_ipc3x {
+	mbox_dsp1_ipc3x: mbox-dsp1-ipc3x {
 		ti,mbox-tx = <5 2 2>;
 		ti,mbox-rx = <1 2 2>;
 		status = "disabled";
@@ -201,12 +201,12 @@ mbox_dsp1_ipc3x: mbox_dsp1_ipc3x {
 };
 
 &mailbox6 {
-	mbox_ipu2_ipc3x: mbox_ipu2_ipc3x {
+	mbox_ipu2_ipc3x: mbox-ipu2-ipc3x {
 		ti,mbox-tx = <6 2 2>;
 		ti,mbox-rx = <4 2 2>;
 		status = "disabled";
 	};
-	mbox_dsp2_ipc3x: mbox_dsp2_ipc3x {
+	mbox_dsp2_ipc3x: mbox-dsp2-ipc3x {
 		ti,mbox-tx = <5 2 2>;
 		ti,mbox-rx = <1 2 2>;
 		status = "disabled";
arch/arm/boot/dts/omap4-l4.dtsi +2 -2
index 99721673d7af..46b8f9efd413 100644
@@ -600,11 +600,11 @@ mailbox: mailbox@0 {
 				#mbox-cells = <1>;
 				ti,mbox-num-users = <3>;
 				ti,mbox-num-fifos = <8>;
-				mbox_ipu: mbox_ipu {
+				mbox_ipu: mbox-ipu {
 					ti,mbox-tx = <0 0 0>;
 					ti,mbox-rx = <1 0 0>;
 				};
-				mbox_dsp: mbox_dsp {
+				mbox_dsp: mbox-dsp {
 					ti,mbox-tx = <3 0 0>;
 					ti,mbox-rx = <2 0 0>;
 				};
arch/arm/boot/dts/omap5-l4.dtsi +2 -2
index b148b289e830..06cc3a19ddaa 100644
@@ -616,11 +616,11 @@ mailbox: mailbox@0 {
 				#mbox-cells = <1>;
 				ti,mbox-num-users = <3>;
 				ti,mbox-num-fifos = <8>;
-				mbox_ipu: mbox_ipu {
+				mbox_ipu: mbox-ipu {
 					ti,mbox-tx = <0 0 0>;
 					ti,mbox-rx = <1 0 0>;
 				};
-				mbox_dsp: mbox_dsp {
+				mbox_dsp: mbox-dsp {
 					ti,mbox-tx = <3 0 0>;
 					ti,mbox-rx = <2 0 0>;
 				};
Signature · 1 line
2.30.1
#5 lore raw
In reply to Suman Anna
Quoted 8 lines · Suman Anna

Hi Tony,

The following series is minor cleanups in the OMAP Mailbox nodes on various OMAP2+ SoCs. The changes are to bring the nodes in compliance with the OMAP Mailbox YAML binding conversion [1]. The changes can be applied independent of the YAML conversion, and all the dtbs_check warnings around Mailbox nodes should be gone once all the dts patches and binding conversion are merged.

Applying into omap-for-v5.14/dt thanks,

Tony