Skip to content

RFC Make TI dmtimer features more usable

Tony Lindgren linux-arm-kernel linux-omap lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3clocksource/drivers/timer-ti-dm: Add lock for register accessdrivers/clocksource/timer-ti-dm.c+21 -00 replies
2/3clocksource/drivers/timer-ti-dm: Implement chained irqdrivers/clocksource/timer-ti-dm.c drivers/pwm/pwm-omap-dmtimer.c+248 -80 replies
3/3clocksource/drivers/timer-ti-dm: Add clock provider supportdrivers/clocksource/timer-ti-dm.c include/clocksource/timer-ti-dm.h+309 -80 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchTony Lindgren
1/3Not-Yet-Signed-off-by
2/3Not-Yet-Signed-off-by
3/3Not-Yet-Signed-off-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/3] Make TI dmtimer features more usable

Hi all,

The TI dmtimer has been using a custom API to expose some hardware timer features for PWM and remoteproc so far with struct omap_dm_timer_ops. It seems that for most part we can nowadays replace most of the custom API with chained interrupts and clock provider features.

There are lots of the dmtimer instances on TI SoCs, some have tens of them. Some timers have an IO pad available, which means the timers could be used as clock output for an external device with a 50% duty cycle. The timers also have input capture capability, but that is not currently supported. There have been some patches posted earlier for the PWM capture support though.

These patches are against v6.1-rc2, and need also the following pending patch:

[PATCH] clocksource/drivers/timer-ti-dm: Clear settings on probe and free

For am6, these patches depend on the pending dts changes posted earlier:

[PATCH v3 0/2] Configure dmtimers for am65
[PATCH 1/2] arm64: dts: ti: k3-am62: Add general purpose timers for am62

I have only lightly tested this so far to make sure I get clock output on k3-am625-sk on TIMER_IO2 at user expansion connector pin 10. I have not worried at all so far about disabling the legacy API if used with interrupts and clock framework.

Regards,

Tony

Tony Lindgren (3):
clocksource/drivers/timer-ti-dm: Add lock for register access clocksource/drivers/timer-ti-dm: Implement chained irq clocksource/drivers/timer-ti-dm: Add clock provider support

 drivers/clocksource/timer-ti-dm.c | 591 +++++++++++++++++++++++++++++-
 drivers/pwm/pwm-omap-dmtimer.c    |   1 +
 include/clocksource/timer-ti-dm.h |   2 +
 3 files changed, 578 insertions(+), 16 deletions(-)
Signature · 1 line
2.37.3