All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] twl4030_power_init cleanup proposal
@ 2009-11-30 15:56 Grazvydas Ignotas
  2009-11-30 16:17 ` Tom
  0 siblings, 1 reply; 3+ messages in thread
From: Grazvydas Ignotas @ 2009-11-30 15:56 UTC (permalink / raw)
  To: u-boot

hi,

drivers/power/twl4030.c has a twl4030_power_init() function which is
called by most (all?) OMAP3 boards. What it does is enabling VAUX3,
VPLL2 and VDAC power supplies in TWL4030/TPS659x0 chip. However they
are all very board specific and in most cases not needed at all, at
least for booting the kernel. They also cause regulator warnings on
latest kernels.

VAUX3: board specific, beagle doesn't have it connected at all, so it
wastes power there.
VPLL2: board specific, typically display related, as mainline u-boot
shows no graphics I think it can be removed.
VDAC: typically used to power TV-out DACs, can be removed. VDAC and
VPLL2 is already handled by kernel by DSS2.

So I think VDAC, VPLL2 can be safely removed, probably VAUX3 too with
whole twl4030_power_init().

Gra?vydas

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] twl4030_power_init cleanup proposal
  2009-11-30 15:56 [U-Boot] twl4030_power_init cleanup proposal Grazvydas Ignotas
@ 2009-11-30 16:17 ` Tom
  2009-11-30 16:41   ` Grazvydas Ignotas
  0 siblings, 1 reply; 3+ messages in thread
From: Tom @ 2009-11-30 16:17 UTC (permalink / raw)
  To: u-boot

Grazvydas Ignotas wrote:
> hi,
> 
> drivers/power/twl4030.c has a twl4030_power_init() function which is
> called by most (all?) OMAP3 boards. What it does is enabling VAUX3,
> VPLL2 and VDAC power supplies in TWL4030/TPS659x0 chip. However they
> are all very board specific and in most cases not needed at all, at
> least for booting the kernel. They also cause regulator warnings on
> latest kernels.
> 
> VAUX3: board specific, beagle doesn't have it connected at all, so it
> wastes power there.
> VPLL2: board specific, typically display related, as mainline u-boot
> shows no graphics I think it can be removed.
> VDAC: typically used to power TV-out DACs, can be removed. VDAC and
> VPLL2 is already handled by kernel by DSS2.
> 
> So I think VDAC, VPLL2 can be safely removed, probably VAUX3 too with
> whole twl4030_power_init().
> 
> Gra?vydas

Please provide specifics on the kernel warnings.
These should be addressed.

The power setting should be done on board by board basis.
If you are concerned about beagle, please provide a beagle specific
patch.

Tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] twl4030_power_init cleanup proposal
  2009-11-30 16:17 ` Tom
@ 2009-11-30 16:41   ` Grazvydas Ignotas
  0 siblings, 0 replies; 3+ messages in thread
From: Grazvydas Ignotas @ 2009-11-30 16:41 UTC (permalink / raw)
  To: u-boot

On Mon, Nov 30, 2009 at 6:17 PM, Tom <Tom.Rix@windriver.com> wrote:
> Grazvydas Ignotas wrote:
>>
>> hi,
>>
>> drivers/power/twl4030.c has a twl4030_power_init() function which is
>> called by most (all?) OMAP3 boards. What it does is enabling VAUX3,
>> VPLL2 and VDAC power supplies in TWL4030/TPS659x0 chip. However they
>> are all very board specific and in most cases not needed at all, at
>> least for booting the kernel. They also cause regulator warnings on
>> latest kernels.
>>
>> VAUX3: board specific, beagle doesn't have it connected at all, so it
>> wastes power there.
>> VPLL2: board specific, typically display related, as mainline u-boot
>> shows no graphics I think it can be removed.
>> VDAC: typically used to power TV-out DACs, can be removed. VDAC and
>> VPLL2 is already handled by kernel by DSS2.
>>
>> So I think VDAC, VPLL2 can be safely removed, probably VAUX3 too with
>> whole twl4030_power_init().
>>
>> Gra?vydas
>
> Please provide specifics on the kernel warnings.
> These should be addressed.

regulator_init_complete: incomplete constraints, leaving VDAC on

This can be fixed in kernel itself by declaring regulators as
"boot_on" or "always_on", but I think it's better just to not turn
them on when they are not needed.

> The power setting should be done on board by board basis.
> If you are concerned about beagle, please provide a beagle specific
> patch.

ok will do that for pandora, as that's the hardware I have.

Gra?vydas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-30 16:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-30 15:56 [U-Boot] twl4030_power_init cleanup proposal Grazvydas Ignotas
2009-11-30 16:17 ` Tom
2009-11-30 16:41   ` Grazvydas Ignotas

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.