mbox series

[0/3] PWM i.MX27 fix disabled state for inverted signals

Message ID 20200909130739.26717-1-m.felsch@pengutronix.de
Headers show
Series PWM i.MX27 fix disabled state for inverted signals | expand

Message

Marco Felsch Sept. 9, 2020, 1:07 p.m. UTC
Hi,

this small series fixes the pwm disabled behaviour in case of an
inverted pwm signal. The current state is that in such a case the pwm
signal goes to 0V which means logical '1' for inverted pwm signals. IMO
this is wrong and should be fixed.

I've tested my patches on a custom imx6 board which uses the pwm as
backlight.

Comments and testers are welcome :)

Regards,
  Marco

Marco Felsch (3):
  pwm: imx27: track clock enable/disable to simplify code
  pwm: imx27: move static pwmcr values into probe() function
  pwm: imx27: fix disable state for inverted PWMs

 drivers/pwm/pwm-imx27.c | 119 ++++++++++++++++++++++++++--------------
 1 file changed, 79 insertions(+), 40 deletions(-)