lkml.org 
[lkml]   [2018]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [RFC PATCH v3 1/2] dt-bindings: pwm: imx: Allow switching PWM output between PWM and GPIO
    On Thu, Dec 6, 2018 at 2:41 PM Vokáč Michal <Michal.Vokac@ysoft.com> wrote:

    > Output of the PWM block on i.MX SoCs is always low when the block is
    > disabled. This can cause issues when inverted PWM polarity is needed.
    > With inverted polarity a duty cycle = 0% corresponds to high level on
    > the output. Now, when PWM is disabled its output instantly goes low
    > which corresponds to duty cycle = 100%.
    >
    > To get a truly inverted PWM output two pinctrl states of the PWM pin
    > can be used. Configure the pin to GPIO function when PWM is disabled
    > and switch back to PWM function whenever non-zero duty cycle is needed.
    >
    > Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>
    > ---
    > Changes in v3:
    > - Slightly different description of the pinctrl and pwm-gpio.

    This looks good to me.

    Acked-by: Linus Walleij <linus.walleij@linaro.org>

    Yours,
    Linus Walleij

    \
     
     \ /
      Last update: 2018-12-14 14:45    [W:4.082 / U:0.112 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site