09 Apr, 2020

1 commit


17 Mar, 2020

1 commit


19 Dec, 2018

2 commits

  • i.MX TPM needs "ipg" clock for register access and "per" clock for
    timer function, the driver gets "ipg" clock by searching the clock
    name, but timer-of initialization will get first clock in device
    tree TPM node since no clock name specified in of_clk, that means
    the "per" clock MUST be the first clock entry in device tree TPM
    node, this patch specifies clock name for of_clk to avoid this
    restriction, it makes TPM driver work properly with different sequence
    of clock entries in device tree TPM node.

    Signed-off-by: Anson Huang
    Signed-off-by: Daniel Lezcano

    Anson Huang
     
  • Convert the driver to use the timer_of helpers. This allows to handle
    timer base, clock and irq using common timer_of driver and it
    simplifies the code.

    Signed-off-by: Anson Huang
    Signed-off-by: Daniel Lezcano

    Anson Huang
     

23 May, 2018

1 commit


19 Apr, 2018

1 commit

  • The additional brakects added to tpm_set_next_event's return value
    computation causes (int) forced type conversion NOT taking effect, and the
    incorrect value return will cause various system timer issue, like RCU
    stall etc..

    Remove the additional brackets to make sure tpm_set_next_event always
    returns correct value.

    Fixes: 059ab7b82eec ("clocksource/drivers/imx-tpm: Add imx tpm timer support")
    Signed-off-by: Anson Huang
    Signed-off-by: Thomas Gleixner
    Acked-by: Dong Aisheng
    Cc: stable@vger.kernel.org
    Cc: daniel.lezcano@linaro.org
    Cc: Linux-imx@nxp.com
    Link: https://lkml.kernel.org/r/1524117883-2484-1-git-send-email-Anson.Huang@nxp.com

    Anson Huang
     

31 Mar, 2018

3 commits


29 Aug, 2017

1 commit

  • IMX Timer/PWM Module (TPM) supports both timer and pwm function while
    this patch only adds the timer support. PWM would be added later.

    The TPM counter, compare and capture registers are clocked by an
    asynchronous clock that can remain enabled in low power modes.

    NOTE: We observed in a very small probability, the bus fabric
    contention between GPU and A7 may results a few cycles delay
    of writing CNT registers which may cause the min_delta event got
    missed, so we need add a ETIME check here in case it happened.

    Cc: Daniel Lezcano
    Cc: Arnd Bergmann
    Cc: Thomas Gleixner
    Cc: Shawn Guo
    Cc: Anson Huang
    Cc: Bai Ping
    Signed-off-by: Dong Aisheng
    Signed-off-by: Daniel Lezcano

    Dong Aisheng