2014-08-18 08:32:42 +00:00
|
|
|
Binding for Maxim MAX77802 regulators
|
|
|
|
|
|
|
|
This is a part of device tree bindings of MAX77802 multi-function device.
|
|
|
|
More information can be found in bindings/mfd/max77802.txt file.
|
|
|
|
|
|
|
|
The MAX77802 PMIC has 10 high-efficiency Buck and 32 Low-dropout (LDO)
|
|
|
|
regulators that can be controlled over I2C.
|
|
|
|
|
|
|
|
Following properties should be present in main device node of the MFD chip.
|
|
|
|
|
|
|
|
Optional node:
|
|
|
|
- regulators : The regulators of max77802 have to be instantiated
|
|
|
|
under subnode named "regulators" using the following format.
|
|
|
|
|
|
|
|
regulator-name {
|
|
|
|
standard regulator constraints....
|
|
|
|
};
|
|
|
|
refer Documentation/devicetree/bindings/regulator/regulator.txt
|
|
|
|
|
|
|
|
The regulator node name should be initialized with a string to get matched
|
|
|
|
with their hardware counterparts as follow. The valid names are:
|
|
|
|
|
|
|
|
-LDOn : for LDOs, where n can lie in ranges 1-15, 17-21, 23-30
|
|
|
|
and 32-35.
|
|
|
|
example: LDO1, LDO2, LDO35.
|
|
|
|
-BUCKn : for BUCKs, where n can lie in range 1 to 10.
|
|
|
|
example: BUCK1, BUCK5, BUCK10.
|
2014-11-11 12:04:43 +00:00
|
|
|
|
|
|
|
The max77802 regulator supports two different operating modes: Normal and Low
|
|
|
|
Power Mode. Some regulators support the modes to be changed at startup or by
|
|
|
|
the consumers during normal operation while others only support to change the
|
|
|
|
mode during system suspend. The standard regulator suspend states binding can
|
|
|
|
be used to configure the regulator operating mode.
|
|
|
|
|
|
|
|
The regulators that support the standard "regulator-initial-mode" property,
|
|
|
|
changing their mode during normal operation are: LDOs 1, 3, 20 and 21.
|
|
|
|
|
|
|
|
The possible values for "regulator-initial-mode" and "regulator-mode" are:
|
|
|
|
1: Normal regulator voltage output mode.
|
|
|
|
3: Low Power which reduces the quiescent current down to only 1uA
|
|
|
|
|
|
|
|
The list of valid modes are defined in the dt-bindings/clock/maxim,max77802.h
|
|
|
|
header and can be included by device tree source files.
|
|
|
|
|
|
|
|
The standard "regulator-mode" property can only be used for regulators that
|
|
|
|
support changing their mode to Low Power Mode during suspend. These regulators
|
|
|
|
are: BUCKs 2-4 and LDOs 1-35. Also, it only takes effect if the regulator has
|
|
|
|
been enabled for the given suspend state using "regulator-on-in-suspend" and
|
|
|
|
has not been disabled for that state using "regulator-off-in-suspend".
|
|
|
|
|
2014-08-18 08:32:42 +00:00
|
|
|
Example:
|
|
|
|
|
|
|
|
max77802@09 {
|
|
|
|
compatible = "maxim,max77802";
|
|
|
|
interrupt-parent = <&wakeup_eint>;
|
|
|
|
interrupts = <26 0>;
|
|
|
|
reg = <0x09>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
regulators {
|
2014-11-11 12:04:43 +00:00
|
|
|
ldo1_reg: LDO1 {
|
|
|
|
regulator-name = "vdd_1v0";
|
|
|
|
regulator-min-microvolt = <1000000>;
|
|
|
|
regulator-max-microvolt = <1000000>;
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-initial-mode = <MAX77802_OPMODE_LP>;
|
|
|
|
};
|
|
|
|
|
2014-08-18 08:32:42 +00:00
|
|
|
ldo11_reg: LDO11 {
|
|
|
|
regulator-name = "vdd_ldo11";
|
|
|
|
regulator-min-microvolt = <1900000>;
|
|
|
|
regulator-max-microvolt = <1900000>;
|
|
|
|
regulator-always-on;
|
2014-11-11 12:04:43 +00:00
|
|
|
regulator-state-mem {
|
|
|
|
regulator-on-in-suspend;
|
|
|
|
regulator-mode = <MAX77802_OPMODE_LP>;
|
|
|
|
};
|
2014-08-18 08:32:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buck1_reg: BUCK1 {
|
|
|
|
regulator-name = "vdd_mif";
|
|
|
|
regulator-min-microvolt = <950000>;
|
|
|
|
regulator-max-microvolt = <1300000>;
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
|
|
|
};
|
|
|
|
};
|