2014-07-05 21:20:56 +08:00
|
|
|
ACT88xx regulators
|
2013-12-24 10:35:14 +08:00
|
|
|
-------------------
|
|
|
|
|
|
|
|
Required properties:
|
2015-02-28 01:04:04 +08:00
|
|
|
- compatible: "active-semi,act8846" or "active-semi,act8865" or "active-semi,act8600"
|
2013-12-24 10:35:14 +08:00
|
|
|
- reg: I2C slave address
|
|
|
|
|
2014-10-14 14:31:13 +08:00
|
|
|
Optional properties:
|
2014-11-25 20:28:25 +08:00
|
|
|
- system-power-controller: Telling whether or not this pmic is controlling
|
|
|
|
the system power. See Documentation/devicetree/bindings/power/power-controller.txt .
|
2015-09-30 15:25:50 +08:00
|
|
|
- active-semi,vsel-high: Indicates the VSEL pin is high.
|
|
|
|
If this property is missing, assume the VSEL pin is low(0).
|
2014-10-14 14:31:13 +08:00
|
|
|
|
2015-03-07 23:33:53 +08:00
|
|
|
Optional input supply properties:
|
|
|
|
- for act8600:
|
|
|
|
- vp1-supply: The input supply for DCDC_REG1
|
|
|
|
- vp2-supply: The input supply for DCDC_REG2
|
|
|
|
- vp3-supply: The input supply for DCDC_REG3
|
|
|
|
- inl-supply: The input supply for LDO_REG5, LDO_REG6, LDO_REG7 and LDO_REG8
|
|
|
|
SUDCDC_REG4, LDO_REG9 and LDO_REG10 do not have separate supplies.
|
|
|
|
- for act8846:
|
|
|
|
- vp1-supply: The input supply for REG1
|
|
|
|
- vp2-supply: The input supply for REG2
|
|
|
|
- vp3-supply: The input supply for REG3
|
|
|
|
- vp4-supply: The input supply for REG4
|
|
|
|
- inl1-supply: The input supply for REG5, REG6 and REG7
|
|
|
|
- inl2-supply: The input supply for REG8 and LDO_REG9
|
|
|
|
- inl3-supply: The input supply for REG10, REG11 and REG12
|
|
|
|
- for act8865:
|
|
|
|
- vp1-supply: The input supply for DCDC_REG1
|
|
|
|
- vp2-supply: The input supply for DCDC_REG2
|
|
|
|
- vp3-supply: The input supply for DCDC_REG3
|
|
|
|
- inl45-supply: The input supply for LDO_REG1 and LDO_REG2
|
|
|
|
- inl67-supply: The input supply for LDO_REG3 and LDO_REG4
|
|
|
|
|
2013-12-24 10:35:14 +08:00
|
|
|
Any standard regulator properties can be used to configure the single regulator.
|
2019-08-14 02:32:56 +08:00
|
|
|
regulator-initial-mode, regulator-allowed-modes and regulator-mode could be specified
|
|
|
|
for act8865 using mode values from dt-bindings/regulator/active-semi,8865-regulator.h
|
|
|
|
file.
|
2013-12-24 10:35:14 +08:00
|
|
|
|
|
|
|
The valid names for regulators are:
|
2014-07-05 21:20:56 +08:00
|
|
|
- for act8846:
|
|
|
|
REG1, REG2, REG3, REG4, REG5, REG6, REG7, REG8, REG9, REG10, REG11, REG12
|
|
|
|
- for act8865:
|
2013-12-24 10:35:14 +08:00
|
|
|
DCDC_REG1, DCDC_REG2, DCDC_REG3, LDO_REG1, LDO_REG2, LDO_REG3, LDO_REG4.
|
2015-02-28 01:04:04 +08:00
|
|
|
- for act8600:
|
|
|
|
DCDC_REG1, DCDC_REG2, DCDC_REG3, SUDCDC_REG4, LDO_REG5, LDO_REG6, LDO_REG7,
|
|
|
|
LDO_REG8, LDO_REG9, LDO_REG10,
|
2013-12-24 10:35:14 +08:00
|
|
|
|
|
|
|
Example:
|
|
|
|
--------
|
|
|
|
|
2019-08-14 02:32:56 +08:00
|
|
|
#include <dt-bindings/regulator/active-semi,8865-regulator.h>
|
|
|
|
|
2013-12-24 10:35:14 +08:00
|
|
|
i2c1: i2c@f0018000 {
|
|
|
|
pmic: act8865@5b {
|
|
|
|
compatible = "active-semi,act8865";
|
|
|
|
reg = <0x5b>;
|
2015-09-30 15:25:50 +08:00
|
|
|
active-semi,vsel-high;
|
2013-12-24 10:35:14 +08:00
|
|
|
|
|
|
|
regulators {
|
|
|
|
vcc_1v8_reg: DCDC_REG1 {
|
|
|
|
regulator-name = "VCC_1V8";
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
|
|
|
|
|
|
|
vcc_1v2_reg: DCDC_REG2 {
|
|
|
|
regulator-name = "VCC_1V2";
|
|
|
|
regulator-min-microvolt = <1100000>;
|
|
|
|
regulator-max-microvolt = <1300000>;
|
|
|
|
regulator-always-on;
|
2019-08-14 02:32:56 +08:00
|
|
|
|
|
|
|
regulator-allowed-modes = <ACT8865_REGULATOR_MODE_FIXED>,
|
|
|
|
<ACT8865_REGULATOR_MODE_LOWPOWER>;
|
|
|
|
regulator-initial-mode = <ACT8865_REGULATOR_MODE_FIXED>;
|
|
|
|
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-on-in-suspend;
|
|
|
|
regulator-suspend-min-microvolt = <1150000>;
|
|
|
|
regulator-suspend-max-microvolt = <1150000>;
|
|
|
|
regulator-changeable-in-suspend;
|
|
|
|
regulator-mode = <ACT8865_REGULATOR_MODE_LOWPOWER>;
|
|
|
|
};
|
2013-12-24 10:35:14 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
vcc_3v3_reg: DCDC_REG3 {
|
|
|
|
regulator-name = "VCC_3V3";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
regulator-always-on;
|
|
|
|
};
|
|
|
|
|
|
|
|
vddana_reg: LDO_REG1 {
|
|
|
|
regulator-name = "VDDANA";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
regulator-always-on;
|
2019-08-14 02:32:56 +08:00
|
|
|
|
|
|
|
regulator-allowed-modes = <ACT8865_REGULATOR_MODE_NORMAL>,
|
|
|
|
<ACT8865_REGULATOR_MODE_LOWPOWER>;
|
|
|
|
regulator-initial-mode = <ACT8865_REGULATOR_MODE_NORMAL>;
|
|
|
|
|
|
|
|
regulator-state-mem {
|
|
|
|
regulator-off-in-suspend;
|
|
|
|
};
|
2013-12-24 10:35:14 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
vddfuse_reg: LDO_REG2 {
|
|
|
|
regulator-name = "FUSE_2V5";
|
|
|
|
regulator-min-microvolt = <2500000>;
|
|
|
|
regulator-max-microvolt = <2500000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|