Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1681366 > unrolled thread

Re: [PATCH V4 0/2] timer: add imx tpm timer support

Started byJonathan Cameron <Jonathan.Cameron@huawei.com>
First post2017-07-05 10:30 +0200
Last post2017-07-05 10:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH V4 0/2] timer: add imx tpm timer support Jonathan Cameron <Jonathan.Cameron@huawei.com> - 2017-07-05 10:30 +0200
    RE: [PATCH V4 0/2] timer: add imx tpm timer support "A.s. Dong" <aisheng.dong@nxp.com> - 2017-07-05 10:50 +0200

#1681366 — Re: [PATCH V4 0/2] timer: add imx tpm timer support

FromJonathan Cameron <Jonathan.Cameron@huawei.com>
Date2017-07-05 10:30 +0200
SubjectRe: [PATCH V4 0/2] timer: add imx tpm timer support
Message-ID<tZNR8-3Oe-23@gated-at.bofh.it>
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@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
> 

[toc] | [next] | [standalone]


#1681379

From"A.s. Dong" <aisheng.dong@nxp.com>
Date2017-07-05 10:50 +0200
Message-ID<tZOat-3Wl-13@gated-at.bofh.it>
In reply to#1681366
> -----Original Message-----
> From: Jonathan Cameron [mailto:Jonathan.Cameron@huawei.com]
> Sent: Wednesday, July 05, 2017 4:24 PM
> To: A.s. Dong
> Cc: linux-kernel@vger.kernel.org; Jacky Bai; Anson Huang;
> daniel.lezcano@linaro.org; kernel@pengutronix.de; tglx@linutronix.de;
> shawnguo@kernel.org; linux-arm-kernel@lists.infradead.org;
> dongas86@gmail.com
> Subject: Re: [PATCH V4 0/2] timer: add imx tpm timer support
> 
> 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@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
> 

Hi Jonathan,

Thanks for the info.
I will find time to check it later.

Regards
Dong Aisheng

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web