[PATCH v5 0/3] clocksource/drivers/timer-ti-dm: Add clocksource and clockevent support
From: Markus Schneider-Pargmann (TI)
Date: Fri May 08 2026 - 09:47:37 EST
Hi,
this series adds support for both clocksource and clockevent to the TI
Dual-Mode Timer driver. This can be used as a time source for low power
modes in which the CPUs are temporarily not running.
The driver looks for two always on timers in the DT to be used for
clocksource and clockevent. These are then handled as reserved and can
not be used for normal use.
This series is based on v7.1-rc1.
Best
Markus
Signed-off-by: Markus Schneider-Pargmann (TI) <msp@xxxxxxxxxxxx>
---
Changes in v5:
- Rebased to v7.1-rc1
- Remove complicated pre-detection of always on timers. Instead use them
as they are probed.
- Link to v4: https://lore.kernel.org/r/20260309-topic-ti-dm-clkevt-v6-16-v4-0-bb8d2a04c45e@xxxxxxxxxxxx
Changes in v4:
- Rebased onto v7.0
- Link to v3: https://lore.kernel.org/r/20260204-topic-ti-dm-clkevt-v6-16-v3-0-83e65d01f4ae@xxxxxxxxxxxx
Changes in v3:
- Use devm_add_action_or_reset() to cleanup clocksource registration
- Use RESOURCE_SIZE_MAX instead of -1 if no timers suitable for
clocksource or clockevent were found
- Link to v2: https://lore.kernel.org/r/20251216-topic-ti-dm-clkevt-v6-16-v2-0-bfd7dd085c19@xxxxxxxxxxxx
Changes in v2:
- Rebased to v6.19-rc1
- Previous compile issues because of the __init section of
sched_clock_register() was solved upstream by removing it from the
__init section in
https://lore.kernel.org/r/20250602151853.1942521-8-daniel.lezcano@xxxxxxxxxx
- Link to v1: https://lore.kernel.org/r/20250623-topic-ti-dm-clkevt-v6-16-v1-0-b00086761ee1@xxxxxxxxxxxx
---
Markus Schneider-Pargmann (TI) (3):
clocksource/drivers/timer-ti-dm: Fix property name in comment
clocksource/drivers/timer-ti-dm: Add clocksource support
clocksource/drivers/timer-ti-dm: Add clockevent support
drivers/clocksource/timer-ti-dm-systimer.c | 2 +-
drivers/clocksource/timer-ti-dm.c | 217 +++++++++++++++++++++++++++++
2 files changed, 218 insertions(+), 1 deletion(-)
---
base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20250623-topic-ti-dm-clkevt-v6-16-b5e6599b7c01
Best regards,
--
Markus Schneider-Pargmann (TI) <msp@xxxxxxxxxxxx>