Skip to contentSkip to conversation

ARM: dts: stm32: Add IWDG2 EXTI interrupt mapping and mark as wakeup source

PATCH In review Marek Vasut 2 participants 4 messages Jun 23, 2024 – Oct 29, 2024

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

PATCH v3 1/1 ARM: dts: stm32: Add IWDG2 EXTI interrupt mapping and mark as wakeup source

The IWDG2 is capable of generating pre-timeout interrupt, which can be used to wake the system up from suspend to mem. Add the EXTI interrupt mapping and mark the IWDG2 as wake up source.

---
Cc: Alexandre Torgue <[email protected]>
Cc: Antonio Borneo <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Wim Van Sebroeck <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V2: No change
V3: No change

---
 arch/arm/boot/dts/st/stm32mp151.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/st/stm32mp151.dtsi +2 -0
index 1804e202eb425..68846699b26fd 100644
@@ -355,6 +355,8 @@ iwdg2: watchdog@5a002000 {
 			reg = <0x5a002000 0x400>;
 			clocks = <&rcc IWDG2>, <&rcc CK_LSI>;
 			clock-names = "pclk", "lsi";
+			interrupts-extended = <&exti 46 IRQ_TYPE_LEVEL_HIGH>;
+			wakeup-source;
 			status = "disabled";
 		};
 
Signature · 1 line
2.43.0
maintainer
#1 lore raw

Hi Marek

Quoted 33 lines · Marek Vasut

The IWDG2 is capable of generating pre-timeout interrupt, which can be used to wake the system up from suspend to mem. Add the EXTI interrupt mapping and mark the IWDG2 as wake up source.

---
Cc: Alexandre Torgue <[email protected]>
Cc: Antonio Borneo <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Wim Van Sebroeck <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V2: No change
V3: No change

---
  arch/arm/boot/dts/st/stm32mp151.dtsi | 2 ++
  1 file changed, 2 insertions(+)
arch/arm/boot/dts/st/stm32mp151.dtsi +0 -0
index 1804e202eb425..68846699b26fd 100644

arch/arm/boot/dts/st/stm32mp151.dtsi iwdg2: watchdog@5a002000 { · line 362

Quoted 8 lines
arch/arm/boot/dts/st/stm32mp151.dtsi +2 -0
@@ -355,6 +355,8 @@ iwdg2: watchdog@5a002000 {
  			reg = <0x5a002000 0x400>;
  			clocks = <&rcc IWDG2>, <&rcc CK_LSI>;
  			clock-names = "pclk", "lsi";
+			interrupts-extended = <&exti 46 IRQ_TYPE_LEVEL_HIGH>;
+			wakeup-source;
  			status = "disabled";
  		};
 

Nice feature. Applied on stm32-next.

Cheers
Alex

maintainer
#2 lore raw
In reply to Marek Vasut

Hi Marek

Quoted 33 lines · Marek Vasut

The IWDG2 is capable of generating pre-timeout interrupt, which can be used to wake the system up from suspend to mem. Add the EXTI interrupt mapping and mark the IWDG2 as wake up source.

---
Cc: Alexandre Torgue <[email protected]>
Cc: Antonio Borneo <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Wim Van Sebroeck <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V2: No change
V3: No change

---
  arch/arm/boot/dts/st/stm32mp151.dtsi | 2 ++
  1 file changed, 2 insertions(+)
arch/arm/boot/dts/st/stm32mp151.dtsi +0 -0
index 1804e202eb425..68846699b26fd 100644

arch/arm/boot/dts/st/stm32mp151.dtsi iwdg2: watchdog@5a002000 { · line 362

Quoted 8 lines
arch/arm/boot/dts/st/stm32mp151.dtsi +2 -0
@@ -355,6 +355,8 @@ iwdg2: watchdog@5a002000 {
  			reg = <0x5a002000 0x400>;
  			clocks = <&rcc IWDG2>, <&rcc CK_LSI>;
  			clock-names = "pclk", "lsi";
+			interrupts-extended = <&exti 46 IRQ_TYPE_LEVEL_HIGH>;
+			wakeup-source;
  			status = "disabled";
  		};
 

Applied on stm32-next !!
(late but applied ;))

Regards
Alex

#3 lore raw
Quoted 1 line · Alexandre TORGUE

Hi Marek

Hello Alexandre,

Quoted 29 lines · Marek Vasut
Quoted 28 lines

The IWDG2 is capable of generating pre-timeout interrupt, which can be used to wake the system up from suspend to mem. Add the EXTI interrupt mapping and mark the IWDG2 as wake up source.

---
Cc: Alexandre Torgue <[email protected]>
Cc: Antonio Borneo <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Wim Van Sebroeck <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
V2: No change
V3: No change
---
  arch/arm/boot/dts/st/stm32mp151.dtsi | 2 ++

  1 file changed, 2 insertions(+)
Quoted 15 lines

arch/arm/boot/dts/st/stm32mp151.dtsi iwdg2: watchdog@5a002000 { · line 361

Quoted 12 lines
arch/arm/boot/dts/st/stm32mp151.dtsi +2 -0
index 1804e202eb425..68846699b26fd 100644
@@ -355,6 +355,8 @@ iwdg2: watchdog@5a002000 {
               reg = <0x5a002000 0x400>;
               clocks = <&rcc IWDG2>, <&rcc CK_LSI>;
               clock-names = "pclk", "lsi";
+            interrupts-extended = <&exti 46 IRQ_TYPE_LEVEL_HIGH>;
+            wakeup-source;
               status = "disabled";
           };

Applied on stm32-next !!
(late but applied ;))

Woohoo ! Thank you.