Skip to contentSkip to conversation

ARM: dts: ti/omap: omap4-serial: fix interrupts syntax

PATCH Applied Andreas Kemnade 3 participants 7 messages Dec 30, 2024 – Feb 6, 2025

Subsystems (2)
lore
Share & tools
lore

Andreas Kemnade

author maintainer
#0 lore raw

PATCH 1/1 ARM: dts: ti/omap: omap4-serial: fix interrupts syntax

Usually interrupts are overwritten in the board file to specify a mux-dependent dedicated wakeup irq, so there is interrupts and interrupts-extended property which is not allowed. That has generated a lot of noise during dts changes if just a phandle involved has randomly changed.

Avoid that mess by specifying interrupts-extended in the dtsi file.

---
 arch/arm/boot/dts/ti/omap/omap4-l4.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/ti/omap/omap4-l4.dtsi +4 -4
index 3fcef3080eae..150dd84c9e0f 100644
@@ -1414,7 +1414,7 @@ SYSC_OMAP2_SOFTRESET |
 			uart3: serial@0 {
 				compatible = "ti,omap4-uart";
 				reg = <0x0 0x100>;
-				interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
+				interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
 				clock-frequency = <48000000>;
 			};
 		};
@@ -1765,7 +1765,7 @@ SYSC_OMAP2_SOFTRESET |
 			uart1: serial@0 {
 				compatible = "ti,omap4-uart";
 				reg = <0x0 0x100>;
-				interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
+				interrupts-extended = <&wakeupgen GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
 				clock-frequency = <48000000>;
 			};
 		};
@@ -1794,7 +1794,7 @@ SYSC_OMAP2_SOFTRESET |
 			uart2: serial@0 {
 				compatible = "ti,omap4-uart";
 				reg = <0x0 0x100>;
-				interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
+				interrupts-extended = <&wakeupgen GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
 				clock-frequency = <48000000>;
 			};
 		};
@@ -1823,7 +1823,7 @@ SYSC_OMAP2_SOFTRESET |
 			uart4: serial@0 {
 				compatible = "ti,omap4-uart";
 				reg = <0x0 0x100>;
-				interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
+				interrupts-extended = <&wakeupgen GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
 				clock-frequency = <48000000>;
 			};
 		};
Signature · 1 line
2.39.5
maintainer
#1 lore raw

Hi Andreas,

Quoted 21 lines · Andreas Kemnade

Usually interrupts are overwritten in the board file to specify a mux-dependent dedicated wakeup irq, so there is interrupts and interrupts-extended property which is not allowed. That has generated a lot of noise during dts changes if just a phandle involved has randomly changed.

Avoid that mess by specifying interrupts-extended in the dtsi file.

---
 arch/arm/boot/dts/ti/omap/omap4-l4.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/ti/omap/omap4-l4.dtsi +0 -0
index 3fcef3080eae..150dd84c9e0f 100644

arch/arm/boot/dts/ti/omap/omap4-l4.dtsi SYSC_OMAP2_SOFTRESET | · line 1417

Quoted 5 lines
arch/arm/boot/dts/ti/omap/omap4-l4.dtsi +1 -1
@@ -1414,7 +1414,7 @@ SYSC_OMAP2_SOFTRESET |
 			uart3: serial@0 {
 				compatible = "ti,omap4-uart";
 				reg = <0x0 0x100>;
-				interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
+				interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;

At this point interrupts-extended is not applicable.

We could use
/delete-property/ interrupts
in the board files that needs multiple interrupt parents?

Quoted 30 lines
arch/arm/boot/dts/ti/omap/omap4-l4.dtsi +3 -3
 				clock-frequency = <48000000>;
 			};
 		};
@@ -1765,7 +1765,7 @@ SYSC_OMAP2_SOFTRESET |
 			uart1: serial@0 {
 				compatible = "ti,omap4-uart";
 				reg = <0x0 0x100>;
-				interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
+				interrupts-extended = <&wakeupgen GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
 				clock-frequency = <48000000>;
 			};
 		};
@@ -1794,7 +1794,7 @@ SYSC_OMAP2_SOFTRESET |
 			uart2: serial@0 {
 				compatible = "ti,omap4-uart";
 				reg = <0x0 0x100>;
-				interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
+				interrupts-extended = <&wakeupgen GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
 				clock-frequency = <48000000>;
 			};
 		};
@@ -1823,7 +1823,7 @@ SYSC_OMAP2_SOFTRESET |
 			uart4: serial@0 {
 				compatible = "ti,omap4-uart";
 				reg = <0x0 0x100>;
-				interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
+				interrupts-extended = <&wakeupgen GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
 				clock-frequency = <48000000>;
 			};
 		};
Signature · 2 lines
cheers,
-roger
author maintainer
#2 lore raw

Am Sat, 4 Jan 2025 19:45:35 +0200
schrieb Roger Quadros <[email protected]>:

Quoted 19 lines

Hi Andreas,

Quoted 16 lines · Andreas Kemnade

Usually interrupts are overwritten in the board file to specify a mux-dependent dedicated wakeup irq, so there is interrupts and interrupts-extended property which is not allowed. That has generated a lot of noise during dts changes if just a phandle involved has randomly changed.

Avoid that mess by specifying interrupts-extended in the dtsi file.

---
 arch/arm/boot/dts/ti/omap/omap4-l4.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Quoted 13 lines

arch/arm/boot/dts/ti/omap/omap4-l4.dtsi SYSC_OMAP2_SOFTRESET | · line 1417

Quoted 10 lines
arch/arm/boot/dts/ti/omap/omap4-l4.dtsi +1 -1
index 3fcef3080eae..150dd84c9e0f 100644
@@ -1414,7 +1414,7 @@ SYSC_OMAP2_SOFTRESET |
 			uart3: serial@0 {
 				compatible = "ti,omap4-uart";
 				reg = <0x0 0x100>;
-				interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
+				interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;  

At this point interrupts-extended is not applicable.

we have it this way also in omap3. I do not understand what is the problem with it. Do you have a pointer where it is forbidden? At least Documentation/devicetree/bindings/interrupt-controller/interrupts.txt says nothing againt using it in such cases.

Quoted 4 lines

We could use
/delete-property/ interrupts
in the board files that needs multiple interrupt parents?

What is the advantage of using that more complex solution? I would then prefer to have the same with omap3 and omap4. If we do anything about interrupts in board file here, they will have multiple parents.

Regards,
Andreas

maintainer
#3 lore raw
Quoted 35 lines · Andreas Kemnade

Am Sat, 4 Jan 2025 19:45:35 +0200
schrieb Roger Quadros <[email protected]>:

Quoted 19 lines

Hi Andreas,

Quoted 16 lines · Andreas Kemnade

Usually interrupts are overwritten in the board file to specify a mux-dependent dedicated wakeup irq, so there is interrupts and interrupts-extended property which is not allowed. That has generated a lot of noise during dts changes if just a phandle involved has randomly changed.

Avoid that mess by specifying interrupts-extended in the dtsi file.

---
 arch/arm/boot/dts/ti/omap/omap4-l4.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Quoted 13 lines

arch/arm/boot/dts/ti/omap/omap4-l4.dtsi SYSC_OMAP2_SOFTRESET | · line 1417

Quoted 10 lines
arch/arm/boot/dts/ti/omap/omap4-l4.dtsi +1 -1
index 3fcef3080eae..150dd84c9e0f 100644
@@ -1414,7 +1414,7 @@ SYSC_OMAP2_SOFTRESET |
 			uart3: serial@0 {
 				compatible = "ti,omap4-uart";
 				reg = <0x0 0x100>;
-				interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
+				interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;  

At this point interrupts-extended is not applicable.

Quoted 5 lines

we have it this way also in omap3. I do not understand what is the problem with it. Do you have a pointer where it is forbidden? At least Documentation/devicetree/bindings/interrupt-controller/interrupts.txt says nothing againt using it in such cases.

Pasting the quoted text here for reference.

"The "interrupts-extended" property is a special form; useful when a node needs to reference multiple interrupt parents or a different interrupt parent than the inherited one."

I understood both were false so said that it is not applicable here.

Quoted 8 lines
Quoted 5 lines

We could use
/delete-property/ interrupts
in the board files that needs multiple interrupt parents?

What is the advantage of using that more complex solution? I would then prefer to have the same with omap3 and omap4. If we do anything about interrupts in board file here, they will have multiple parents.

I was suggesting from the point to avoid churn in SoC dtsi file. But I see your point now.

I don't have any objections.

Signature · 2 lines
cheers,
-roger
author maintainer
#4 lore raw

Am Tue, 7 Jan 2025 14:15:14 +0200
schrieb Roger Quadros <[email protected]>:

Quoted 42 lines · Andreas Kemnade
Quoted 35 lines

Am Sat, 4 Jan 2025 19:45:35 +0200
schrieb Roger Quadros <[email protected]>:

Quoted 19 lines

Hi Andreas,

Quoted 16 lines · Andreas Kemnade

Usually interrupts are overwritten in the board file to specify a mux-dependent dedicated wakeup irq, so there is interrupts and interrupts-extended property which is not allowed. That has generated a lot of noise during dts changes if just a phandle involved has randomly changed.

Avoid that mess by specifying interrupts-extended in the dtsi file.

---
 arch/arm/boot/dts/ti/omap/omap4-l4.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Quoted 13 lines

arch/arm/boot/dts/ti/omap/omap4-l4.dtsi SYSC_OMAP2_SOFTRESET | · line 1417

Quoted 10 lines
arch/arm/boot/dts/ti/omap/omap4-l4.dtsi +1 -1
index 3fcef3080eae..150dd84c9e0f 100644
@@ -1414,7 +1414,7 @@ SYSC_OMAP2_SOFTRESET |
 			uart3: serial@0 {
 				compatible = "ti,omap4-uart";
 				reg = <0x0 0x100>;
-				interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
+				interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;    

At this point interrupts-extended is not applicable.

Quoted 5 lines

we have it this way also in omap3. I do not understand what is the problem with it. Do you have a pointer where it is forbidden? At least Documentation/devicetree/bindings/interrupt-controller/interrupts.txt says nothing againt using it in such cases.

Quoted 8 lines

Pasting the quoted text here for reference.

"The "interrupts-extended" property is a special form; useful when a node needs to reference multiple interrupt parents or a different interrupt parent than the inherited one."

I understood both were false so said that it is not applicable here.

Ah, ok, I understood it a bit different: It is useful for that use case (multiple interrupts with different parents). But nothing says that it should be used *only* in that case.

Regards,
Anderas

maintainer Reviewed-by on v1 1/1
#5 lore raw
In reply to Andreas Kemnade
Quoted 6 lines · Andreas Kemnade

Usually interrupts are overwritten in the board file to specify a mux-dependent dedicated wakeup irq, so there is interrupts and interrupts-extended property which is not allowed. That has generated a lot of noise during dts changes if just a phandle involved has randomly changed.

Quoted 6 lines

Avoid that mess by specifying interrupts-extended in the dtsi file.

maintainer Applied
#6 lore raw
In reply to Andreas Kemnade
Quoted 9 lines · Andreas Kemnade

Usually interrupts are overwritten in the board file to specify a mux-dependent dedicated wakeup irq, so there is interrupts and interrupts-extended property which is not allowed. That has generated a lot of noise during dts changes if just a phandle involved has randomly changed.

Avoid that mess by specifying interrupts-extended in the dtsi file.

[...]

Applied, thanks!

[1/1] ARM: dts: ti/omap: omap4-serial: fix interrupts syntax

      commit: 13203d24dd003206f58d570d19e2b515feca71c5

Best regards,

Signature · 1 line
Kevin Hilman <[email protected]>