summaryrefslogtreecommitdiff
path: root/drivers/regulator
AgeCommit message (Collapse)Author
2013-05-31regulator: core: disable parent if child enabled during registrationLaxman Dewangan
If regulator's parent is enabled because of regulator is found to be enabled during registration then disable parent if: - regulator registration failed or - when full constraints is enabled and regulator get disabled. bug 1285809 Change-Id: I7a7c551543a9cbecf83bf10ef783e72aaa8c2173 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Venkat Reddy <vreddytalla@nvidia.com> Reviewed-on: http://git-master/r/233346 Reviewed-by: Yong Goo Yi <yyi@nvidia.com> Tested-by: Yong Goo Yi <yyi@nvidia.com>
2013-05-13regulator: palmas: add config flags to configure regulator behaviorLaxman Dewangan
Add the config variable on regulator init data to configure the rails behavior like force off on suspend etc. bug 1278567 Change-Id: I01f8f5729dfa67ba9f301d2f06825b152ef6857a Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/227077 Reviewed-by: Automatic_Commit_Validation_User
2013-04-30regulator:palmas increase delay when ES2.1 or lowerPhilip Rakity
code needs to decrease ramp delay so we get a longer delay. numerator and divisor need to be reversed Change-Id: I84ec995e0235e482bb0fe42cadb1864353ff7655 Signed-off-by: Philip Rakity <prakity@nvidia.com> Reviewed-on: http://git-master/r/223332 Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com> Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
2013-04-26regulator: palmas: fix the ramp delay logic comparisonLaxman Dewangan
Change-Id: I4eb8a1f5262c8fc5fbc42f504bc44bebad2a5719 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/223305 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Philip Rakity <prakity@nvidia.com> GVS: Gerrit_Virtual_Submit
2013-04-22regulator: palmas: set roof floor after registering regulatorLaxman Dewangan
Initailize the roof floor of rails after registering regulators to make sure the rails are configured properly as per regulator init data. bug 1267800 bug 1267804 Change-Id: Ia623030083cf1dda823873fe6ec7458899f2ff86 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/218881 Reviewed-by: Automatic_Commit_Validation_User
2013-04-22regulator: palmas: add support for ext power reqGaurav Batra
Bug 1242520 Change-Id: I0911977291a8fa0eccff3cba0d7fdedafbc91a36 Signed-off-by: Gaurav Batra <gbatra@nvidia.com> Reviewed-on: http://git-master/r/215721 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
2013-04-19regulator: palmas: do not disable smps10 in suspend if is enabled by clientMallikarjun Kasoju
Do not disable the smps10 in suspend as part of boost suspend if client have enabled it through regulator call and has not called regulator_disable. bug 1266948 Change-Id: I27e5dfbd4a55b07ef5214ce2fd57eaa7e78dff5a Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-on: http://git-master/r/220551
2013-04-16mfd/regulator: remove bq2419x driverSyed Rafiuddin
The bq2419x driver functionality is merged into single file as power/bq2419x-charger, these files are not required hence deleting. Bug 1240114 Change-Id: Ibc09b12904558d6b0905f6bdf309e452f9c8be78 Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/205497 (cherry picked from commit df6821a3a1013d4775fe7ed0c52a56a8bef29a1f) Reviewed-on: http://git-master/r/216078 Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com> Tested-by: Hyong Bin Kim <hyongbink@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
2013-04-05regulator: palmas: fix build warningsLaxman Dewangan
Fix following build warnings: drivers/regulator/palmas-regulator.c: In function 'palmas_disable_smps10_boost': drivers/regulator/palmas-regulator.c:1035:6: warning: unused variable 'i' [-Wunused-variable] drivers/regulator/palmas-regulator.c:1032:15: warning: unused variable 'reg' [-Wunused-variable] drivers/regulator/palmas-regulator.c: In function 'palmas_enable_smps10_boost': drivers/regulator/palmas-regulator.c:1052:6: warning: unused variable 'i' [-Wunused-variable] drivers/regulator/palmas-regulator.c: In function 'palmas_enable_ldo8_track': drivers/regulator/palmas-regulator.c:1077:6: warning: unused variable 'i' [-Wunused-variable] Change-Id: If0337f5acc6c30e3e13be47b8486f18fb4f684b2 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/216441 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> GVS: Gerrit_Virtual_Submit
2013-03-19regulator: bq2419x: add power off on suspend supportYunfan Zhang
Add flag power_off_on_suspend to support shutdown output unconditionally when suspend. Change-Id: Iff958a82271c05d4d519246d85e8ab616ff79c5a Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com> Reviewed-on: http://git-master/r/209393 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-03-15regulator: palmas: use correct bit for finding smps enabled or notLaxman Dewangan
SMPS registers are cached for higher performance on voltage control and hence it need to check the proper bits for enabled or not in place of volatile bits. bug 1250602 Change-Id: I8d2e1fca3926c551523a616b605ac5fd93352c33 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/209976 Reviewed-by: Kerwin Wan <kerwinw@nvidia.com> Reviewed-by: Ken Chang <kenc@nvidia.com> Tested-by: Ken Chang <kenc@nvidia.com> GVS: Gerrit_Virtual_Submit
2013-03-15regulator: bq2419x: Fix hot-plug functionalitySumit Sharma
Fix hot-plug functionality in bq2419x regulator driver Bug 1245272 Change-Id: I5877310bb346666d97ead811d00683aa8e243db6 Signed-off-by: Sumit Sharma <sumsharma@nvidia.com> Reviewed-on: http://git-master/r/205552 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-03-06Merge branch 'linux-3.4.35' into rel-17Sachin Nikam
Bug 1243631 Change-Id: I915826047b2e20f0ad0a7d75df295c6cbf6e5b0a
2013-02-22regulator: palmas: implement sleep mode configurationLaxman Dewangan
Palma is having different set of bits to configure sleep mode. Implement the set_sleep_mode for core to configure these bits. Change-Id: If78c95a3da5a1f875d8588a997c85f1bf01c9638 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/201793
2013-02-22regulator: add support for sleep mode configurationLaxman Dewangan
Some of PMIC like Palma support different bits for configuring rail's mode which is used in sleep mode of device. Add support for configuring this mode bits. Change-Id: Ib1bbc5164bf71c75c727dc759436e8dcf206f511 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/201792
2013-02-14regulator: palmas: preserve mode configuration across enable/disableLaxman Dewangan
If regulator rail is configured for a desired mode and if this rail get disable and again enable then mode get reset to normal. Store the desired mode locally and when it enabled, use the stored preconfigured mode for enabling regulator. bug 1231293 Change-Id: I396d91609dd91a4f3c682e1279c6f851cda4b94f Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/199434 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2013-02-11regulator: palmas: implement errata for ES1.0,ES2.0 and ES2.1Laxman Dewangan
The device has the errata and sw need to implement the WAR for proper functioning of the device. The errata are: 1. SMPS- slew rate (TSTEP) is slower than expected ----------------------------------------------- when output voltage target is close to previous one IMPACT: The settling time is greater than specified slew rate in register map and datasheet for voltage scaling of the SMPS. DESCRIPTION: Measurement done on WCSP ES2.0, SMPS8, SMPS6, SMPS12 for TSTEP=0x02(5mV/us) - step from VOUT= 0.5v to 1.65V ==>slew rate is around 5mV/us - step from VOUT= 0.96v to 1.04V ==>slew rate is around 2.5mV/us for TSTEP=0x03(2.5mV/us) - step from VOUT= 0.5v to 1.65V ==>slew rate is around 2.5mV/us - step from VOUT= 0.96v to 1.04V ==>slew rate is around 1.6mV/us WORKAROUND: Adapt wait time using above value. REVISION IMPACTED: ES1.0/ES2.0/ES2.1 2. LDO8_TRACKING: PD in tracking mode ------------------------------------- IMPACT: Higher consumption and performance impact when LDO8 is set in tracking mode and LDO is set to have its pull down enabled in OFF mode. DESCRIPTION: When LDO8 is set in tracking mode and the LDO is set to have its pull down enabled in OFF, the pull down is also enabled in ACTIVE mode. WORKAROUND: In tracking mode, bit7 of LDO_PD_CTRL1 register must be set to 0. When LDO8 is disabled, to have the pull down, bit7 of LDO_PD_CTRL1 register must then be set to 1. In LDO8 regulation mode, behavior is the same as the other LDOs. REVISION IMPACTED: ES 2.1 ES2.0 ES1.0 bug 1228386 bug 1195226 Change-Id: Ib19a21cb722b1bc07d93a0cf866c134672ef8735 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/199132 Reviewed-by: Automatic_Commit_Validation_User
2013-02-08regulator: max77663: Changed SD0 & SD1 regulator dataSumit Sharma
Added support for changing SD0 & SD1 regulator data for MAX77663D PMU version Bug 1220546 Change-Id: I2b0f396a2f2d171f5657c2d3cd845d3b1ffa16d3 Signed-off-by: Sumit Sharma <sumsharma@nvidia.com> Reviewed-on: http://git-master/r/197932 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-02-05regulator: palmas: Add ramp delayLaxman Dewangan
Add ramp delay configuration and handling so that when SMPS voltage gets change, proper settling time can be handle by driver. bug 1195226 bug 1210989 Change-Id: I2520230f9d3cbe7e9d6b1f1375c86e1b1af2456a Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/197460 Reviewed-by: Automatic_Commit_Validation_User
2013-02-05regulator: add support for ramp delayLaxman Dewangan
Add support for ramp delay which can be configured: - by passing value from constraints. - by initialising descriptor. Also add generic API to provide ramp delay support function. Change-Id: If22880672aa5cbdf930dd010e4b05c3083028e0b Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/197459 Reviewed-by: Automatic_Commit_Validation_User
2013-01-30regulator: bq24192: add shutdown functionalityKunal Agrawal
Bug 1225027 Change-Id: I33eca8e87bc01ac4a3392e8ede362d47900de98d Signed-off-by: Kunal Agrawal <kunala@nvidia.com> Reviewed-on: http://git-master/r/195047 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-01-30regulator: tps51632: add support for shutdown functionalityKunal Agrawal
Bug 1225025 Change-Id: I8bd9c00d088ad9f0a1660df5bb77876f65bc3113 Signed-off-by: Kunal Agrawal <kunala@nvidia.com> Reviewed-on: http://git-master/r/195393 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit
2013-01-17regulator: wm831x: Set the new rather than old value for DVS VSELMark Brown
commit 13ae633cf729b0ecb677b75b04886ff8fada8fad upstream. Reported-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-12-20regulator: tps51632: add support for change control modeLaxman Dewangan
TPS51632 output can be control through register write via i2c or through input pwm signal. Adding support for switching the control mode to I2C or PWM dynamically. Change-Id: I57d72eff5c819a2b84f25ba82482bb9723c2c452 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/171310 Reviewed-on: http://git-master/r/172701
2012-12-20regulator: add support for changing control mode of regulatorLaxman Dewangan
Some of device supports to control the regulator output to be set either through register write via I2C or through PWM. Add supports to switch the mode dynamically. Change-Id: I3214a6ff89f85592b1ada8e64f0946693ef4f4cc Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/171309 Reviewed-on: http://git-master/r/172700 Reviewed-by: Automatic_Commit_Validation_User
2012-12-14regulator: bq24192: Disable supply by defaultRakesh Bodla
Disable voltage supply by default. Bug 1179219 Change-Id: Ibf963a88be446acaf76ffa3364c6e6b12068fc16 Signed-off-by: Rakesh Bodla <rbodla@nvidia.com> Reviewed-on: http://git-master/r/170378 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
2012-12-13drivers: mfd: palmas: make smps10_boost_disable optionalMatt Wagner
Allow the board to pick whether they want to disable smps10_boost on suspend Bug 1172908 Change-Id: I0121f7e24716eb8731af3b14100d81ef63168929 Signed-off-by: Matt Wagner <mwagner@nvidia.com> Reviewed-on: http://git-master/r/170340 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-12-04regulator: tps65090: add wait_timeout support for FETxYen Lin
Add platform data for wait_timeout value for FETx. bug 1178161 Signed-off-by: Yen Lin <yelin@nvidia.com> Change-Id: I12eedd48dd4bfcabfe3fa9ae08afff6399e94abf Reviewed-on: http://git-master/r/167476 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Allen Martin <amartin@nvidia.com>
2012-12-03regulator: bq24192: add regulator driverLaxman Dewangan
The device BQ24190/BQ24192 supports vbus supply. Add regulator driver for this. Change-Id: Ia33385ba2dc5f2afb577921469e89d96825d006b Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/167529 GVS: Gerrit_Virtual_Submit
2012-11-12regulator: palma: Disable smps10 boost during suspendKarthik Ramakrishnan
If the boost on smps10 is ON, the PMU consumes 2.5mW on the VCCA rail. It should be disabled when the device is in LP0 Bug 1156145 Change-Id: Icddc5c14a3b430f1a5aafda699c4216eafd9b32f Signed-off-by: Karthik Ramakrishnan <karthikr@nvidia.com> Reviewed-on: http://git-master/r/162156 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-11-09mfd: palmas: pwm based cl dvfs supportPradeep Goudagunta
SMPS12 and SMPS6 are capable of PWM based cl dvfs. Bug 1058480 Change-Id: Ib000300ac508b471b9ebe698c603c93129f0675e Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-on: http://git-master/r/159832 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Neil Patel <neilp@nvidia.com>
2012-10-23regulator: tps65090: fix issue with dcdc external controlLaxman Dewangan
There is issue where external control is getting enabled even when it is not selected from platform data. Fixing this issue. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/143603 (cherry picked from commit cc79b18e4e007ff3f0728a31f79aa360bd745e45) Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Change-Id: I6f067b05cfa5bb81353746564420468fa6f5ef1c Reviewed-on: http://git-master/r/146391 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
2012-10-23regulator: palma: Configure pull-down of LOD8 in tracking modeLaxman Dewangan
LDO8 pull-down should be as follows: - Disable the pull-down of LDO8 when it is in tracking mode. - Enable the pull-down of LDO8 when it is in non-tracking mode. Add support of this. bug 1058685 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/141514 (cherry picked from commit f74a952112b2871144952433319849477af133fa) Change-Id: I3306e24f63c2787da07f038c011314ce3803a423 Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-on: http://git-master/r/146390 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
2012-10-23regulator: palma: set ldo8 voltage before disabling tracking mode.Laxman Dewangan
When LDO8 is in tracking mode and want to disable tracking mode then ldo8 voltage should be set before disabling tracking mode as in tacking mode, the voltage selection value is double than the non-tracking mode and it can spike high voltage on the rail. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/140595 (cherry picked from commit cd0e02af8288bebccab92dcda27d6953b2a58955) Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Change-Id: I322acccfe22e2e1af856e2fa06154c75b094091f Reviewed-on: http://git-master/r/146388 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
2012-10-23regulator: palmas: add option to disable tracking in suspendLaxman Dewangan
Add option to disable tracking mode of LDO8 in suspend. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/139735 (cherry picked from commit 7d82d5f408569fc17cca2abe9870461efe68d5fd) Change-Id: I60d6142900dd4ce9190b138d6678f8a23d4d280a Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-on: http://git-master/r/146386 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-10-23regulator: tps51632: Fix control register configurationLaxman Dewangan
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/139613 (cherry picked from commit 23499f8e25dc7ddb847baaf1c758931d5f72e3c1) Change-Id: I5a56b78c43bc30d87a005c4251b7e8732344834b Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-on: http://git-master/r/146385 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
2012-10-23regulator: mfd: configure ext control of SMPS3 for SMPS123 configLaxman Dewangan
If SMPS123 configuration is used and if it is controlled by external control then configure SMPS3 ext control along with SMPS12. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/139389 (cherry picked from commit f6907f72fcf37adb5cdc669974b2714b8d64c656) Change-Id: I86f22ce873bbb36e38e7a25abb9f33fee6691eaa Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Reviewed-on: http://git-master/r/146382 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
2012-10-19regulator: palmas: Fix warning messageMallikarjun Kasoju
Fix warnings of unused function/variable by removing them Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-on: http://git-master/r/140612 (cherry picked from commit 523318f6f93d50096b3f075ead7d9959d30b5dd4) Change-Id: I167fc5ba361ae1d3bfd1c1464edace4a59f6291d Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/145290 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-10-10regulator: palma: configure sleep mode properlyMallikarjun Kasoju
Properly configuring the sleep mode state for smps and ldo regualtors. Reviewed-on: http://git-master/r/134415 (cherry picked from commit 4fcff72d0eb2a055a2fa0ba8acfcfb97270feab7) Change-Id: I1ad2a0e6d968a9d0328aaa1a5eeb6819f6f8646c Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/143136 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-10-08regulator: palma: smps10: fix control of smps10Laxman Dewangan
Implement the full control of SMPS10 of palma. Change-Id: Ibaa2624abda8e29348dd7c180fda10acc019ca71 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/132292 Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User (cherry picked from commit 03b5bbb62f6e781884843e43501eaf973c9f97b8) Reviewed-on: http://git-master/r/142004 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-09-14regulator: core: change microvolt permission to 0644Laxman Dewangan
Allow change of voltage through user space with root permission only. bug 1004472 Change-Id: I8f96872c9c3915f1e39191a26f2a18acdc9c5d6c Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/132529 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-09-14regulator: tps6591x: Added LDO4 tracking supportSumit Sharma
Bug 1043041 Included LDO4 tracking support in tps6591x regulator by adding config flag in LDO4 initialization Change-Id: Ia549d566e8fdb3192d509c1a175d3021b0aba3ad signed-off-by: Sumit Sharma <sumsharma@nvidia.com> Reviewed-on: http://git-master/r/131003 GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-09-14regulator: twl-regulator: fix up VINTANA1/VINTANA2Aaro Koskinen
commit 908d6d52928a7f2a4b317aac47542c5fbef43d88 upstream. It seems commit 2098e95ce9bb039ff2e7bf836df358d18a176139 (regulator: twl: adapt twl-regulator driver to dt) accidentally deleted VINTANA1. Also the same commit defines VINTANA2 twice with TWL4030_ADJUSTABLE_LDO and TWL4030_FIXED_LDO. This patch changes the fixed one to be VINTANA1. I noticed this when auditing my N900 boot logs. I could not notice any change in device behaviour, though, except that the boot logs are now like before: ... [ 0.282928] VDAC: 1800 mV normal standby [ 0.284027] VCSI: 1800 mV normal standby [ 0.285400] VINTANA1: 1500 mV normal standby [ 0.286865] VINTANA2: 2750 mV normal standby [ 0.288208] VINTDIG: 1500 mV normal standby [ 0.289978] VSDI_CSI: 1800 mV normal standby ... Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-09-12regulator: palmas: support ldo8 tracking modeLaxman Dewangan
LDO8 is having tracking mode where it can track for SMPS45. Add support for configuring this mode. Change-Id: I19195ff8b8c4ad1dab8d233f8380c481493b6829 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/131459 Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
2012-09-12regulator: palmas: support for external control of regulator outputsLaxman Dewangan
Add support to control different regulator output through external control signal. Change-Id: Id3b7d22bf113cb102163c6b97388530ca591e586 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/131452 Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
2012-09-11regulator: palma: support for external regulatorLaxman Dewangan
Palma supports the multiple external regulator named as REGEN1, REGEN2, REGEN3, SYSEN1 and SYSEN2. Supports these regulator through regulator driver. Change-Id: I4f5fae65dc6e5b8dcd1f80ac41ad406933a1fe7e Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/131331 Reviewed-by: Automatic_Commit_Validation_User
2012-09-07regulator: palmas: Clear PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK bits in ↵Axel Lin
palmas_set_mode_smps Current code actually clears more bits than PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK bits. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> (cherry picked from commit 999f0c7cb8e7c378bd1f3fcd56cf8dc5a30c83e4) Change-Id: I16be7bc3237bbc3494d9bea87f0969f121722acc Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-on: http://git-master/r/130577 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-09-07regulator: palmas: Fix ldo enable and disableMallikarjun Kasoju
Bug 1044908 Change-Id: Idff82e2780b48d4ee93c17123a712a7b0d7e416b Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-on: http://git-master/r/130570 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-09-07regulator: Pass voltage level to change notificationAlex Frid
Passed voltage level to notification chain for events: REGULATOR_EVENT_OUT_PRECHANGE and REGULATOR_EVENT_OUT_POSTCHANGE. Change-Id: Ia94495c2237f56ebba2d456af4cd2fc7e98d3e20 Signed-off-by: Alex Frid <afrid@nvidia.com> Reviewed-on: http://git-master/r/130354 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-08-30regulator: tps51632: write VMAX when lock bit is not setLaxman Dewangan
TPS51632 hw behavior is that VMAX register can be written only once as it get locked after first write. The lock get reset only when device is power-reset. Write register only when lock bit is not enabled. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Change-Id: I949439a0019ca44212128a23aea842d8be88523a Reviewed-on: http://git-master/r/128445 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Pradeep Goudagunta <pgoudagunta@nvidia.com> Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>