Skip to contentSkip to conversation

ARM: dts: stm32: use exti 19 as main interrupt to support RTC wakeup on stm32mp157

PATCH In review Marek Vasut 2 participants 2 messages Feb 3, 2022 – Feb 7, 2022

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

PATCH 1/1 ARM: dts: stm32: use exti 19 as main interrupt to support RTC wakeup on stm32mp157

From: Alexandre Torgue <[email protected]>

Link between GIC and exti line is now done inside EXTI driver. So in order to be wake up source exti irqchip has to be used.

---
This comes from ST github repo, v5.4-stm32mp [93a67bfcf197ffad8d8962369b56b8b714d1447e] It would be good to include this, because indeed, this makes rtcwake -s 5 -m mem work.

---
 arch/arm/boot/dts/stm32mp151.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/stm32mp151.dtsi +1 -1
index 6992a4b0ba79b..b6a108c4f117f 100644
@@ -1559,7 +1559,7 @@ rtc: rtc@5c004000 {
 			reg = <0x5c004000 0x400>;
 			clocks = <&rcc RTCAPB>, <&rcc RTC>;
 			clock-names = "pclk", "rtc_ck";
-			interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
+			interrupts-extended = <&exti 19 IRQ_TYPE_LEVEL_HIGH>;
 			status = "disabled";
 		};
 
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
maintainer
#1 lore raw
Quoted 19 lines · Marek Vasut

From: Alexandre Torgue <[email protected]>

Link between GIC and exti line is now done inside EXTI driver. So in order to be wake up source exti irqchip has to be used.

---
This comes from ST github repo, v5.4-stm32mp [93a67bfcf197ffad8d8962369b56b8b714d1447e] It would be good to include this, because indeed, this makes rtcwake -s 5 -m mem work.

---
  arch/arm/boot/dts/stm32mp151.dtsi | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/stm32mp151.dtsi +0 -0
index 6992a4b0ba79b..b6a108c4f117f 100644

arch/arm/boot/dts/stm32mp151.dtsi rtc: rtc@5c004000 { · line 1565

Quoted 8 lines
arch/arm/boot/dts/stm32mp151.dtsi +1 -1
@@ -1559,7 +1559,7 @@ rtc: rtc@5c004000 {
  			reg = <0x5c004000 0x400>;
  			clocks = <&rcc RTCAPB>, <&rcc RTC>;
  			clock-names = "pclk", "rtc_ck";
-			interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
+			interrupts-extended = <&exti 19 IRQ_TYPE_LEVEL_HIGH>;
  			status = "disabled";
  		};
 

Applied on stm32-next.

Regards
Alex

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel