From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Subject: Re: [PATCH 1/2] leds: add DT support for LEDs wired to supply and default brightness Date: Thu, 27 Mar 2014 23:57:52 +0100 Message-ID: <20140327225752.GD15793@pengutronix.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-leds-owner@vger.kernel.org To: Bryan Wu Cc: Russell King , "linux-arm-kernel@lists.infradead.org" , Richard Purdie , Thierry Reding , Shawn Guo , Sascha Hauer , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Rob Landley , "devicetree@vger.kernel.org" , "linux-doc@vger.kernel.org" , Linux LED Subsystem List-Id: devicetree@vger.kernel.org On Thu, Mar 27, 2014 at 03:28:32PM -0700, Bryan Wu wrote: > On Fri, Feb 28, 2014 at 1:25 PM, Russell King > wrote: > > Some PWM outputs are wired such that the LED they're controlling is > > connected to supply rather than ground. Therefore, the duty cycle > > needs to be inverted to make the LED behave as it should do. > > > > We also provide a way to specify the default brightness when a > > trigger is not specified. > > > > Signed-off-by: Russell King > > --- > > Documentation/devicetree/bindings/leds/leds-pwm.txt | 3 +++ > > drivers/leds/leds-pwm.c | 15 +++++++++= ++---- > > 2 files changed, 14 insertions(+), 4 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/leds/leds-pwm.txt b/= Documentation/devicetree/bindings/leds/leds-pwm.txt > > index 7297107cf832..ffcb74ab61fd 100644 > > --- a/Documentation/devicetree/bindings/leds/leds-pwm.txt > > +++ b/Documentation/devicetree/bindings/leds/leds-pwm.txt > > @@ -13,6 +13,9 @@ node's name represents the name of the correspond= ing LED. > > For the pwms and pwm-names property please refer to: > > Documentation/devicetree/bindings/pwm/pwm.txt > > - max-brightness : Maximum brightness possible for the LED > > +- default-brightness : (optional) Default brightness for the LED > > +- active-low : (optional) For PWMs where the LED is wired to suppl= y > > + rather than ground. > > - label : (optional) > > see Documentation/devicetree/bindings/leds/common.txt > > - linux,default-trigger : (optional) >=20 > Why remove "max-brightness", "label" and "linux,default-trigger" here= ? They are not removed, they are just unchanged list items after literal '-'s in the context of the patch. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig = | Industrial Linux Solutions | http://www.pengutronix.de/= |