Skip to contentSkip to conversation

dt-bindings: mfd: st,stm32-lptimer: add resets

PATCH New Gerard Marull-Paretas 2 participants 2 messages Nov 25

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

PATCH 1/1 dt-bindings: mfd: st,stm32-lptimer: add resets

The RCC has a reset line per LPTIM. The STM32H7 errata (ES0445, 2.17.1) advise resetting an LPTIM through the RCC rather than clearing its ENABLE bit, which may leave its interrupt stuck and keep the device out of Stop. Allow a reset.

PebbleOS, whose STM32H747 port uses an LPTIM of each core as its system timer, describes and uses these resets.

---
 Documentation/devicetree/bindings/mfd/st,stm32-lptimer.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/mfd/st,stm32-lptimer.yaml +3 -0
index 4eabafb8079d..412060d3f167 100644
@@ -41,6 +41,9 @@ properties:
   interrupts:
     maxItems: 1
 
+  resets:
+    maxItems: 1
+
   "#address-cells":
     const: 1
 
Signature · 1 line
2.45.2
#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 9 lines

The RCC has a reset line per LPTIM. The STM32H7 errata (ES0445, 2.17.1) advise resetting an LPTIM through the RCC rather than clearing its ENABLE bit, which may leave its interrupt stuck and keep the device out of Stop. Allow a reset.

PebbleOS, whose STM32H747 port uses an LPTIM of each core as its system timer, describes and uses these resets.

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1