* [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off @ 2010-03-22 13:11 hvaibhav 2010-03-30 8:10 ` Hiremath, Vaibhav 2010-04-01 11:54 ` Tomi Valkeinen 0 siblings, 2 replies; 7+ messages in thread From: hvaibhav @ 2010-03-22 13:11 UTC (permalink / raw) To: linux-omap; +Cc: tomi.valkeinen, tony, Vaibhav Hiremath From: Vaibhav Hiremath <hvaibhav@ti.com> If you choose default output to DVI, the LCD backlight still gets powered, since panel->disable function never gets called for LCD. So, during init put backlight GPIO to off state and the driverr code will decide which output to enable explicitly. Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> --- arch/arm/mach-omap2/board-omap3evm.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c index 74bbdcb..f2a52c3 100644 --- a/arch/arm/mach-omap2/board-omap3evm.c +++ b/arch/arm/mach-omap2/board-omap3evm.c @@ -420,7 +420,10 @@ static int omap3evm_twl_gpio_setup(struct device *dev, /* TWL4030_GPIO_MAX + 0 == ledA, LCD Backlight control */ gpio_request(gpio + TWL4030_GPIO_MAX, "EN_LCD_BKL"); - gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0); + if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) + gpio_direction_output(gpio + TWL4030_GPIO_MAX, 1); + else + gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0); /* gpio + 7 == DVI Enable */ gpio_request(gpio + 7, "EN_DVI"); -- 1.6.2.4 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* RE: [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off 2010-03-22 13:11 [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off hvaibhav @ 2010-03-30 8:10 ` Hiremath, Vaibhav 2010-04-01 10:23 ` Tony Lindgren 2010-04-01 11:54 ` Tomi Valkeinen 1 sibling, 1 reply; 7+ messages in thread From: Hiremath, Vaibhav @ 2010-03-30 8:10 UTC (permalink / raw) To: Hiremath, Vaibhav, linux-omap; +Cc: tomi.valkeinen, tony > -----Original Message----- > From: Hiremath, Vaibhav > Sent: Monday, March 22, 2010 6:41 PM > To: linux-omap@vger.kernel.org > Cc: tomi.valkeinen@nokia.com; tony@atomide.com; Hiremath, Vaibhav > Subject: [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off > > From: Vaibhav Hiremath <hvaibhav@ti.com> > > If you choose default output to DVI, the LCD backlight still > gets powered, since panel->disable function never gets called for LCD. > > So, during init put backlight GPIO to off state and the driverr > code will decide which output to enable explicitly. > [Hiremath, Vaibhav] Tony, Do you see any issues with this patch? I think we can merge this patch series. Thanks, Vaibhav > Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> > --- > arch/arm/mach-omap2/board-omap3evm.c | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach- > omap2/board-omap3evm.c > index 74bbdcb..f2a52c3 100644 > --- a/arch/arm/mach-omap2/board-omap3evm.c > +++ b/arch/arm/mach-omap2/board-omap3evm.c > @@ -420,7 +420,10 @@ static int omap3evm_twl_gpio_setup(struct device *dev, > > /* TWL4030_GPIO_MAX + 0 == ledA, LCD Backlight control */ > gpio_request(gpio + TWL4030_GPIO_MAX, "EN_LCD_BKL"); > - gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0); > + if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) > + gpio_direction_output(gpio + TWL4030_GPIO_MAX, 1); > + else > + gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0); > > /* gpio + 7 == DVI Enable */ > gpio_request(gpio + 7, "EN_DVI"); > -- > 1.6.2.4 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off 2010-03-30 8:10 ` Hiremath, Vaibhav @ 2010-04-01 10:23 ` Tony Lindgren 0 siblings, 0 replies; 7+ messages in thread From: Tony Lindgren @ 2010-04-01 10:23 UTC (permalink / raw) To: Hiremath, Vaibhav; +Cc: linux-omap, tomi.valkeinen * Hiremath, Vaibhav <hvaibhav@ti.com> [100330 01:07]: > > > -----Original Message----- > > From: Hiremath, Vaibhav > > Sent: Monday, March 22, 2010 6:41 PM > > To: linux-omap@vger.kernel.org > > Cc: tomi.valkeinen@nokia.com; tony@atomide.com; Hiremath, Vaibhav > > Subject: [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off > > > > From: Vaibhav Hiremath <hvaibhav@ti.com> > > > > If you choose default output to DVI, the LCD backlight still > > gets powered, since panel->disable function never gets called for LCD. > > > > So, during init put backlight GPIO to off state and the driverr > > code will decide which output to enable explicitly. > > > [Hiremath, Vaibhav] Tony, > > Do you see any issues with this patch? I think we can merge this patch series. Looks like a valid fix to me. Tony > Thanks, > Vaibhav > > > Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> > > --- > > arch/arm/mach-omap2/board-omap3evm.c | 5 ++++- > > 1 files changed, 4 insertions(+), 1 deletions(-) > > > > diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach- > > omap2/board-omap3evm.c > > index 74bbdcb..f2a52c3 100644 > > --- a/arch/arm/mach-omap2/board-omap3evm.c > > +++ b/arch/arm/mach-omap2/board-omap3evm.c > > @@ -420,7 +420,10 @@ static int omap3evm_twl_gpio_setup(struct device *dev, > > > > /* TWL4030_GPIO_MAX + 0 == ledA, LCD Backlight control */ > > gpio_request(gpio + TWL4030_GPIO_MAX, "EN_LCD_BKL"); > > - gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0); > > + if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2) > > + gpio_direction_output(gpio + TWL4030_GPIO_MAX, 1); > > + else > > + gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0); > > > > /* gpio + 7 == DVI Enable */ > > gpio_request(gpio + 7, "EN_DVI"); > > -- > > 1.6.2.4 > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off 2010-03-22 13:11 [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off hvaibhav 2010-03-30 8:10 ` Hiremath, Vaibhav @ 2010-04-01 11:54 ` Tomi Valkeinen 2010-04-01 12:11 ` Hiremath, Vaibhav 1 sibling, 1 reply; 7+ messages in thread From: Tomi Valkeinen @ 2010-04-01 11:54 UTC (permalink / raw) To: ext hvaibhav@ti.com; +Cc: linux-omap, tony Hi, On Mon, 2010-03-22 at 14:11 +0100, ext hvaibhav@ti.com wrote: > From: Vaibhav Hiremath <hvaibhav@ti.com> > > If you choose default output to DVI, the LCD backlight still > gets powered, since panel->disable function never gets called for LCD. > > So, during init put backlight GPIO to off state and the driverr > code will decide which output to enable explicitly. I'm not sure I understand this patch. You talk about choosing default output (via kernel boot args, I presume), but the code checks for EVM revision. What is the connection between EVM revision and selecting display output? Tomi ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off 2010-04-01 11:54 ` Tomi Valkeinen @ 2010-04-01 12:11 ` Hiremath, Vaibhav 2010-04-01 13:32 ` Tomi Valkeinen 0 siblings, 1 reply; 7+ messages in thread From: Hiremath, Vaibhav @ 2010-04-01 12:11 UTC (permalink / raw) To: Tomi Valkeinen; +Cc: linux-omap, tony > -----Original Message----- > From: Tomi Valkeinen [mailto:tomi.valkeinen@nokia.com] > Sent: Thursday, April 01, 2010 5:25 PM > To: Hiremath, Vaibhav > Cc: linux-omap@vger.kernel.org; tony@atomide.com > Subject: Re: [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off > > Hi, > > On Mon, 2010-03-22 at 14:11 +0100, ext hvaibhav@ti.com wrote: > > From: Vaibhav Hiremath <hvaibhav@ti.com> > > > > If you choose default output to DVI, the LCD backlight still > > gets powered, since panel->disable function never gets called for LCD. > > > > So, during init put backlight GPIO to off state and the driverr > > code will decide which output to enable explicitly. > > I'm not sure I understand this patch. You talk about choosing default > output (via kernel boot args, I presume), [Hiremath, Vaibhav] yes you are correct. I am talking about default output selection using bootargs. > but the code checks for EVM > revision. What is the connection between EVM revision and selecting > display output? [Hiremath, Vaibhav] Ohh ok, I think you are not aware that we do have 2 version of EVM's. EVM-1 with positive (backlight gpio) polarity and EVM-2 with negative (backlight gpio) polarity. The code is doing exactly same. Thanks, Vaibhav > > Tomi > ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off 2010-04-01 12:11 ` Hiremath, Vaibhav @ 2010-04-01 13:32 ` Tomi Valkeinen 2010-04-12 11:47 ` Hiremath, Vaibhav 0 siblings, 1 reply; 7+ messages in thread From: Tomi Valkeinen @ 2010-04-01 13:32 UTC (permalink / raw) To: ext Hiremath, Vaibhav; +Cc: linux-omap, tony On Thu, 2010-04-01 at 14:11 +0200, ext Hiremath, Vaibhav wrote: > > -----Original Message----- > > From: Tomi Valkeinen [mailto:tomi.valkeinen@nokia.com] > > Sent: Thursday, April 01, 2010 5:25 PM > > To: Hiremath, Vaibhav > > Cc: linux-omap@vger.kernel.org; tony@atomide.com > > Subject: Re: [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off > > > > Hi, > > > > On Mon, 2010-03-22 at 14:11 +0100, ext hvaibhav@ti.com wrote: > > > From: Vaibhav Hiremath <hvaibhav@ti.com> > > > > > > If you choose default output to DVI, the LCD backlight still > > > gets powered, since panel->disable function never gets called for LCD. > > > > > > So, during init put backlight GPIO to off state and the driverr > > > code will decide which output to enable explicitly. > > > > I'm not sure I understand this patch. You talk about choosing default > > output (via kernel boot args, I presume), > [Hiremath, Vaibhav] yes you are correct. I am talking about default output selection using bootargs. > > > but the code checks for EVM > > revision. What is the connection between EVM revision and selecting > > display output? > [Hiremath, Vaibhav] Ohh ok, I think you are not aware that we do have 2 version of EVM's. EVM-1 with positive (backlight gpio) polarity and EVM-2 with negative (backlight gpio) polarity. > > The code is doing exactly same. Ok. But I still don't understand the relation with the patch comment, and the code. Shouldn't you anyway initialize the backlight gpio properly depending on the EVM revision, no matter if DVI is the default output or not? Perhaps the comment could be clarified. But the code looks fine: Acked-by: Tomi Valkeinen <tomi.valkeinen@nokia.com> Tomi ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off 2010-04-01 13:32 ` Tomi Valkeinen @ 2010-04-12 11:47 ` Hiremath, Vaibhav 0 siblings, 0 replies; 7+ messages in thread From: Hiremath, Vaibhav @ 2010-04-12 11:47 UTC (permalink / raw) To: Tomi Valkeinen; +Cc: linux-omap, tony > -----Original Message----- > From: Tomi Valkeinen [mailto:tomi.valkeinen@nokia.com] > Sent: Thursday, April 01, 2010 7:03 PM > To: Hiremath, Vaibhav > Cc: linux-omap@vger.kernel.org; tony@atomide.com > Subject: RE: [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off > > On Thu, 2010-04-01 at 14:11 +0200, ext Hiremath, Vaibhav wrote: > > > -----Original Message----- > > > From: Tomi Valkeinen [mailto:tomi.valkeinen@nokia.com] > > > Sent: Thursday, April 01, 2010 5:25 PM > > > To: Hiremath, Vaibhav > > > Cc: linux-omap@vger.kernel.org; tony@atomide.com > > > Subject: Re: [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to > off > > > > > > Hi, > > > > > > On Mon, 2010-03-22 at 14:11 +0100, ext hvaibhav@ti.com wrote: > > > > From: Vaibhav Hiremath <hvaibhav@ti.com> > > > > > > > > If you choose default output to DVI, the LCD backlight still > > > > gets powered, since panel->disable function never gets called for LCD. > > > > > > > > So, during init put backlight GPIO to off state and the driverr > > > > code will decide which output to enable explicitly. > > > > > > I'm not sure I understand this patch. You talk about choosing default > > > output (via kernel boot args, I presume), > > [Hiremath, Vaibhav] yes you are correct. I am talking about default output > selection using bootargs. > > > > > but the code checks for EVM > > > revision. What is the connection between EVM revision and selecting > > > display output? > > [Hiremath, Vaibhav] Ohh ok, I think you are not aware that we do have 2 > version of EVM's. EVM-1 with positive (backlight gpio) polarity and EVM-2 > with negative (backlight gpio) polarity. > > > > The code is doing exactly same. > > Ok. But I still don't understand the relation with the patch comment, > and the code. Shouldn't you anyway initialize the backlight gpio > properly depending on the EVM revision, no matter if DVI is the default > output or not? [Hiremath, Vaibhav] Yes, exactly that's what this patch does. During bootup, when board_init function gets executed this patch puts the default state of LCD backlight to off. I just tried to explain the scenario where this change is required, where the default output is DVI out and init code as usual will put LCD backlight to on state (keeping it on infinitely). > > Perhaps the comment could be clarified. But the code looks fine: > > Acked-by: Tomi Valkeinen <tomi.valkeinen@nokia.com> > [Hiremath, Vaibhav] Thanks for Acking. Tony, Can we merge this patch? This patch still gets applied cleanly on top of linux-omap/master, so should not be an issue at all. Also similar patch is submitted for AM3517 that should also get merged. Thanks, Vaibhav > Tomi > ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-04-12 11:47 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-03-22 13:11 [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off hvaibhav 2010-03-30 8:10 ` Hiremath, Vaibhav 2010-04-01 10:23 ` Tony Lindgren 2010-04-01 11:54 ` Tomi Valkeinen 2010-04-01 12:11 ` Hiremath, Vaibhav 2010-04-01 13:32 ` Tomi Valkeinen 2010-04-12 11:47 ` Hiremath, Vaibhav
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.