From: grant.likely@secretlab.ca (Grant Likely) Date: Thu, 24 Oct 2013 11:13:06 +0100 Subject: [PATCHv7][ 2/6] video: imxfb: Also add pwmr for the device tree. In-Reply-To: <1382605103-9595-2-git-send-email-denis@eukrea.com> References: <1382605103-9595-1-git-send-email-denis@eukrea.com> <1382605103-9595-2-git-send-email-denis@eukrea.com> Message-ID: <20131024101306.C8882C4039D@trevor.secretlab.ca> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, 24 Oct 2013 10:58:19 +0200, Denis Carikli wrote: > pwmr has to be set to get the imxfb backlight work, > though pwmr was only configurable trough the platform data. > > Cc: Rob Herring > Cc: Pawel Moll > Cc: Mark Rutland > Cc: Stephen Warren > Cc: Ian Campbell > Cc: devicetree at vger.kernel.org > Cc: Jean-Christophe Plagniol-Villard > Cc: Tomi Valkeinen > Cc: linux-fbdev at vger.kernel.org > Cc: Sascha Hauer > Cc: linux-arm-kernel at lists.infradead.org > Cc: Eric B??nard > Signed-off-by: Denis Carikli > Acked-by: Jean-Christophe PLAGNIOL-VILLARD For binding: Acked-by: Grant Likely > --- > .../devicetree/bindings/video/fsl,imx-fb.txt | 3 +++ > drivers/video/imxfb.c | 2 ++ > 2 files changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/video/fsl,imx-fb.txt b/Documentation/devicetree/bindings/video/fsl,imx-fb.txt > index 46da08d..ac457ae 100644 > --- a/Documentation/devicetree/bindings/video/fsl,imx-fb.txt > +++ b/Documentation/devicetree/bindings/video/fsl,imx-fb.txt > @@ -17,6 +17,9 @@ Required nodes: > Optional properties: > - fsl,dmacr: DMA Control Register value. This is optional. By default, the > register is not modified as recommended by the datasheet. > +- fsl,pwmr: LCDC PWM Contrast Control Register value. That property is > + optional, but defining it is necessary to get the backlight working. If that > + property is ommited, the register is zeroed. > - fsl,lscr1: LCDC Sharp Configuration Register value. > > Example: > diff --git a/drivers/video/imxfb.c b/drivers/video/imxfb.c > index 4bf3837..f09372d 100644 > --- a/drivers/video/imxfb.c > +++ b/drivers/video/imxfb.c > @@ -833,6 +833,8 @@ static int imxfb_init_fbinfo(struct platform_device *pdev) > > of_property_read_u32(np, "fsl,dmacr", &fbi->dmacr); > > + of_property_read_u32(np, "fsl,pwmr", &fbi->pwmr); > + > /* These two function pointers could be used by some specific > * platforms. */ > fbi->lcd_power = NULL; > -- > 1.7.9.5 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel at lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel