From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Ujfalusi Subject: Re: [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds Date: Thu, 24 Jan 2013 16:19:40 +0100 Message-ID: <5101510C.9050407@ti.com> References: <1358963812-19947-1-git-send-email-florian.vaussard@epfl.ch> <1358963812-19947-2-git-send-email-florian.vaussard@epfl.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1358963812-19947-2-git-send-email-florian.vaussard-p8DiymsW2f8@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Florian Vaussard Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: linux-omap@vger.kernel.org Hi, On 01/23/2013 06:56 PM, Florian Vaussard wrote: > Convert the on-board LED connected to the TWL4030 (LEDB) to use > pwm-leds. > = > Signed-off-by: Florian Vaussard > --- > arch/arm/boot/dts/omap3-overo.dtsi | 9 +++++---- > 1 files changed, 5 insertions(+), 4 deletions(-) > = > diff --git a/arch/arm/boot/dts/omap3-overo.dtsi b/arch/arm/boot/dts/omap3= -overo.dtsi > index 89808ce..800be29 100644 > --- a/arch/arm/boot/dts/omap3-overo.dtsi > +++ b/arch/arm/boot/dts/omap3-overo.dtsi > @@ -14,12 +14,13 @@ > /include/ "omap3.dtsi" > = > / { > - leds { > - compatible =3D "gpio-leds"; > + pwmleds { > + compatible =3D "pwm-leds"; > + > overo { > label =3D "overo:blue:COM"; > - gpios =3D <&twl_gpio 19 0>; > - linux,default-trigger =3D "mmc0"; You can keep the default trigger for the pwm-leds as well. The best way to test this is on top of linux-next which already have the leds-pwm DT bindings. > + pwms =3D <&twl_pwmled 1 7812500>; > + max-brightness =3D <127>; > }; > }; > }; > = -- = P=E9ter From mboxrd@z Thu Jan 1 00:00:00 1970 From: peter.ujfalusi@ti.com (Peter Ujfalusi) Date: Thu, 24 Jan 2013 16:19:40 +0100 Subject: [PATCH 1/2] ARM: dts: omap3-overo: Add support for pwm-leds In-Reply-To: <1358963812-19947-2-git-send-email-florian.vaussard@epfl.ch> References: <1358963812-19947-1-git-send-email-florian.vaussard@epfl.ch> <1358963812-19947-2-git-send-email-florian.vaussard@epfl.ch> Message-ID: <5101510C.9050407@ti.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi, On 01/23/2013 06:56 PM, Florian Vaussard wrote: > Convert the on-board LED connected to the TWL4030 (LEDB) to use > pwm-leds. > > Signed-off-by: Florian Vaussard > --- > arch/arm/boot/dts/omap3-overo.dtsi | 9 +++++---- > 1 files changed, 5 insertions(+), 4 deletions(-) > > diff --git a/arch/arm/boot/dts/omap3-overo.dtsi b/arch/arm/boot/dts/omap3-overo.dtsi > index 89808ce..800be29 100644 > --- a/arch/arm/boot/dts/omap3-overo.dtsi > +++ b/arch/arm/boot/dts/omap3-overo.dtsi > @@ -14,12 +14,13 @@ > /include/ "omap3.dtsi" > > / { > - leds { > - compatible = "gpio-leds"; > + pwmleds { > + compatible = "pwm-leds"; > + > overo { > label = "overo:blue:COM"; > - gpios = <&twl_gpio 19 0>; > - linux,default-trigger = "mmc0"; You can keep the default trigger for the pwm-leds as well. The best way to test this is on top of linux-next which already have the leds-pwm DT bindings. > + pwms = <&twl_pwmled 1 7812500>; > + max-brightness = <127>; > }; > }; > }; > -- P?ter