Skip to contentSkip to conversation

ARM: dts: stm32: Deduplicate rproc mboxes and IRQs

PATCH In review Marek Vasut 2 participants 3 messages Jun 23, 2024 – Jun 27, 2024

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

PATCH 1/1 ARM: dts: stm32: Deduplicate rproc mboxes and IRQs

Pull mboxes, mbox-names, interrupt-parent, interrupts properties of the m4_rproc into stm32mp151.dtsi to deduplicate multiple copies of the same in multiple board files. Worse, those copies were starting to get out of sync, so this should prevent any such issues in the future.

---
Cc: Alexandre Torgue <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 arch/arm/boot/dts/st/stm32mp151.dtsi                        | 4 ++++
 arch/arm/boot/dts/st/stm32mp157a-icore-stm32mp1.dtsi        | 2 --
 arch/arm/boot/dts/st/stm32mp157a-microgea-stm32mp1.dtsi     | 2 --
 arch/arm/boot/dts/st/stm32mp157c-ed1.dts                    | 4 ----
 arch/arm/boot/dts/st/stm32mp157c-emstamp-argon.dtsi         | 4 ----
 arch/arm/boot/dts/st/stm32mp157c-odyssey-som.dtsi           | 4 ----
 arch/arm/boot/dts/st/stm32mp157c-phycore-stm32mp15-som.dtsi | 4 ----
 arch/arm/boot/dts/st/stm32mp15xx-dhcom-som.dtsi             | 4 ----
 arch/arm/boot/dts/st/stm32mp15xx-dhcor-som.dtsi             | 4 ----
 arch/arm/boot/dts/st/stm32mp15xx-dkx.dtsi                   | 4 ----
 arch/arm/boot/dts/st/stm32mp15xx-osd32.dtsi                 | 4 ----
 11 files changed, 4 insertions(+), 36 deletions(-)
arch/arm/boot/dts/st/stm32mp151.dtsi +4 -0
index 4f878ec102c1f..1804e202eb425 100644
@@ -1986,6 +1986,10 @@ m4_rproc: m4@10000000 {
 			reg = <0x10000000 0x40000>,
 			      <0x30000000 0x40000>,
 			      <0x38000000 0x10000>;
+			interrupt-parent = <&exti>;
+			interrupts = <68 IRQ_TYPE_EDGE_RISING>;
+			mbox-names = "vq0", "vq1", "shutdown", "detach";
+			mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>;
 			resets = <&rcc MCU_R>;
 			reset-names = "mcu_rst";
 			st,syscfg-holdboot = <&rcc 0x10C 0x1>;
arch/arm/boot/dts/st/stm32mp157a-icore-stm32mp1.dtsi +0 -2
index 569a7e940ecc8..69c873f30d7df 100644
@@ -175,8 +175,6 @@ &m4_rproc {
 			<&vdev0vring1>, <&vdev0buffer>;
 	mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
 	mbox-names = "vq0", "vq1", "shutdown";
-	interrupt-parent = <&exti>;
-	interrupts = <68 1>;
 	status = "okay";
 };
 
arch/arm/boot/dts/st/stm32mp157a-microgea-stm32mp1.dtsi +0 -2
index a75f50cf71234..9d26368025def 100644
@@ -127,8 +127,6 @@ &m4_rproc {
 			<&vdev0vring1>, <&vdev0buffer>;
 	mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
 	mbox-names = "vq0", "vq1", "shutdown";
-	interrupt-parent = <&exti>;
-	interrupts = <68 1>;
 	status = "okay";
 };
 
arch/arm/boot/dts/st/stm32mp157c-ed1.dts +0 -4
index 9cf5ed111b52e..a746e3da2f57d 100644
@@ -326,10 +326,6 @@ &iwdg2 {
 &m4_rproc {
 	memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
 			<&vdev0vring1>, <&vdev0buffer>;
-	mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>;
-	mbox-names = "vq0", "vq1", "shutdown", "detach";
-	interrupt-parent = <&exti>;
-	interrupts = <68 1>;
 	status = "okay";
 };
 
arch/arm/boot/dts/st/stm32mp157c-emstamp-argon.dtsi +0 -4
index 4792004cab0cc..1d4380345f157 100644
@@ -367,10 +367,6 @@ &iwdg2 {
 &m4_rproc {
 	memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
 			<&vdev0vring1>, <&vdev0buffer>;
-	mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>;
-	mbox-names = "vq0", "vq1", "shutdown", "detach";
-	interrupt-parent = <&exti>;
-	interrupts = <68 1>;
 	interrupt-names = "wdg";
 	recovery;
 	status = "okay";
arch/arm/boot/dts/st/stm32mp157c-odyssey-som.dtsi +0 -4
index cf74852514906..31d7bfe8bf8c9 100644
@@ -230,10 +230,6 @@ &iwdg2 {
 &m4_rproc {
 	memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
 			<&vdev0vring1>, <&vdev0buffer>;
-	mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>;
-	mbox-names = "vq0", "vq1", "shutdown", "detach";
-	interrupt-parent = <&exti>;
-	interrupts = <68 1>;
 	status = "okay";
 };
 
arch/arm/boot/dts/st/stm32mp157c-phycore-stm32mp15-som.dtsi +0 -4
index bf0c32027baf7..f823cc453a5c6 100644
@@ -405,10 +405,6 @@ &m_can2 {
 &m4_rproc {
 	memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
 			<&vdev0vring1>, <&vdev0buffer>;
-	mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>;
-	mbox-names = "vq0", "vq1", "shutdown", "detach";
-	interrupt-parent = <&exti>;
-	interrupts = <68 1>;
 	status = "okay";
 };
 
arch/arm/boot/dts/st/stm32mp15xx-dhcom-som.dtsi +0 -4
index 74a11ccc5333f..05795520586d4 100644
@@ -416,10 +416,6 @@ &iwdg2 {
 &m4_rproc {
 	memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
 			<&vdev0vring1>, <&vdev0buffer>;
-	mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>;
-	mbox-names = "vq0", "vq1", "shutdown", "detach";
-	interrupt-parent = <&exti>;
-	interrupts = <68 1>;
 	status = "okay";
 };
 
arch/arm/boot/dts/st/stm32mp15xx-dhcor-som.dtsi +0 -4
index 89881a26c6141..309b1aeefffe9 100644
@@ -227,10 +227,6 @@ &iwdg2 {
 &m4_rproc {
 	memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
 			<&vdev0vring1>, <&vdev0buffer>;
-	mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>;
-	mbox-names = "vq0", "vq1", "shutdown", "detach";
-	interrupt-parent = <&exti>;
-	interrupts = <68 1>;
 	status = "okay";
 };
 
arch/arm/boot/dts/st/stm32mp15xx-dkx.dtsi +0 -4
index f7634c51efb26..711a66650955c 100644
@@ -477,10 +477,6 @@ ltdc_ep0_out: endpoint {
 &m4_rproc {
 	memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
 			<&vdev0vring1>, <&vdev0buffer>;
-	mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>;
-	mbox-names = "vq0", "vq1", "shutdown", "detach";
-	interrupt-parent = <&exti>;
-	interrupts = <68 1>;
 	status = "okay";
 };
 
arch/arm/boot/dts/st/stm32mp15xx-osd32.dtsi +0 -4
index 2022a1fa31cab..1db35634e3535 100644
@@ -204,10 +204,6 @@ &ipcc {
 &m4_rproc {
 	memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
 			<&vdev0vring1>, <&vdev0buffer>;
-	mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>;
-	mbox-names = "vq0", "vq1", "shutdown", "detach";
-	interrupt-parent = <&exti>;
-	interrupts = <68 1>;
 	status = "okay";
 };
 
Signature · 1 line
2.43.0
maintainer
#1 lore raw

Hi Marek

Quoted 17 lines · Marek Vasut

Pull mboxes, mbox-names, interrupt-parent, interrupts properties of the m4_rproc into stm32mp151.dtsi to deduplicate multiple copies of the same in multiple board files. Worse, those copies were starting to get out of sync, so this should prevent any such issues in the future.

---
Cc: Alexandre Torgue <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

Quoted 14 lines
---
  arch/arm/boot/dts/st/stm32mp151.dtsi                        | 4 ++++
  arch/arm/boot/dts/st/stm32mp157a-icore-stm32mp1.dtsi        | 2 --
  arch/arm/boot/dts/st/stm32mp157a-microgea-stm32mp1.dtsi     | 2 --
  arch/arm/boot/dts/st/stm32mp157c-ed1.dts                    | 4 ----
  arch/arm/boot/dts/st/stm32mp157c-emstamp-argon.dtsi         | 4 ----
  arch/arm/boot/dts/st/stm32mp157c-odyssey-som.dtsi           | 4 ----
  arch/arm/boot/dts/st/stm32mp157c-phycore-stm32mp15-som.dtsi | 4 ----
  arch/arm/boot/dts/st/stm32mp15xx-dhcom-som.dtsi             | 4 ----
  arch/arm/boot/dts/st/stm32mp15xx-dhcor-som.dtsi             | 4 ----
  arch/arm/boot/dts/st/stm32mp15xx-dkx.dtsi                   | 4 ----
  arch/arm/boot/dts/st/stm32mp15xx-osd32.dtsi                 | 4 ----
  11 files changed, 4 insertions(+), 36 deletions(-)

...

It is an old story we already discussed in the past:

https://lore.kernel.org/linux-arm-kernel/[email protected]/T/#mef3a4050ab4ff181416fe5681f1d5cb9fb744573

My position remains the same. Those interrupts depends on your system/firmware you plan to use. So we give one example in our ST board which relies on firmware we load in OpenSTLinux. But it is just an example. For example depending the firmware used, the detach could be used or not.

So I would prefer to not take it.

Regards
Alex

#2 lore raw
Quoted 1 line · Alexandre TORGUE

Hi Marek

Hi,

Quoted 34 lines · Marek Vasut
Quoted 31 lines

Pull mboxes, mbox-names, interrupt-parent, interrupts properties of the m4_rproc into stm32mp151.dtsi to deduplicate multiple copies of the same in multiple board files. Worse, those copies were starting to get out of sync, so this should prevent any such issues in the future.

---
Cc: Alexandre Torgue <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
  arch/arm/boot/dts/st/stm32mp151.dtsi                        | 4 ++++ arch/arm/boot/dts/st/stm32mp157a-icore-stm32mp1.dtsi        | 2 -- arch/arm/boot/dts/st/stm32mp157a-microgea-stm32mp1.dtsi     | 2 -- arch/arm/boot/dts/st/stm32mp157c-ed1.dts                    | 4 ---- arch/arm/boot/dts/st/stm32mp157c-emstamp-argon.dtsi         | 4 ---- arch/arm/boot/dts/st/stm32mp157c-odyssey-som.dtsi           | 4 ---- arch/arm/boot/dts/st/stm32mp157c-phycore-stm32mp15-som.dtsi | 4 ---- arch/arm/boot/dts/st/stm32mp15xx-dhcom-som.dtsi             | 4 ---- arch/arm/boot/dts/st/stm32mp15xx-dhcor-som.dtsi             | 4 ---- arch/arm/boot/dts/st/stm32mp15xx-dkx.dtsi                   | 4 ---- arch/arm/boot/dts/st/stm32mp15xx-osd32.dtsi                 | 4 ----

  11 files changed, 4 insertions(+), 36 deletions(-)

...

Quoted 7 lines

It is an old story we already discussed in the past:

https://lore.kernel.org/linux-arm-kernel/[email protected]/T/#mef3a4050ab4ff181416fe5681f1d5cb9fb744573

My position remains the same. Those interrupts depends on your system/firmware you plan to use. So we give one example in our ST board which relies on firmware we load in OpenSTLinux. But it is just an example. For example depending the firmware used, the detach could be used or not.

So I would prefer to not take it.

Ugh, I had it in my upstreaming tree so I resubmitted it, lemme drop it.

Thanks for the reminder and constant vigilance.