public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: Jonathan.Cameron@huawei.com (Jonathan Cameron)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V4 0/2] timer: add imx tpm timer support
Date: Wed, 5 Jul 2017 16:23:45 +0800	[thread overview]
Message-ID: <20170705162345.0000020e@huawei.com> (raw)
In-Reply-To: <1499222112-9988-1-git-send-email-aisheng.dong@nxp.com>

On Wed, 5 Jul 2017 10:35:10 +0800
Dong Aisheng <aisheng.dong@nxp.com> wrote:

> 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.
Hi Dong,

Not relevant to this patch - just an observation!

Just came across this thread and took a look at the hardware. I see
some of the timers (particularly the flextimers) support quadrature
encoder modes.  Just thought I'd point you at some on going discussions
on the IIO list (linux-iio at vger.kernel.org) trying to improve the
interface for such devices.  Might be of interest (or not depending on
whether support for that functionality is of interest!)

http://marc.info/?l=linux-iio&m=149904379731556&w=2

Jonathan
> 
> ChangeLog:
> v3->v4:
>  * also add ETIME explanation in function
> 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                | 239
> +++++++++++++++++++++ 4 files changed, 276 insertions(+)
>  create mode 100644
> Documentation/devicetree/bindings/timer/nxp,tpm-timer.txt create mode
> 100644 drivers/clocksource/timer-imx-tpm.c
> 

  parent reply	other threads:[~2017-07-05  8:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-05  2:35 [PATCH V4 0/2] timer: add imx tpm timer support Dong Aisheng
2017-07-05  2:35 ` [PATCH V4 1/2] dt-bindings: timer: add nxp tpm timer binding doc Dong Aisheng
2017-07-05  2:35 ` [PATCH V4 2/2] timer: imx-tpm: add imx tpm timer support Dong Aisheng
2017-07-31 14:29   ` Daniel Lezcano
2017-08-01  3:33     ` A.s. Dong
2017-07-05  8:23 ` Jonathan Cameron [this message]
2017-07-05  8:48   ` [PATCH V4 0/2] timer: " A.s. Dong
2017-07-20  9:59 ` A.s. Dong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170705162345.0000020e@huawei.com \
    --to=jonathan.cameron@huawei.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox