mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@avionic-design.de>
To: "Philip, Avinash" <avinashphilip@ti.com>
Cc: "rpurdie@rpsys.net" <rpurdie@rpsys.net>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Nori, Sekhar" <nsekhar@ti.com>,
	"Hebbar, Gururaja" <gururaja.hebbar@ti.com>
Subject: Re: DT support for Low threshold brightness in backlight.
Date: Mon, 23 Jul 2012 10:32:33 +0200	[thread overview]
Message-ID: <20120723083233.GB12868@avionic-0098.mockup.avionic-design.de> (raw)
In-Reply-To: <518397C60809E147AF5323E0420B992E3E96A842@DBDE01.ent.ti.com>

[-- Attachment #1: Type: text/plain, Size: 1331 bytes --]

On Wed, Jul 18, 2012 at 02:59:32PM +0000, Philip, Avinash wrote:
> Hi,
> 
> In pwm-backlight driver low threshold brightness support in DT is not
> present. Do you have any plans in such direction?
> 
> I am planning to add support for the same but want to avoid duplication
> of work.
> 
> Below scenario describes need for it:
> On some boards panel backlight is OFF at low end of brightness scale.
> So with Low threshold brightness we can have linear scale in brightness
> (Though the actual brightness scale is changes to Low threshold
> brightness value instead of 0).
> 
> Example with Low threshold brightness
> 	pwms = <&pwm 0 50000>;
> 	brightness-levels = <0 2 4 8 16 32 64 128 255>;
> 	default-brightness-level = <6>;
> 	brightness_threshold_level = <50>;
> 
> It can also be achieved without Low threshold brightness as below
> 
> 	pwms = <&pwm 0 50000>;
> 	brightness-levels = <0 51 53 56 62 75 101 152 255>; 
> 	default-brightness-level = <6>;
> 
> But brightness-levels won't be uniformly divided.
> 
> So it is good to have low threshold DT support for backlight.
> 
> Thanks
> Avinash Philip

I have no plans to add it myself, but feel free to send a patch. There
is a corresponding field in the platform data already, so adding DT
support is probably a good idea.

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

      reply	other threads:[~2012-07-23  8:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-18 14:59 Philip, Avinash
2012-07-23  8:32 ` Thierry Reding [this message]

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=20120723083233.GB12868@avionic-0098.mockup.avionic-design.de \
    --to=thierry.reding@avionic-design.de \
    --cc=avinashphilip@ti.com \
    --cc=gururaja.hebbar@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nsekhar@ti.com \
    --cc=rpurdie@rpsys.net \
    /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

all inboxes | Powered by JetHome®