linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 0/2] timer: add imx tpm timer support
@ 2017-07-04 14:00 Dong Aisheng
  2017-07-04 14:00 ` [PATCH V3 1/2] dt-bindings: timer: add nxp tpm timer binding doc Dong Aisheng
  2017-07-04 14:00 ` [PATCH V3 2/2] timer: imx-tpm: add imx tpm timer support Dong Aisheng
  0 siblings, 2 replies; 8+ messages in thread
From: Dong Aisheng @ 2017-07-04 14:00 UTC (permalink / raw)
  To: linux-arm-kernel

The Timer/PWM Module (TPM) supports input capture, output compare,
and the generation of PWM signals to control electric motor and power
management applications. The counter, compare and capture registers
are clocked by an asynchronous clock that can remain enabled in low
power modes. TPM can support global counter bus where one TPM drives
the counter bus for the others, provided bit width is the same.

This patch only adds the timer support. PWM would be added later.

ChangeLog:
v2->v3:
 * address a few minor comments from Daniel Lezcano
 * add more explaination on ETIME check in commit message
v1->v2:
 * change to readl/writel from __raw_readl/writel according to Arnd's
   suggestion to avoid endian issue
 * add help information in Kconfig
 * add more error checking

Dong Aisheng (2):
  dt-bindings: timer: add nxp tpm timer binding doc
  timer: imx-tpm: add imx tpm timer support

 .../devicetree/bindings/timer/nxp,tpm-timer.txt    |  28 +++
 drivers/clocksource/Kconfig                        |   8 +
 drivers/clocksource/Makefile                       |   1 +
 drivers/clocksource/timer-imx-tpm.c                | 233 +++++++++++++++++++++
 4 files changed, 270 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/timer/nxp,tpm-timer.txt
 create mode 100644 drivers/clocksource/timer-imx-tpm.c

-- 
2.7.4

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-07-04 15:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-04 14:00 [PATCH V3 0/2] timer: add imx tpm timer support Dong Aisheng
2017-07-04 14:00 ` [PATCH V3 1/2] dt-bindings: timer: add nxp tpm timer binding doc Dong Aisheng
2017-07-04 14:00 ` [PATCH V3 2/2] timer: imx-tpm: add imx tpm timer support Dong Aisheng
2017-07-04 14:09   ` Thomas Gleixner
2017-07-04 14:27     ` A.s. Dong
2017-07-04 14:43       ` Thomas Gleixner
2017-07-04 15:15         ` A.s. Dong
2017-07-04 15:37           ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).