* [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching backlight power on
@ 2017-10-26 12:49 ` Lothar Waßmann
0 siblings, 0 replies; 31+ messages in thread
From: Lothar Waßmann @ 2017-10-26 12:49 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz, Daniel Thompson, Jacek Anaszewski,
Jingoo Han, Lee Jones, Mark Rutland, Pavel Machek, Richard Purdie,
Rob Herring, Thierry Reding, devicetree, linux-fbdev,
linux-kernel, linux-leds, linux-pwm
Cc: Lothar Waßmann
When switching the backlight on, the LCD may need some time to adjust
to the configured PWM duty cycle. Add a configurable delay between
configuring the PWM and enabling the backlight regulator to account
for this.
Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
---
.../bindings/leds/backlight/pwm-backlight.txt | 4 ++++
drivers/video/backlight/pwm_bl.c | 22 +++++++++++++++++++---
2 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
index 764db86..95594c3 100644
--- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
+++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
@@ -17,6 +17,10 @@ Optional properties:
"pwms" property (see PWM binding[0])
- enable-gpios: contains a single GPIO specifier for the GPIO which enables
and disables the backlight (see GPIO binding[1])
+ - turn-on-delay-ms: delay in milliseconds between configuring the PWM
+ and switching PWM on. This may be required to eliminate
+ flicker when switching the PWM on after it has been
+ disabled.
[0]: Documentation/devicetree/bindings/pwm/pwm.txt
[1]: Documentation/devicetree/bindings/gpio/gpio.txt
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c
index 921f322..9578f65 100644
--- a/drivers/video/backlight/pwm_bl.c
+++ b/drivers/video/backlight/pwm_bl.c
@@ -23,6 +23,7 @@
#include <linux/pwm_backlight.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
+#include <linux/delay.h>
struct pwm_bl_data {
struct pwm_device *pwm;
@@ -35,6 +36,7 @@ struct pwm_bl_data {
struct gpio_desc *enable_gpio;
unsigned int scale;
bool legacy;
+ int turn_on_delay_ms;
int (*notify)(struct device *,
int brightness);
void (*notify_after)(struct device *,
@@ -52,6 +54,17 @@ static void pwm_backlight_power_on(struct pwm_bl_data *pb, int brightness)
pwm_enable(pb->pwm);
+ if (pb->turn_on_delay_ms > 0) {
+ dev_dbg(pb->dev, "Sleeping %u..%uµs\n",
+ pb->turn_on_delay_ms * 1000,
+ pb->turn_on_delay_ms * 1100);
+ if (pb->turn_on_delay_ms > 20)
+ msleep(pb->turn_on_delay_ms);
+ else
+ usleep_range(pb->turn_on_delay_ms * 1000,
+ pb->turn_on_delay_ms * 1100);
+ }
+
err = regulator_enable(pb->power_supply);
if (err < 0)
dev_err(pb->dev, "failed to enable power supply\n");
@@ -108,8 +121,9 @@ static int pwm_backlight_update_status(struct backlight_device *bl)
duty_cycle = compute_duty_cycle(pb, brightness);
pwm_config(pb->pwm, duty_cycle, pb->period);
pwm_backlight_power_on(pb, brightness);
- } else
+ } else {
pwm_backlight_power_off(pb);
+ }
if (pb->notify_after)
pb->notify_after(pb->dev, brightness);
@@ -264,9 +278,9 @@ static int pwm_backlight_probe(struct platform_device *pdev)
pb->scale = data->levels[i];
pb->levels = data->levels;
- } else
+ } else {
pb->scale = data->max_brightness;
-
+ }
pb->notify = data->notify;
pb->notify_after = data->notify_after;
pb->check_fb = data->check_fb;
@@ -329,6 +343,8 @@ static int pwm_backlight_probe(struct platform_device *pdev)
goto err_alloc;
}
+ of_property_read_u32(node, "turn-on-delay-ms", &pb->turn_on_delay_ms);
+
dev_dbg(&pdev->dev, "got pwm for backlight\n");
/*
--
2.1.4
^ permalink raw reply related [flat|nested] 31+ messages in thread* [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching backlight power on
@ 2017-10-26 12:49 ` Lothar Waßmann
0 siblings, 0 replies; 31+ messages in thread
From: Lothar Waßmann @ 2017-10-26 12:49 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz, Daniel Thompson, Jacek Anaszewski,
Jingoo Han, Lee Jones, Mark Rutland, Pavel Machek, Richard Purdie,
Rob Herring, Thierry Reding, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-fbdev-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-leds-u79uwXL29TY76Z2rM5mHXA,
linux-pwm-u79uwXL29TY76Z2rM5mHXA
Cc: Lothar Waßmann
When switching the backlight on, the LCD may need some time to adjust
to the configured PWM duty cycle. Add a configurable delay between
configuring the PWM and enabling the backlight regulator to account
for this.
Signed-off-by: Lothar Waßmann <LW-bxm8fMRDkQLDiMYJYoSAnRvVK+yQ3ZXh@public.gmane.org>
---
.../bindings/leds/backlight/pwm-backlight.txt | 4 ++++
drivers/video/backlight/pwm_bl.c | 22 +++++++++++++++++++---
2 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
index 764db86..95594c3 100644
--- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
+++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
@@ -17,6 +17,10 @@ Optional properties:
"pwms" property (see PWM binding[0])
- enable-gpios: contains a single GPIO specifier for the GPIO which enables
and disables the backlight (see GPIO binding[1])
+ - turn-on-delay-ms: delay in milliseconds between configuring the PWM
+ and switching PWM on. This may be required to eliminate
+ flicker when switching the PWM on after it has been
+ disabled.
[0]: Documentation/devicetree/bindings/pwm/pwm.txt
[1]: Documentation/devicetree/bindings/gpio/gpio.txt
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c
index 921f322..9578f65 100644
--- a/drivers/video/backlight/pwm_bl.c
+++ b/drivers/video/backlight/pwm_bl.c
@@ -23,6 +23,7 @@
#include <linux/pwm_backlight.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
+#include <linux/delay.h>
struct pwm_bl_data {
struct pwm_device *pwm;
@@ -35,6 +36,7 @@ struct pwm_bl_data {
struct gpio_desc *enable_gpio;
unsigned int scale;
bool legacy;
+ int turn_on_delay_ms;
int (*notify)(struct device *,
int brightness);
void (*notify_after)(struct device *,
@@ -52,6 +54,17 @@ static void pwm_backlight_power_on(struct pwm_bl_data *pb, int brightness)
pwm_enable(pb->pwm);
+ if (pb->turn_on_delay_ms > 0) {
+ dev_dbg(pb->dev, "Sleeping %u..%uµs\n",
+ pb->turn_on_delay_ms * 1000,
+ pb->turn_on_delay_ms * 1100);
+ if (pb->turn_on_delay_ms > 20)
+ msleep(pb->turn_on_delay_ms);
+ else
+ usleep_range(pb->turn_on_delay_ms * 1000,
+ pb->turn_on_delay_ms * 1100);
+ }
+
err = regulator_enable(pb->power_supply);
if (err < 0)
dev_err(pb->dev, "failed to enable power supply\n");
@@ -108,8 +121,9 @@ static int pwm_backlight_update_status(struct backlight_device *bl)
duty_cycle = compute_duty_cycle(pb, brightness);
pwm_config(pb->pwm, duty_cycle, pb->period);
pwm_backlight_power_on(pb, brightness);
- } else
+ } else {
pwm_backlight_power_off(pb);
+ }
if (pb->notify_after)
pb->notify_after(pb->dev, brightness);
@@ -264,9 +278,9 @@ static int pwm_backlight_probe(struct platform_device *pdev)
pb->scale = data->levels[i];
pb->levels = data->levels;
- } else
+ } else {
pb->scale = data->max_brightness;
-
+ }
pb->notify = data->notify;
pb->notify_after = data->notify_after;
pb->check_fb = data->check_fb;
@@ -329,6 +343,8 @@ static int pwm_backlight_probe(struct platform_device *pdev)
goto err_alloc;
}
+ of_property_read_u32(node, "turn-on-delay-ms", &pb->turn_on_delay_ms);
+
dev_dbg(&pdev->dev, "got pwm for backlight\n");
/*
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 31+ messages in thread* Re: [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching back
2017-10-26 12:49 ` Lothar Waßmann
@ 2017-10-27 14:38 ` Rob Herring
-1 siblings, 0 replies; 31+ messages in thread
From: Rob Herring @ 2017-10-27 14:38 UTC (permalink / raw)
To: Lothar Waßmann
Cc: Bartlomiej Zolnierkiewicz, Daniel Thompson, Jacek Anaszewski,
Jingoo Han, Lee Jones, Mark Rutland, Pavel Machek, Richard Purdie,
Thierry Reding, devicetree, linux-fbdev, linux-kernel, linux-leds,
linux-pwm
On Thu, Oct 26, 2017 at 02:49:46PM +0200, Lothar Waßmann wrote:
> When switching the backlight on, the LCD may need some time to adjust
> to the configured PWM duty cycle. Add a configurable delay between
> configuring the PWM and enabling the backlight regulator to account
> for this.
>
> Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
> ---
> .../bindings/leds/backlight/pwm-backlight.txt | 4 ++++
> drivers/video/backlight/pwm_bl.c | 22 +++++++++++++++++++---
> 2 files changed, 23 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> index 764db86..95594c3 100644
> --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> @@ -17,6 +17,10 @@ Optional properties:
> "pwms" property (see PWM binding[0])
> - enable-gpios: contains a single GPIO specifier for the GPIO which enables
> and disables the backlight (see GPIO binding[1])
> + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
> + and switching PWM on. This may be required to eliminate
> + flicker when switching the PWM on after it has been
> + disabled.
The subject talks about turning on the backlight regulator, but this
only talks about the PWM.
>
> [0]: Documentation/devicetree/bindings/pwm/pwm.txt
> [1]: Documentation/devicetree/bindings/gpio/gpio.txt
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching backlight power on
@ 2017-10-27 14:38 ` Rob Herring
0 siblings, 0 replies; 31+ messages in thread
From: Rob Herring @ 2017-10-27 14:38 UTC (permalink / raw)
To: Lothar Waßmann
Cc: Bartlomiej Zolnierkiewicz, Daniel Thompson, Jacek Anaszewski,
Jingoo Han, Lee Jones, Mark Rutland, Pavel Machek, Richard Purdie,
Thierry Reding, devicetree, linux-fbdev, linux-kernel, linux-leds,
linux-pwm
On Thu, Oct 26, 2017 at 02:49:46PM +0200, Lothar Waßmann wrote:
> When switching the backlight on, the LCD may need some time to adjust
> to the configured PWM duty cycle. Add a configurable delay between
> configuring the PWM and enabling the backlight regulator to account
> for this.
>
> Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
> ---
> .../bindings/leds/backlight/pwm-backlight.txt | 4 ++++
> drivers/video/backlight/pwm_bl.c | 22 +++++++++++++++++++---
> 2 files changed, 23 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> index 764db86..95594c3 100644
> --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> @@ -17,6 +17,10 @@ Optional properties:
> "pwms" property (see PWM binding[0])
> - enable-gpios: contains a single GPIO specifier for the GPIO which enables
> and disables the backlight (see GPIO binding[1])
> + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
> + and switching PWM on. This may be required to eliminate
> + flicker when switching the PWM on after it has been
> + disabled.
The subject talks about turning on the backlight regulator, but this
only talks about the PWM.
>
> [0]: Documentation/devicetree/bindings/pwm/pwm.txt
> [1]: Documentation/devicetree/bindings/gpio/gpio.txt
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching back
2017-10-27 14:38 ` [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching backlight power on Rob Herring
(?)
@ 2017-10-30 10:33 ` Lee Jones
-1 siblings, 0 replies; 31+ messages in thread
From: Lee Jones @ 2017-10-30 10:33 UTC (permalink / raw)
To: Rob Herring
Cc: Lothar Waßmann, Bartlomiej Zolnierkiewicz, Daniel Thompson,
Jacek Anaszewski, Jingoo Han, Mark Rutland, Pavel Machek,
Richard Purdie, Thierry Reding, devicetree, linux-fbdev,
linux-kernel, linux-leds, linux-pwm
On Fri, 27 Oct 2017, Rob Herring wrote:
> On Thu, Oct 26, 2017 at 02:49:46PM +0200, Lothar Waßmann wrote:
> > When switching the backlight on, the LCD may need some time to adjust
> > to the configured PWM duty cycle. Add a configurable delay between
> > configuring the PWM and enabling the backlight regulator to account
> > for this.
> >
> > Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
> > ---
> > .../bindings/leds/backlight/pwm-backlight.txt | 4 ++++
> > drivers/video/backlight/pwm_bl.c | 22 +++++++++++++++++++---
> > 2 files changed, 23 insertions(+), 3 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > index 764db86..95594c3 100644
> > --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > @@ -17,6 +17,10 @@ Optional properties:
> > "pwms" property (see PWM binding[0])
> > - enable-gpios: contains a single GPIO specifier for the GPIO which enables
> > and disables the backlight (see GPIO binding[1])
> > + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
> > + and switching PWM on. This may be required to eliminate
> > + flicker when switching the PWM on after it has been
> > + disabled.
>
> The subject talks about turning on the backlight regulator, but this
> only talks about the PWM.
From my understanding "switching PWM on" = enabling the regulator.
I don't see any disparity here. Or am I missing something?
> > [0]: Documentation/devicetree/bindings/pwm/pwm.txt
> > [1]: Documentation/devicetree/bindings/gpio/gpio.txt
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching backlight power on
@ 2017-10-30 10:33 ` Lee Jones
0 siblings, 0 replies; 31+ messages in thread
From: Lee Jones @ 2017-10-30 10:33 UTC (permalink / raw)
To: Rob Herring
Cc: Lothar Waßmann, Bartlomiej Zolnierkiewicz, Daniel Thompson,
Jacek Anaszewski, Jingoo Han, Mark Rutland, Pavel Machek,
Richard Purdie, Thierry Reding, devicetree, linux-fbdev,
linux-kernel, linux-leds, linux-pwm
On Fri, 27 Oct 2017, Rob Herring wrote:
> On Thu, Oct 26, 2017 at 02:49:46PM +0200, Lothar Waßmann wrote:
> > When switching the backlight on, the LCD may need some time to adjust
> > to the configured PWM duty cycle. Add a configurable delay between
> > configuring the PWM and enabling the backlight regulator to account
> > for this.
> >
> > Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
> > ---
> > .../bindings/leds/backlight/pwm-backlight.txt | 4 ++++
> > drivers/video/backlight/pwm_bl.c | 22 +++++++++++++++++++---
> > 2 files changed, 23 insertions(+), 3 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > index 764db86..95594c3 100644
> > --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > @@ -17,6 +17,10 @@ Optional properties:
> > "pwms" property (see PWM binding[0])
> > - enable-gpios: contains a single GPIO specifier for the GPIO which enables
> > and disables the backlight (see GPIO binding[1])
> > + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
> > + and switching PWM on. This may be required to eliminate
> > + flicker when switching the PWM on after it has been
> > + disabled.
>
> The subject talks about turning on the backlight regulator, but this
> only talks about the PWM.
From my understanding "switching PWM on" == enabling the regulator.
I don't see any disparity here. Or am I missing something?
> > [0]: Documentation/devicetree/bindings/pwm/pwm.txt
> > [1]: Documentation/devicetree/bindings/gpio/gpio.txt
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching backlight power on
@ 2017-10-30 10:33 ` Lee Jones
0 siblings, 0 replies; 31+ messages in thread
From: Lee Jones @ 2017-10-30 10:33 UTC (permalink / raw)
To: Rob Herring
Cc: Lothar Waßmann, Bartlomiej Zolnierkiewicz, Daniel Thompson,
Jacek Anaszewski, Jingoo Han, Mark Rutland, Pavel Machek,
Richard Purdie, Thierry Reding, devicetree, linux-fbdev,
linux-kernel, linux-leds, linux-pwm
On Fri, 27 Oct 2017, Rob Herring wrote:
> On Thu, Oct 26, 2017 at 02:49:46PM +0200, Lothar Waßmann wrote:
> > When switching the backlight on, the LCD may need some time to adjust
> > to the configured PWM duty cycle. Add a configurable delay between
> > configuring the PWM and enabling the backlight regulator to account
> > for this.
> >
> > Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
> > ---
> > .../bindings/leds/backlight/pwm-backlight.txt | 4 ++++
> > drivers/video/backlight/pwm_bl.c | 22 +++++++++++++++++++---
> > 2 files changed, 23 insertions(+), 3 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > index 764db86..95594c3 100644
> > --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > @@ -17,6 +17,10 @@ Optional properties:
> > "pwms" property (see PWM binding[0])
> > - enable-gpios: contains a single GPIO specifier for the GPIO which enables
> > and disables the backlight (see GPIO binding[1])
> > + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
> > + and switching PWM on. This may be required to eliminate
> > + flicker when switching the PWM on after it has been
> > + disabled.
>
> The subject talks about turning on the backlight regulator, but this
> only talks about the PWM.
>From my understanding "switching PWM on" == enabling the regulator.
I don't see any disparity here. Or am I missing something?
> > [0]: Documentation/devicetree/bindings/pwm/pwm.txt
> > [1]: Documentation/devicetree/bindings/gpio/gpio.txt
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching back
2017-10-30 10:33 ` Lee Jones
@ 2017-11-08 0:46 ` Rob Herring
-1 siblings, 0 replies; 31+ messages in thread
From: Rob Herring @ 2017-11-08 0:46 UTC (permalink / raw)
To: Lee Jones
Cc: Lothar Waßmann, Bartlomiej Zolnierkiewicz, Daniel Thompson,
Jacek Anaszewski, Jingoo Han, Mark Rutland, Pavel Machek,
Richard Purdie, Thierry Reding, devicetree@vger.kernel.org,
linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Linux LED Subsystem, Linux PWM List
On Mon, Oct 30, 2017 at 5:33 AM, Lee Jones <lee.jones@linaro.org> wrote:
> On Fri, 27 Oct 2017, Rob Herring wrote:
>
>> On Thu, Oct 26, 2017 at 02:49:46PM +0200, Lothar Waßmann wrote:
>> > When switching the backlight on, the LCD may need some time to adjust
>> > to the configured PWM duty cycle. Add a configurable delay between
>> > configuring the PWM and enabling the backlight regulator to account
>> > for this.
>> >
>> > Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
>> > ---
>> > .../bindings/leds/backlight/pwm-backlight.txt | 4 ++++
>> > drivers/video/backlight/pwm_bl.c | 22 +++++++++++++++++++---
>> > 2 files changed, 23 insertions(+), 3 deletions(-)
>> >
>> > diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
>> > index 764db86..95594c3 100644
>> > --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
>> > +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
>> > @@ -17,6 +17,10 @@ Optional properties:
>> > "pwms" property (see PWM binding[0])
>> > - enable-gpios: contains a single GPIO specifier for the GPIO which enables
>> > and disables the backlight (see GPIO binding[1])
>> > + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
>> > + and switching PWM on. This may be required to eliminate
>> > + flicker when switching the PWM on after it has been
>> > + disabled.
>>
>> The subject talks about turning on the backlight regulator, but this
>> only talks about the PWM.
>
> From my understanding "switching PWM on" = enabling the regulator.
>
> I don't see any disparity here. Or am I missing something?
The delay is from (re-)enabling the PWM (turning it on) to switching
backlight power on. That sounds like 2 different things to me.
Rob
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching backlight power on
@ 2017-11-08 0:46 ` Rob Herring
0 siblings, 0 replies; 31+ messages in thread
From: Rob Herring @ 2017-11-08 0:46 UTC (permalink / raw)
To: Lee Jones
Cc: Lothar Waßmann, Bartlomiej Zolnierkiewicz, Daniel Thompson,
Jacek Anaszewski, Jingoo Han, Mark Rutland, Pavel Machek,
Richard Purdie, Thierry Reding, devicetree@vger.kernel.org,
linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Linux LED Subsystem, Linux PWM List
On Mon, Oct 30, 2017 at 5:33 AM, Lee Jones <lee.jones@linaro.org> wrote:
> On Fri, 27 Oct 2017, Rob Herring wrote:
>
>> On Thu, Oct 26, 2017 at 02:49:46PM +0200, Lothar Waßmann wrote:
>> > When switching the backlight on, the LCD may need some time to adjust
>> > to the configured PWM duty cycle. Add a configurable delay between
>> > configuring the PWM and enabling the backlight regulator to account
>> > for this.
>> >
>> > Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
>> > ---
>> > .../bindings/leds/backlight/pwm-backlight.txt | 4 ++++
>> > drivers/video/backlight/pwm_bl.c | 22 +++++++++++++++++++---
>> > 2 files changed, 23 insertions(+), 3 deletions(-)
>> >
>> > diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
>> > index 764db86..95594c3 100644
>> > --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
>> > +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
>> > @@ -17,6 +17,10 @@ Optional properties:
>> > "pwms" property (see PWM binding[0])
>> > - enable-gpios: contains a single GPIO specifier for the GPIO which enables
>> > and disables the backlight (see GPIO binding[1])
>> > + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
>> > + and switching PWM on. This may be required to eliminate
>> > + flicker when switching the PWM on after it has been
>> > + disabled.
>>
>> The subject talks about turning on the backlight regulator, but this
>> only talks about the PWM.
>
> From my understanding "switching PWM on" == enabling the regulator.
>
> I don't see any disparity here. Or am I missing something?
The delay is from (re-)enabling the PWM (turning it on) to switching
backlight power on. That sounds like 2 different things to me.
Rob
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching back
2017-11-08 0:46 ` [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching backlight power on Rob Herring
@ 2017-11-08 7:34 ` Lothar Waßmann
-1 siblings, 0 replies; 31+ messages in thread
From: Lothar Waßmann @ 2017-11-08 7:34 UTC (permalink / raw)
To: Rob Herring
Cc: Lee Jones, Bartlomiej Zolnierkiewicz, Daniel Thompson,
Jacek Anaszewski, Jingoo Han, Mark Rutland, Pavel Machek,
Richard Purdie, Thierry Reding, devicetree@vger.kernel.org,
linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Linux LED Subsystem, Linux PWM List
Hi,
On Tue, 7 Nov 2017 18:46:18 -0600 Rob Herring wrote:
> On Mon, Oct 30, 2017 at 5:33 AM, Lee Jones <lee.jones@linaro.org> wrote:
> > On Fri, 27 Oct 2017, Rob Herring wrote:
> >
> >> On Thu, Oct 26, 2017 at 02:49:46PM +0200, Lothar Waßmann wrote:
> >> > When switching the backlight on, the LCD may need some time to adjust
> >> > to the configured PWM duty cycle. Add a configurable delay between
> >> > configuring the PWM and enabling the backlight regulator to account
> >> > for this.
> >> >
> >> > Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
> >> > ---
> >> > .../bindings/leds/backlight/pwm-backlight.txt | 4 ++++
> >> > drivers/video/backlight/pwm_bl.c | 22 +++++++++++++++++++---
> >> > 2 files changed, 23 insertions(+), 3 deletions(-)
> >> >
> >> > diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> >> > index 764db86..95594c3 100644
> >> > --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> >> > +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> >> > @@ -17,6 +17,10 @@ Optional properties:
> >> > "pwms" property (see PWM binding[0])
> >> > - enable-gpios: contains a single GPIO specifier for the GPIO which enables
> >> > and disables the backlight (see GPIO binding[1])
> >> > + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
> >> > + and switching PWM on. This may be required to eliminate
> >> > + flicker when switching the PWM on after it has been
> >> > + disabled.
> >>
> >> The subject talks about turning on the backlight regulator, but this
> >> only talks about the PWM.
> >
> > From my understanding "switching PWM on" = enabling the regulator.
> >
> > I don't see any disparity here. Or am I missing something?
>
> The delay is from (re-)enabling the PWM (turning it on) to switching
> backlight power on. That sounds like 2 different things to me.
>
The text should better read:
+ - turn-on-delay-ms: delay in milliseconds between configuring the PWM
+ and switching the backlight regulator on. This may be
+ required to eliminate flicker when switching the backlight
+ on after it had been disabled.
Lothar Waßmann
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching backlight power on
@ 2017-11-08 7:34 ` Lothar Waßmann
0 siblings, 0 replies; 31+ messages in thread
From: Lothar Waßmann @ 2017-11-08 7:34 UTC (permalink / raw)
To: Rob Herring
Cc: Lee Jones, Bartlomiej Zolnierkiewicz, Daniel Thompson,
Jacek Anaszewski, Jingoo Han, Mark Rutland, Pavel Machek,
Richard Purdie, Thierry Reding, devicetree@vger.kernel.org,
linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Linux LED Subsystem, Linux PWM List
Hi,
On Tue, 7 Nov 2017 18:46:18 -0600 Rob Herring wrote:
> On Mon, Oct 30, 2017 at 5:33 AM, Lee Jones <lee.jones@linaro.org> wrote:
> > On Fri, 27 Oct 2017, Rob Herring wrote:
> >
> >> On Thu, Oct 26, 2017 at 02:49:46PM +0200, Lothar Waßmann wrote:
> >> > When switching the backlight on, the LCD may need some time to adjust
> >> > to the configured PWM duty cycle. Add a configurable delay between
> >> > configuring the PWM and enabling the backlight regulator to account
> >> > for this.
> >> >
> >> > Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
> >> > ---
> >> > .../bindings/leds/backlight/pwm-backlight.txt | 4 ++++
> >> > drivers/video/backlight/pwm_bl.c | 22 +++++++++++++++++++---
> >> > 2 files changed, 23 insertions(+), 3 deletions(-)
> >> >
> >> > diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> >> > index 764db86..95594c3 100644
> >> > --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> >> > +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> >> > @@ -17,6 +17,10 @@ Optional properties:
> >> > "pwms" property (see PWM binding[0])
> >> > - enable-gpios: contains a single GPIO specifier for the GPIO which enables
> >> > and disables the backlight (see GPIO binding[1])
> >> > + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
> >> > + and switching PWM on. This may be required to eliminate
> >> > + flicker when switching the PWM on after it has been
> >> > + disabled.
> >>
> >> The subject talks about turning on the backlight regulator, but this
> >> only talks about the PWM.
> >
> > From my understanding "switching PWM on" == enabling the regulator.
> >
> > I don't see any disparity here. Or am I missing something?
>
> The delay is from (re-)enabling the PWM (turning it on) to switching
> backlight power on. That sounds like 2 different things to me.
>
The text should better read:
+ - turn-on-delay-ms: delay in milliseconds between configuring the PWM
+ and switching the backlight regulator on. This may be
+ required to eliminate flicker when switching the backlight
+ on after it had been disabled.
Lothar Waßmann
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching back
2017-11-08 7:34 ` [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching backlight power on Lothar Waßmann
@ 2017-11-08 9:12 ` Lee Jones
-1 siblings, 0 replies; 31+ messages in thread
From: Lee Jones @ 2017-11-08 9:12 UTC (permalink / raw)
To: Lothar Waßmann
Cc: Rob Herring, Bartlomiej Zolnierkiewicz, Daniel Thompson,
Jacek Anaszewski, Jingoo Han, Mark Rutland, Pavel Machek,
Richard Purdie, Thierry Reding, devicetree@vger.kernel.org,
linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Linux LED Subsystem, Linux PWM List
On Wed, 08 Nov 2017, Lothar Waßmann wrote:
> Hi,
>
> On Tue, 7 Nov 2017 18:46:18 -0600 Rob Herring wrote:
> > On Mon, Oct 30, 2017 at 5:33 AM, Lee Jones <lee.jones@linaro.org> wrote:
> > > On Fri, 27 Oct 2017, Rob Herring wrote:
> > >
> > >> On Thu, Oct 26, 2017 at 02:49:46PM +0200, Lothar Waßmann wrote:
> > >> > When switching the backlight on, the LCD may need some time to adjust
> > >> > to the configured PWM duty cycle. Add a configurable delay between
> > >> > configuring the PWM and enabling the backlight regulator to account
> > >> > for this.
> > >> >
> > >> > Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
> > >> > ---
> > >> > .../bindings/leds/backlight/pwm-backlight.txt | 4 ++++
> > >> > drivers/video/backlight/pwm_bl.c | 22 +++++++++++++++++++---
> > >> > 2 files changed, 23 insertions(+), 3 deletions(-)
> > >> >
> > >> > diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > >> > index 764db86..95594c3 100644
> > >> > --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > >> > +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > >> > @@ -17,6 +17,10 @@ Optional properties:
> > >> > "pwms" property (see PWM binding[0])
> > >> > - enable-gpios: contains a single GPIO specifier for the GPIO which enables
> > >> > and disables the backlight (see GPIO binding[1])
> > >> > + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
> > >> > + and switching PWM on. This may be required to eliminate
> > >> > + flicker when switching the PWM on after it has been
> > >> > + disabled.
> > >>
> > >> The subject talks about turning on the backlight regulator, but this
> > >> only talks about the PWM.
> > >
> > > From my understanding "switching PWM on" = enabling the regulator.
> > >
> > > I don't see any disparity here. Or am I missing something?
> >
> > The delay is from (re-)enabling the PWM (turning it on) to switching
> > backlight power on. That sounds like 2 different things to me.
I read it as the delay being between "configuring the PWM" (still not
on) and "switching <the> PWM on" (enabling the regulator).
> The text should better read:
> + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
> + and switching the backlight regulator on. This may be
> + required to eliminate flicker when switching the backlight
> + on after it had been disabled.
How is the regulator described in the datasheet?
Is it for the Backlight or the PWM?
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching backlight power on
@ 2017-11-08 9:12 ` Lee Jones
0 siblings, 0 replies; 31+ messages in thread
From: Lee Jones @ 2017-11-08 9:12 UTC (permalink / raw)
To: Lothar Waßmann
Cc: Rob Herring, Bartlomiej Zolnierkiewicz, Daniel Thompson,
Jacek Anaszewski, Jingoo Han, Mark Rutland, Pavel Machek,
Richard Purdie, Thierry Reding, devicetree@vger.kernel.org,
linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Linux LED Subsystem, Linux PWM List
On Wed, 08 Nov 2017, Lothar Waßmann wrote:
> Hi,
>
> On Tue, 7 Nov 2017 18:46:18 -0600 Rob Herring wrote:
> > On Mon, Oct 30, 2017 at 5:33 AM, Lee Jones <lee.jones@linaro.org> wrote:
> > > On Fri, 27 Oct 2017, Rob Herring wrote:
> > >
> > >> On Thu, Oct 26, 2017 at 02:49:46PM +0200, Lothar Waßmann wrote:
> > >> > When switching the backlight on, the LCD may need some time to adjust
> > >> > to the configured PWM duty cycle. Add a configurable delay between
> > >> > configuring the PWM and enabling the backlight regulator to account
> > >> > for this.
> > >> >
> > >> > Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
> > >> > ---
> > >> > .../bindings/leds/backlight/pwm-backlight.txt | 4 ++++
> > >> > drivers/video/backlight/pwm_bl.c | 22 +++++++++++++++++++---
> > >> > 2 files changed, 23 insertions(+), 3 deletions(-)
> > >> >
> > >> > diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > >> > index 764db86..95594c3 100644
> > >> > --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > >> > +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > >> > @@ -17,6 +17,10 @@ Optional properties:
> > >> > "pwms" property (see PWM binding[0])
> > >> > - enable-gpios: contains a single GPIO specifier for the GPIO which enables
> > >> > and disables the backlight (see GPIO binding[1])
> > >> > + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
> > >> > + and switching PWM on. This may be required to eliminate
> > >> > + flicker when switching the PWM on after it has been
> > >> > + disabled.
> > >>
> > >> The subject talks about turning on the backlight regulator, but this
> > >> only talks about the PWM.
> > >
> > > From my understanding "switching PWM on" == enabling the regulator.
> > >
> > > I don't see any disparity here. Or am I missing something?
> >
> > The delay is from (re-)enabling the PWM (turning it on) to switching
> > backlight power on. That sounds like 2 different things to me.
I read it as the delay being between "configuring the PWM" (still not
on) and "switching <the> PWM on" (enabling the regulator).
> The text should better read:
> + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
> + and switching the backlight regulator on. This may be
> + required to eliminate flicker when switching the backlight
> + on after it had been disabled.
How is the regulator described in the datasheet?
Is it for the Backlight or the PWM?
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching back
2017-11-08 9:12 ` [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching backlight power on Lee Jones
@ 2017-11-08 9:44 ` Lothar Waßmann
-1 siblings, 0 replies; 31+ messages in thread
From: Lothar Waßmann @ 2017-11-08 9:44 UTC (permalink / raw)
To: Lee Jones
Cc: Rob Herring, Bartlomiej Zolnierkiewicz, Daniel Thompson,
Jacek Anaszewski, Jingoo Han, Mark Rutland, Pavel Machek,
Richard Purdie, Thierry Reding, devicetree@vger.kernel.org,
linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Linux LED Subsystem, Linux PWM List
Hi,
On Wed, 8 Nov 2017 09:12:12 +0000 Lee Jones wrote:
> On Wed, 08 Nov 2017, Lothar Waßmann wrote:
>
> > Hi,
> >
> > On Tue, 7 Nov 2017 18:46:18 -0600 Rob Herring wrote:
> > > On Mon, Oct 30, 2017 at 5:33 AM, Lee Jones <lee.jones@linaro.org> wrote:
> > > > On Fri, 27 Oct 2017, Rob Herring wrote:
> > > >
> > > >> On Thu, Oct 26, 2017 at 02:49:46PM +0200, Lothar Waßmann wrote:
> > > >> > When switching the backlight on, the LCD may need some time to adjust
> > > >> > to the configured PWM duty cycle. Add a configurable delay between
> > > >> > configuring the PWM and enabling the backlight regulator to account
> > > >> > for this.
> > > >> >
> > > >> > Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
> > > >> > ---
> > > >> > .../bindings/leds/backlight/pwm-backlight.txt | 4 ++++
> > > >> > drivers/video/backlight/pwm_bl.c | 22 +++++++++++++++++++---
> > > >> > 2 files changed, 23 insertions(+), 3 deletions(-)
> > > >> >
> > > >> > diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > > >> > index 764db86..95594c3 100644
> > > >> > --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > > >> > +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > > >> > @@ -17,6 +17,10 @@ Optional properties:
> > > >> > "pwms" property (see PWM binding[0])
> > > >> > - enable-gpios: contains a single GPIO specifier for the GPIO which enables
> > > >> > and disables the backlight (see GPIO binding[1])
> > > >> > + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
> > > >> > + and switching PWM on. This may be required to eliminate
> > > >> > + flicker when switching the PWM on after it has been
> > > >> > + disabled.
> > > >>
> > > >> The subject talks about turning on the backlight regulator, but this
> > > >> only talks about the PWM.
> > > >
> > > > From my understanding "switching PWM on" = enabling the regulator.
> > > >
> > > > I don't see any disparity here. Or am I missing something?
> > >
> > > The delay is from (re-)enabling the PWM (turning it on) to switching
> > > backlight power on. That sounds like 2 different things to me.
>
> I read it as the delay being between "configuring the PWM" (still not
> on) and "switching <the> PWM on" (enabling the regulator).
>
> > The text should better read:
> > + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
> > + and switching the backlight regulator on. This may be
> > + required to eliminate flicker when switching the backlight
> > + on after it had been disabled.
>
> How is the regulator described in the datasheet?
>
> Is it for the Backlight or the PWM?
>
It actually is a Power Control input of the LCD panel, that is
modeled as a fiexd-regulator in Linux.
Lothar Waßmann
^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching backlight power on
@ 2017-11-08 9:44 ` Lothar Waßmann
0 siblings, 0 replies; 31+ messages in thread
From: Lothar Waßmann @ 2017-11-08 9:44 UTC (permalink / raw)
To: Lee Jones
Cc: Rob Herring, Bartlomiej Zolnierkiewicz, Daniel Thompson,
Jacek Anaszewski, Jingoo Han, Mark Rutland, Pavel Machek,
Richard Purdie, Thierry Reding, devicetree@vger.kernel.org,
linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Linux LED Subsystem, Linux PWM List
Hi,
On Wed, 8 Nov 2017 09:12:12 +0000 Lee Jones wrote:
> On Wed, 08 Nov 2017, Lothar Waßmann wrote:
>
> > Hi,
> >
> > On Tue, 7 Nov 2017 18:46:18 -0600 Rob Herring wrote:
> > > On Mon, Oct 30, 2017 at 5:33 AM, Lee Jones <lee.jones@linaro.org> wrote:
> > > > On Fri, 27 Oct 2017, Rob Herring wrote:
> > > >
> > > >> On Thu, Oct 26, 2017 at 02:49:46PM +0200, Lothar Waßmann wrote:
> > > >> > When switching the backlight on, the LCD may need some time to adjust
> > > >> > to the configured PWM duty cycle. Add a configurable delay between
> > > >> > configuring the PWM and enabling the backlight regulator to account
> > > >> > for this.
> > > >> >
> > > >> > Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
> > > >> > ---
> > > >> > .../bindings/leds/backlight/pwm-backlight.txt | 4 ++++
> > > >> > drivers/video/backlight/pwm_bl.c | 22 +++++++++++++++++++---
> > > >> > 2 files changed, 23 insertions(+), 3 deletions(-)
> > > >> >
> > > >> > diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > > >> > index 764db86..95594c3 100644
> > > >> > --- a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > > >> > +++ b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> > > >> > @@ -17,6 +17,10 @@ Optional properties:
> > > >> > "pwms" property (see PWM binding[0])
> > > >> > - enable-gpios: contains a single GPIO specifier for the GPIO which enables
> > > >> > and disables the backlight (see GPIO binding[1])
> > > >> > + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
> > > >> > + and switching PWM on. This may be required to eliminate
> > > >> > + flicker when switching the PWM on after it has been
> > > >> > + disabled.
> > > >>
> > > >> The subject talks about turning on the backlight regulator, but this
> > > >> only talks about the PWM.
> > > >
> > > > From my understanding "switching PWM on" == enabling the regulator.
> > > >
> > > > I don't see any disparity here. Or am I missing something?
> > >
> > > The delay is from (re-)enabling the PWM (turning it on) to switching
> > > backlight power on. That sounds like 2 different things to me.
>
> I read it as the delay being between "configuring the PWM" (still not
> on) and "switching <the> PWM on" (enabling the regulator).
>
> > The text should better read:
> > + - turn-on-delay-ms: delay in milliseconds between configuring the PWM
> > + and switching the backlight regulator on. This may be
> > + required to eliminate flicker when switching the backlight
> > + on after it had been disabled.
>
> How is the regulator described in the datasheet?
>
> Is it for the Backlight or the PWM?
>
It actually is a Power Control input of the LCD panel, that is
modeled as a fiexd-regulator in Linux.
Lothar Waßmann
^ permalink raw reply [flat|nested] 31+ messages in thread