omap: rx51: Set regulator V28_A always on
Subsystems (3)
PATCH v2 1/2 omap: rx51: Set regulator V28_A always on
The V28_A domain in Nokia N900 that supplies VDD voltages to TLV320AIC34 and TPA6130A2 should not be shutdown. This is because otherwise there will be leak from VIO to VDD in TLV320AIC34 and this leak consumes more battery current that is saved from keeping V28_A off. With this patch the battery current consumption is approximately 1.5 mA lower.
Thanks to Kalle Jokiniemi <[email protected]> for noticing the issue.
---
No changes from v1. Just sent together with 2/2.
--- arch/arm/mach-omap2/board-rx51-peripherals.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/board-rx51-peripherals.c +1 -0
@@ -488,6 +488,7 @@ static struct regulator_init_data rx51_vmmc2 = { .name = "V28_A", .min_uV = 2800000, .max_uV = 3000000, + .always_on = true, /* due VIO leak to AIC34 VDDs */ .apply_uV = true, .valid_modes_mask =REGULATOR_MODE_NORMAL | REGULATOR_MODE_STANDBY,
Signature · 1 line
1.7.4.4
PATCH v2 2/2 omap: rx51: Don't power up speaker amplifier at bootup
Speaker amplifier is accidentally powered up in early TWL gpio setup. This causes a few mA of needless battery current consumption. Without this patch the amplifier can be shutdown only by having one active audio playback and shutdown cycle to speaker output.
Thanks to Kalle Jokiniemi <[email protected]> for noticing the issue.
---
v2. Updated on top of commit bc593f5 ("arm: omap2plus: GPIO cleanup").
--- arch/arm/mach-omap2/board-rx51-peripherals.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/board-rx51-peripherals.c +1 -1
@@ -583,7 +583,7 @@ static int rx51_twlgpio_setup(struct device *dev, unsigned gpio, unsigned n) {/* FIXME this gpio setup is just a placeholder for now */ gpio_request_one (gpio +6 ,GPIOF_OUT_INIT_LOW ,"backlight_pwm" ); -gpio_request_one (gpio +7 ,GPIOF_OUT_INIT_HIGH ,"speaker_en" ); +gpio_request_one (gpio +7 ,GPIOF_OUT_INIT_LOW ,"speaker_en" );return 0 ; }
Signature · 1 line
1.7.4.4
Tony Lindgren
maintainerPATCH v2 1/2 omap: rx51: Set regulator V28_A always on
In reply to Jarkko NikulaQuoted 5 lines · Jarkko Nikula
The
V28_Adomain in Nokia N900 that supplies VDD voltages to TLV320AIC34 and TPA6130A2 should not be shutdown. This is because otherwise there will be leak from VIO to VDD in TLV320AIC34 and this leak consumes more battery current that is saved from keepingV28_Aoff. With this patch the battery current consumption is approximately 1.5 mA lower.
Thanks, applying into fixes.
Tony