[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <518397C60809E147AF5323E0420B992E3E9645A3@DBDE01.ent.ti.com>
Date: Tue, 17 Jul 2012 05:25:22 +0000
From: "Philip, Avinash" <avinashphilip@...com>
To: Lars-Peter Clausen <lars@...afoo.de>
CC: Thierry Reding <thierry.reding@...onic-design.de>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: Adding support for configuring polarity in PWM framework.
On Mon, Jul 16, 2012 at 18:16:13, Lars-Peter Clausen wrote:
> On 07/16/2012 02:23 PM, Philip, Avinash wrote:
>
> >
> > 1. PWM framework API addition.
> > PWM frame work API support.
> > /**
> > * pwm_setpolarity() - change a PWM device Polarity
> > * @pwm: PWM device
> > * @polarity: Configure polarity of PWM
> > *
> > * polarity - false -> "on" time defined by duty ns
> > * - true -> "off' time defined by duty ns.
> > */
>
> Isn't this more about whether we start with a low or a high signal?
No, it is more about the average on time. On time determines the on duration of
the panel power and there by brightness. On one custom board, backlight power
booster gives power output on the OFF time of PWM (hardware connection).
> If it is
> just about the duty time you can easily achieve the same effect by setting
> it to (period_ns - duty_ns).
Yes this is possible. But the PWM hardware we uses supports configuration of
polarity. So I prefer PWM polarity configuration.
Also with polarity configuration support, we can achieve (period_ns - duty_ns),
for PWM devices don't have hardware support. Polarity configuration support
can be used for setting flags, duty cycle can be configured from config
depending on flag.
Thanks
Avinash
>
> - Lars
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists