ARM: dts: stm32: Add arm,no-tick-in-suspend to STM32MP15xx STGEN timer
Subsystems (2)
PATCH 1/1 ARM: dts: stm32: Add arm,no-tick-in-suspend to STM32MP15xx STGEN timer
STM32MP15xx RM0436 Rev 6 section 46.3 System timer generator (STGEN) states "
Arm recommends that the system counter is in an always-on power domain. This is not supported in the current implementation, therefore STGEN should be saved and restored before Standby mode entry, and restored at Standby exit by secure software.
...
"
Instead of piling up workarounds in the firmware which is difficult to update, add "arm,no-tick-in-suspend" DT property into the timer node to indicate the timer is stopped in suspend, and let the kernel fix the timer up.
---
Cc: Alexandre Torgue <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
--- arch/arm/boot/dts/st/stm32mp151.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm/boot/dts/st/stm32mp151.dtsi +1 -0
@@ -50,6 +50,7 @@ timer { <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>; interrupt-parent = <&intc>; + arm,no-tick-in-suspend; }; clocks {
Signature · 1 line
2.43.0
Alexandre TORGUE
maintainerHi Marek
Quoted 33 lines · Marek Vasut
STM32MP15xx RM0436 Rev 6 section 46.3 System timer generator (STGEN) states "
Arm recommends that the system counter is in an always-on power domain. This is not supported in the current implementation, therefore STGEN should be saved and restored before Standby mode entry, and restored at Standby exit by secure software.
...
"
Instead of piling up workarounds in the firmware which is difficult to update, add "arm,no-tick-in-suspend" DT property into the timer node to indicate the timer is stopped in suspend, and let the kernel fix the timer up.Fixes 8471a20253eb ("ARM: dts: stm32: add stm32mp157c initial support")Signed-off-by Marek Vasut <[email protected]>---
Cc: Alexandre Torgue <[email protected]>
Cc: Conor Dooley <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]--- arch/arm/boot/dts/st/stm32mp151.dtsi | 1 + 1 file changed, 1 insertion(+)arch/arm/boot/dts/st/stm32mp151.dtsi +0
-0
arch/arm/boot/dts/st/stm32mp151.dtsi timer { · line 56
Quoted 7 lines
arch/arm/boot/dts/st/stm32mp151.dtsi +1
-0@@ -50,6 +50,7 @@ timer { <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>; interrupt-parent = <&intc>; + arm,no-tick-in-suspend; }; clocks {
Applied on stm32-next.
Thanks
Alex