Thread (9 messages) flat view 9 messages, 3 authors, 2016-06-22
STALE3736d

[PATCH] pwm: lpc32xx: Set PWM_PIN_LEVEL bit in lpc32xx_pwm_disable

From: Sylvain Lemieux <hidden>
Date: 2016-06-22 13:26:04
Also in: linux-pwm

Hi Thierry,

On Wed, 2016-06-22 at 14:32 +0200, Thierry Reding wrote:
On Fri, Jun 03, 2016 at 03:37:57PM -0400, Sylvain Lemieux wrote:
quoted
From: Sylvain Lemieux <redacted>

If the PWM_PIN_LEVEL bit is setup to 1 in the bootloader, when the kernel
disable the PWM, the PWM output is always set as a logic 1.
I presume there's a reason why the bootloader set this bit to 1. Why do
you assume it's the right thing to clear it?
There is an alternative mode for the PWM output pin; using the 
PWM_PIN_LEVEL bit to control the PWM output (logical 0 or 1 on 
output) when the PWM is disable.

In this case, the bootloader is using the PWM_PIN_LEVEL bit
to control the PWM output (always 1) to enable the LCD; the 
application is using the PWM to control the intensity of the 
LCD output. When disabling the PWM, the line level should be 
setup to 0.

A version 2 of this patch will be send with support to select 
the alternate PWM disable level high from the device tree.

For details, you can refer to:
http://thread.gmane.org/gmane.linux.pwm/3882/focus=508758


Sylvain
Thierry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help