Skip to content

clockevent: add low power STM32 timer

Benjamin Gaignard linux-arm-kernel linux-devicetree lkml 9 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest posting 2/26 patches 2 repliesIn review
  2. v7 posting 1/26 patches 5 repliesSuperseded
  3. v6 posting 2/26 patches 2 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v6 posting 1/26 patches6 repliesSuperseded
v56 patches1 replySuperseded
v43 patches11 repliesSuperseded
v32 patches5 repliesSuperseded
v22 patches0 repliesSuperseded
v13 patches7 repliesSuperseded

Patches in v7 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6dt-bindings: mfd: Document STM32 low power timer bindingsDocumentation/devicetree/bindings/mfd/st,stm32-lptimer.yaml+5 -00 replies
2/6ARM: dts: stm32: Add timer subnodes on stm32mp15 SoCsarch/arm/boot/dts/stm32mp151.dtsi+35 -00 replies
3/6mfd: stm32: Add defines to be used for clkevent purposeinclude/linux/mfd/stm32-lptimer.h+5 -00 replies
4/6mfd: stm32: enable regmap fast_io for stm32-lptimerdrivers/mfd/stm32-lptimer.c+1 -00 replies
5/6clocksource: Add Low Power STM32 timers driverdrivers/clocksource/Kconfig drivers/clocksource/Makefile drivers/clocksource/timer-stm32-lp.c+226 -00 replies
6/6ARM: mach-stm32: select low power timer for STM32MP157arch/arm/mach-stm32/Kconfig+1 -00 replies

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchLee JonesRob HerringDaniel Lezcano
1/6R-b
2/6
3/6A-b
4/6A-b
5/6A-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v7 thread

Cover letter [RESEND v7 0/6] clockevent: add low power STM32 timer

This series add low power timer as boadcast clockevent device. Low power timer could runs even when CPUs are in idle mode and could wakeup them.

Lee has acked the MFD part.
Clocksource driver still need to be reviewed by maintainers. Add missing part of the bindings to describe interrupt.

version 7 resend:
- with Daniel ack for driver patch
- with Rob review for bindings patch

version 7:
- rebased on top of v5.7-rc2

version 6:
- simplify binding, DT and code to use only one interrupt

version 5:
- document interrupts and interrupt-names bindings
- use a different wake up interrupt
- add device-tree patch
- make STM32MP157 select low power timer configuration flag
- enable fast_io in regmap configuration

version 4:
- move defines in mfd/stm32-lptimer.h
- change compatible and subnode names
- document wakeup-source property
- reword commit message
- make driver Kconfig depends of MFD_STM32_LPTIMER
- remove useless include
- remove rate and clk fields from the private structure
- to add comments about the registers sequence in stm32_clkevent_lp_set_timer
- rework probe function and use devm_request_irq()
- do not allow module to be removed

version 3:
- fix timer set sequence
- don't forget to free irq on remove function
- use devm_kzalloc to simplify errors handling in probe function

version 2:
- stm32 clkevent driver is now a child of the stm32 lp timer node
- add a probe function and adpat the driver to use regmap provide by it parent
- stop using timer_of helpers

Benjamin Gaignard (6):
dt-bindings: mfd: Document STM32 low power timer bindings
ARM: dts: stm32: Add timer subnodes on stm32mp15 SoCs
mfd: stm32: Add defines to be used for clkevent purpose
mfd: stm32: enable regmap fast_io for stm32-lptimer
clocksource: Add Low Power STM32 timers driver
ARM: mach-stm32: select low power timer for STM32MP157

 .../devicetree/bindings/mfd/st,stm32-lptimer.yaml  |   5 +
 arch/arm/boot/dts/stm32mp151.dtsi                  |  35 ++++
 arch/arm/mach-stm32/Kconfig                        |   1 +
 drivers/clocksource/Kconfig                        |   4 +
 drivers/clocksource/Makefile                       |   1 +
 drivers/clocksource/timer-stm32-lp.c               | 221 +++++++++++++++++++++
 drivers/mfd/stm32-lptimer.c                        |   1 +
 include/linux/mfd/stm32-lptimer.h                  |   5 +
 8 files changed, 273 insertions(+)
 create mode 100644 drivers/clocksource/timer-stm32-lp.c
Signature · 1 line
2.15.0