From: Pavel Machek <pavel@ucw.cz>
To: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Enric Balletbo i Serra <enric.balletbo@collabora.com>,
Thierry Reding <thierry.reding@gmail.com>,
Lee Jones <lee.jones@linaro.org>,
Jingoo Han <jingoohan1@gmail.com>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
Rob Herring <robh+dt@kernel.org>,
Richard Purdie <rpurdie@rpsys.net>,
Jacek Anaszewski <jacek.anaszewski@gmail.com>,
Heiko Stuebner <heiko@sntech.de>,
linux-pwm@vger.kernel.org, linux-fbdev@vger.kernel.org,
linux-kernel@vger.kernel.org, groeck@chromium.org,
linux-rockchip@lists.infradead.org
Subject: Re: [PATCH v4 2/5] dt-bindings: pwm-backlight: add PWM delay proprieties.
Date: Mon, 24 Jul 2017 19:19:47 +0000 [thread overview]
Message-ID: <20170724191947.GB32425@amd> (raw)
In-Reply-To: <61fbc94d-76d7-be7e-c0b3-30d27845434b@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 2788 bytes --]
On Mon 2017-07-24 16:21:44, Daniel Thompson wrote:
> On 21/07/17 11:48, Enric Balletbo i Serra wrote:
> >Hardware needs a delay between setting an initial (non-zero) PWM and
> >enabling the backlight using GPIO. The post-pwm-on-delay-ms specifies
> >this delay in milli seconds. Hardware also needs a delay between disabing
> >the backlight using GPIO and setting PWM value to 0. The pwm-off-delay-ms
> >is this delay in milli seconds.
> >
> >Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> >Acked-by: Pavel Machek <pavel@ucw.cz>
> >---
> >Based on the original Huang Lin <hl@rock-chips.com> work.
> >
> >Changes since v3:
> > - Replace us for ms.
> > - Add Acked-by: Pavel Machek <pavel@ucw.cz>
> >Changes since v2:
> > - Use separate properties (Rob Herring)
> >Changes since v1:
> > - As suggested by Daniel Thompson
> > - Do not assume power-on delay and power-off delay will be the same
> >
> > Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> >diff --git a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
> >index 764db86..3108109 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])
> >+ - post-pwm-on-delay-ms: Delay in ms between setting an initial (non-zero) PWM
> >+ and enabling the backlight using GPIO.
> >+ - pwm-off-delay-ms: Delay in ms between disabling the backlight using GPIO
> >+ and setting PWM value to 0.
>
> Whilst it is strictly true that the delay you added to the driver is
> currently between disabling the backlight and setting PWM value to 0 I don't
> think the action should be described at this level of detail in the DT
> bindings.
>
> The semantic action that is being performed is "stopping the PWM". This is
> currently implemented by setting the duty cycle to 0 and then calling
> disable but that could change (especially so since the current behavior
> looks asymmetric versus the enable sequence).
Well, datasheet say the delay is required between given actions, so
yes, I'd say that belongs in the device tree at this level of detail.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next prev parent reply other threads:[~2017-07-24 19:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-21 10:48 [PATCH v4 1/5] pwm-backlight: enable/disable the PWM before/after LCD enable toggle Enric Balletbo i Serra
[not found] ` <20170721104813.5389-1-enric.balletbo-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2017-07-21 10:48 ` [PATCH v4 2/5] dt-bindings: pwm-backlight: add PWM delay proprieties Enric Balletbo i Serra
[not found] ` <20170721104813.5389-2-enric.balletbo-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2017-07-24 15:21 ` Daniel Thompson
2017-07-24 19:19 ` Pavel Machek [this message]
2017-07-21 10:48 ` [PATCH v4 3/5] pwm-backlight: add support for PWM delays proprieties Enric Balletbo i Serra
2017-07-21 11:21 ` Pavel Machek
2017-07-24 15:22 ` Daniel Thompson
2017-07-26 17:01 ` Jingoo Han
2017-12-01 10:39 ` Enric Balletbo Serra
2017-12-01 10:54 ` Lee Jones
2017-12-01 10:56 ` Enric Balletbo Serra
2017-07-21 10:48 ` [PATCH v4 4/5] ARM: dts: rockchip: set PWM delay backlight settings for Veyron Enric Balletbo i Serra
2017-07-21 10:48 ` [PATCH v4 5/5] ARM: dts: rockchip: set PWM delay backlight settings for Minnie Enric Balletbo i Serra
2017-07-24 15:13 ` [PATCH v4 1/5] pwm-backlight: enable/disable the PWM before/after LCD enable toggle Daniel Thompson
2017-07-25 17:49 ` Jingoo Han
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170724191947.GB32425@amd \
--to=pavel@ucw.cz \
--cc=b.zolnierkie@samsung.com \
--cc=daniel.thompson@linaro.org \
--cc=enric.balletbo@collabora.com \
--cc=groeck@chromium.org \
--cc=heiko@sntech.de \
--cc=jacek.anaszewski@gmail.com \
--cc=jingoohan1@gmail.com \
--cc=lee.jones@linaro.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=robh+dt@kernel.org \
--cc=rpurdie@rpsys.net \
--cc=thierry.reding@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).