devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: ti/omap: omap4-serial: fix interrupts syntax
@ 2024-12-30 19:55 Andreas Kemnade
  2025-01-04 17:45 ` Roger Quadros
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andreas Kemnade @ 2024-12-30 19:55 UTC (permalink / raw)
  To: tony, robh, krzk+dt, conor+dt, linux-omap, devicetree,
	linux-kernel, khilman, rogerq, aaro.koskinen
  Cc: 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.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Reported-by: Rob Herring <robh@kernel.org>
Closes: https://lore.kernel.org/linux-omap/173558214240.2262575.18233884215338168789.robh@kernel.org/
Closes: https://lore.kernel.org/linux-omap/172784021601.525825.18405282128990798038.robh@kernel.org/
---
 arch/arm/boot/dts/ti/omap/omap4-l4.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi b/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi
index 3fcef3080eae..150dd84c9e0f 100644
--- a/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi
+++ b/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi
@@ -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>;
 			};
 		};
-- 
2.39.5


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

* Re: [PATCH] ARM: dts: ti/omap: omap4-serial: fix interrupts syntax
  2024-12-30 19:55 [PATCH] ARM: dts: ti/omap: omap4-serial: fix interrupts syntax Andreas Kemnade
@ 2025-01-04 17:45 ` Roger Quadros
  2025-01-04 18:20   ` Andreas Kemnade
  2025-01-07 12:23 ` Roger Quadros
  2025-02-06  0:37 ` Kevin Hilman
  2 siblings, 1 reply; 7+ messages in thread
From: Roger Quadros @ 2025-01-04 17:45 UTC (permalink / raw)
  To: Andreas Kemnade, tony, robh, krzk+dt, conor+dt, linux-omap,
	devicetree, linux-kernel, khilman, aaro.koskinen

Hi Andreas,

On 30/12/2024 21:55, Andreas Kemnade wrote:
> 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.
> 
> Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
> Reported-by: Rob Herring <robh@kernel.org>
> Closes: https://lore.kernel.org/linux-omap/173558214240.2262575.18233884215338168789.robh@kernel.org/
> Closes: https://lore.kernel.org/linux-omap/172784021601.525825.18405282128990798038.robh@kernel.org/
> ---
>  arch/arm/boot/dts/ti/omap/omap4-l4.dtsi | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi b/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi
> index 3fcef3080eae..150dd84c9e0f 100644
> --- a/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi
> +++ b/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi
> @@ -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?

>  				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>;
>  			};
>  		};

-- 
cheers,
-roger


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

* Re: [PATCH] ARM: dts: ti/omap: omap4-serial: fix interrupts syntax
  2025-01-04 17:45 ` Roger Quadros
@ 2025-01-04 18:20   ` Andreas Kemnade
  2025-01-07 12:15     ` Roger Quadros
  0 siblings, 1 reply; 7+ messages in thread
From: Andreas Kemnade @ 2025-01-04 18:20 UTC (permalink / raw)
  To: Roger Quadros
  Cc: tony, robh, krzk+dt, conor+dt, linux-omap, devicetree,
	linux-kernel, khilman, aaro.koskinen

Am Sat, 4 Jan 2025 19:45:35 +0200
schrieb Roger Quadros <rogerq@kernel.org>:

> Hi Andreas,
> 
> On 30/12/2024 21:55, Andreas Kemnade wrote:
> > 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.
> > 
> > Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
> > Reported-by: Rob Herring <robh@kernel.org>
> > Closes: https://lore.kernel.org/linux-omap/173558214240.2262575.18233884215338168789.robh@kernel.org/
> > Closes: https://lore.kernel.org/linux-omap/172784021601.525825.18405282128990798038.robh@kernel.org/
> > ---
> >  arch/arm/boot/dts/ti/omap/omap4-l4.dtsi | 8 ++++----
> >  1 file changed, 4 insertions(+), 4 deletions(-)
> > 
> > diff --git a/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi b/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi
> > index 3fcef3080eae..150dd84c9e0f 100644
> > --- a/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi
> > +++ b/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi
> > @@ -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.

> 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

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

* Re: [PATCH] ARM: dts: ti/omap: omap4-serial: fix interrupts syntax
  2025-01-04 18:20   ` Andreas Kemnade
@ 2025-01-07 12:15     ` Roger Quadros
  2025-01-07 18:56       ` Andreas Kemnade
  0 siblings, 1 reply; 7+ messages in thread
From: Roger Quadros @ 2025-01-07 12:15 UTC (permalink / raw)
  To: Andreas Kemnade
  Cc: tony, robh, krzk+dt, conor+dt, linux-omap, devicetree,
	linux-kernel, khilman, aaro.koskinen



On 04/01/2025 20:20, Andreas Kemnade wrote:
> Am Sat, 4 Jan 2025 19:45:35 +0200
> schrieb Roger Quadros <rogerq@kernel.org>:
> 
>> Hi Andreas,
>>
>> On 30/12/2024 21:55, Andreas Kemnade wrote:
>>> 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.
>>>
>>> Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
>>> Reported-by: Rob Herring <robh@kernel.org>
>>> Closes: https://lore.kernel.org/linux-omap/173558214240.2262575.18233884215338168789.robh@kernel.org/
>>> Closes: https://lore.kernel.org/linux-omap/172784021601.525825.18405282128990798038.robh@kernel.org/
>>> ---
>>>  arch/arm/boot/dts/ti/omap/omap4-l4.dtsi | 8 ++++----
>>>  1 file changed, 4 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi b/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi
>>> index 3fcef3080eae..150dd84c9e0f 100644
>>> --- a/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi
>>> +++ b/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi
>>> @@ -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.

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.

> 
>> 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.

-- 
cheers,
-roger


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

* Re: [PATCH] ARM: dts: ti/omap: omap4-serial: fix interrupts syntax
  2024-12-30 19:55 [PATCH] ARM: dts: ti/omap: omap4-serial: fix interrupts syntax Andreas Kemnade
  2025-01-04 17:45 ` Roger Quadros
@ 2025-01-07 12:23 ` Roger Quadros
  2025-02-06  0:37 ` Kevin Hilman
  2 siblings, 0 replies; 7+ messages in thread
From: Roger Quadros @ 2025-01-07 12:23 UTC (permalink / raw)
  To: Andreas Kemnade, tony, robh, krzk+dt, conor+dt, linux-omap,
	devicetree, linux-kernel, khilman, aaro.koskinen



On 30/12/2024 21:55, Andreas Kemnade wrote:
> 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.
> 
> Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
> Reported-by: Rob Herring <robh@kernel.org>
> Closes: https://lore.kernel.org/linux-omap/173558214240.2262575.18233884215338168789.robh@kernel.org/
> Closes: https://lore.kernel.org/linux-omap/172784021601.525825.18405282128990798038.robh@kernel.org/

Reviewed-by: Roger Quadros <rogerq@kernel.org>


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

* Re: [PATCH] ARM: dts: ti/omap: omap4-serial: fix interrupts syntax
  2025-01-07 12:15     ` Roger Quadros
@ 2025-01-07 18:56       ` Andreas Kemnade
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Kemnade @ 2025-01-07 18:56 UTC (permalink / raw)
  To: Roger Quadros
  Cc: tony, robh, krzk+dt, conor+dt, linux-omap, devicetree,
	linux-kernel, khilman, aaro.koskinen

Am Tue, 7 Jan 2025 14:15:14 +0200
schrieb Roger Quadros <rogerq@kernel.org>:

> On 04/01/2025 20:20, Andreas Kemnade wrote:
> > Am Sat, 4 Jan 2025 19:45:35 +0200
> > schrieb Roger Quadros <rogerq@kernel.org>:
> >   
> >> Hi Andreas,
> >>
> >> On 30/12/2024 21:55, Andreas Kemnade wrote:  
> >>> 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.
> >>>
> >>> Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
> >>> Reported-by: Rob Herring <robh@kernel.org>
> >>> Closes: https://lore.kernel.org/linux-omap/173558214240.2262575.18233884215338168789.robh@kernel.org/
> >>> Closes: https://lore.kernel.org/linux-omap/172784021601.525825.18405282128990798038.robh@kernel.org/
> >>> ---
> >>>  arch/arm/boot/dts/ti/omap/omap4-l4.dtsi | 8 ++++----
> >>>  1 file changed, 4 insertions(+), 4 deletions(-)
> >>>
> >>> diff --git a/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi b/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi
> >>> index 3fcef3080eae..150dd84c9e0f 100644
> >>> --- a/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi
> >>> +++ b/arch/arm/boot/dts/ti/omap/omap4-l4.dtsi
> >>> @@ -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.  
> 
> 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

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

* Re: [PATCH] ARM: dts: ti/omap: omap4-serial: fix interrupts syntax
  2024-12-30 19:55 [PATCH] ARM: dts: ti/omap: omap4-serial: fix interrupts syntax Andreas Kemnade
  2025-01-04 17:45 ` Roger Quadros
  2025-01-07 12:23 ` Roger Quadros
@ 2025-02-06  0:37 ` Kevin Hilman
  2 siblings, 0 replies; 7+ messages in thread
From: Kevin Hilman @ 2025-02-06  0:37 UTC (permalink / raw)
  To: tony, robh, krzk+dt, conor+dt, linux-omap, devicetree,
	linux-kernel, rogerq, aaro.koskinen, Andreas Kemnade


On Mon, 30 Dec 2024 20:55:56 +0100, Andreas Kemnade wrote:
> 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,
-- 
Kevin Hilman <khilman@baylibre.com>


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

end of thread, other threads:[~2025-02-06  0:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-30 19:55 [PATCH] ARM: dts: ti/omap: omap4-serial: fix interrupts syntax Andreas Kemnade
2025-01-04 17:45 ` Roger Quadros
2025-01-04 18:20   ` Andreas Kemnade
2025-01-07 12:15     ` Roger Quadros
2025-01-07 18:56       ` Andreas Kemnade
2025-01-07 12:23 ` Roger Quadros
2025-02-06  0:37 ` Kevin Hilman

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).