regulator: palmas: add support for external control of rails
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 21 Aug 2013 10:48:16 +0000 (16:18 +0530)
committerMark Brown <broonie@linaro.org>
Mon, 16 Sep 2013 23:31:03 +0000 (00:31 +0100)
commit32b6d3f6027a05f42987f74deed48dc13cd5a11d
tree6461173e52d2f39d4b86193764dd3b1d3bbdadb2
parent272b98c6455f00884f0350f775c5342358ebb73f
regulator: palmas: add support for external control of rails

Palmas rails like LDOs, SMPSs, REGENs, SYSENs can be enable and disable
by register programming through I2C communication as well as it can be
enable/disable with the external control input ENABLE1, ENABLE2 and NSLEEP.

Add support for configuring these rails to be controlled by external control
inputs. This is require to configure the rail's control register as well as
configuration of resource register.

Provide the external input names through parameter "roof-floor". Updated the
DT binding document to details different value of the roof-floor.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/devicetree/bindings/regulator/palmas-pmic.txt
drivers/regulator/palmas-regulator.c