Skip to content

Commit 0ad4c07

Browse files
tmlindbroonie
authored andcommitted
regulator: cpcap: Add basic regulator support
Many Motorola phones like droid 4 are using a custom PMIC called CPCAP or 6556002. This PMIC is used with several SoCs, I've noticed at least omap3, omap4 and Tegra2 based Motorola phones and tablets using it. Cc: [email protected] Cc: Marcel Partap <[email protected]> Cc: Michael Scott <[email protected]> Cc: Rob Herring <[email protected]> Signed-off-by: Tony Lindgren <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent d00b746 commit 0ad4c07

File tree

4 files changed

+506
-0
lines changed

4 files changed

+506
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Motorola CPCAP PMIC voltage regulators
2+
------------------------------------
3+
4+
Requires node properties:
5+
- "compatible" value one of:
6+
"motorola,cpcap-regulator"
7+
"motorola,mapphone-cpcap-regulator"
8+
9+
Required regulator properties:
10+
- "regulator-name"
11+
- "regulator-enable-ramp-delay"
12+
- "regulator-min-microvolt"
13+
- "regulator-max-microvolt"
14+
15+
Optional regulator properties:
16+
- "regulator-boot-on"
17+
18+
See Documentation/devicetree/bindings/regulator/regulator.txt
19+
for more details about the regulator properties.
20+
21+
Example:
22+
23+
cpcap_regulator: regulator {
24+
compatible = "motorola,cpcap-regulator";
25+
26+
cpcap_regulators: regulators {
27+
sw5: SW5 {
28+
regulator-min-microvolt = <5050000>;
29+
regulator-max-microvolt = <5050000>;
30+
regulator-enable-ramp-delay = <50000>;
31+
regulator-boot-on;
32+
};
33+
};
34+
};

drivers/regulator/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@ config REGULATOR_BCM590XX
163163
BCM590xx PMUs. This will enable support for the software
164164
controllable LDO/Switching regulators.
165165

166+
config REGULATOR_CPCAP
167+
tristate "Motorola CPCAP regulator"
168+
depends on MFD_CPCAP
169+
help
170+
Say y here for CPCAP regulator found on some Motorola phones
171+
and tablets such as Droid 4.
172+
166173
config REGULATOR_DA903X
167174
tristate "Dialog Semiconductor DA9030/DA9034 regulators"
168175
depends on PMIC_DA903X

drivers/regulator/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ obj-$(CONFIG_REGULATOR_USERSPACE_CONSUMER) += userspace-consumer.o
1111

1212
obj-$(CONFIG_REGULATOR_88PM800) += 88pm800.o
1313
obj-$(CONFIG_REGULATOR_88PM8607) += 88pm8607.o
14+
obj-$(CONFIG_REGULATOR_CPCAP) += cpcap-regulator.o
1415
obj-$(CONFIG_REGULATOR_AAT2870) += aat2870-regulator.o
1516
obj-$(CONFIG_REGULATOR_AB3100) += ab3100.o
1617
obj-$(CONFIG_REGULATOR_AB8500) += ab8500-ext.o ab8500.o

0 commit comments

Comments
 (0)