18c2ecf20Sopenharmony_ciACT88xx regulators 28c2ecf20Sopenharmony_ci------------------- 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciRequired properties: 58c2ecf20Sopenharmony_ci- compatible: "active-semi,act8846" or "active-semi,act8865" or "active-semi,act8600" 68c2ecf20Sopenharmony_ci- reg: I2C slave address 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciOptional properties: 98c2ecf20Sopenharmony_ci- system-power-controller: Telling whether or not this pmic is controlling 108c2ecf20Sopenharmony_ci the system power. See Documentation/devicetree/bindings/power/power-controller.txt . 118c2ecf20Sopenharmony_ci- active-semi,vsel-high: Indicates the VSEL pin is high. 128c2ecf20Sopenharmony_ci If this property is missing, assume the VSEL pin is low(0). 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ciOptional input supply properties: 158c2ecf20Sopenharmony_ci- for act8600: 168c2ecf20Sopenharmony_ci - vp1-supply: The input supply for DCDC_REG1 178c2ecf20Sopenharmony_ci - vp2-supply: The input supply for DCDC_REG2 188c2ecf20Sopenharmony_ci - vp3-supply: The input supply for DCDC_REG3 198c2ecf20Sopenharmony_ci - inl-supply: The input supply for LDO_REG5, LDO_REG6, LDO_REG7 and LDO_REG8 208c2ecf20Sopenharmony_ci SUDCDC_REG4, LDO_REG9 and LDO_REG10 do not have separate supplies. 218c2ecf20Sopenharmony_ci- for act8846: 228c2ecf20Sopenharmony_ci - vp1-supply: The input supply for REG1 238c2ecf20Sopenharmony_ci - vp2-supply: The input supply for REG2 248c2ecf20Sopenharmony_ci - vp3-supply: The input supply for REG3 258c2ecf20Sopenharmony_ci - vp4-supply: The input supply for REG4 268c2ecf20Sopenharmony_ci - inl1-supply: The input supply for REG5, REG6 and REG7 278c2ecf20Sopenharmony_ci - inl2-supply: The input supply for REG8 and LDO_REG9 288c2ecf20Sopenharmony_ci - inl3-supply: The input supply for REG10, REG11 and REG12 298c2ecf20Sopenharmony_ci- for act8865: 308c2ecf20Sopenharmony_ci - vp1-supply: The input supply for DCDC_REG1 318c2ecf20Sopenharmony_ci - vp2-supply: The input supply for DCDC_REG2 328c2ecf20Sopenharmony_ci - vp3-supply: The input supply for DCDC_REG3 338c2ecf20Sopenharmony_ci - inl45-supply: The input supply for LDO_REG1 and LDO_REG2 348c2ecf20Sopenharmony_ci - inl67-supply: The input supply for LDO_REG3 and LDO_REG4 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ciAny standard regulator properties can be used to configure the single regulator. 378c2ecf20Sopenharmony_ciregulator-initial-mode, regulator-allowed-modes and regulator-mode could be specified 388c2ecf20Sopenharmony_cifor act8865 using mode values from dt-bindings/regulator/active-semi,8865-regulator.h 398c2ecf20Sopenharmony_cifile. 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciThe valid names for regulators are: 428c2ecf20Sopenharmony_ci - for act8846: 438c2ecf20Sopenharmony_ci REG1, REG2, REG3, REG4, REG5, REG6, REG7, REG8, REG9, REG10, REG11, REG12 448c2ecf20Sopenharmony_ci - for act8865: 458c2ecf20Sopenharmony_ci DCDC_REG1, DCDC_REG2, DCDC_REG3, LDO_REG1, LDO_REG2, LDO_REG3, LDO_REG4. 468c2ecf20Sopenharmony_ci - for act8600: 478c2ecf20Sopenharmony_ci DCDC_REG1, DCDC_REG2, DCDC_REG3, SUDCDC_REG4, LDO_REG5, LDO_REG6, LDO_REG7, 488c2ecf20Sopenharmony_ci LDO_REG8, LDO_REG9, LDO_REG10, 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ciExample: 518c2ecf20Sopenharmony_ci-------- 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci#include <dt-bindings/regulator/active-semi,8865-regulator.h> 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci i2c1: i2c@f0018000 { 568c2ecf20Sopenharmony_ci pmic: act8865@5b { 578c2ecf20Sopenharmony_ci compatible = "active-semi,act8865"; 588c2ecf20Sopenharmony_ci reg = <0x5b>; 598c2ecf20Sopenharmony_ci active-semi,vsel-high; 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci regulators { 628c2ecf20Sopenharmony_ci vcc_1v8_reg: DCDC_REG1 { 638c2ecf20Sopenharmony_ci regulator-name = "VCC_1V8"; 648c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 658c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 668c2ecf20Sopenharmony_ci regulator-always-on; 678c2ecf20Sopenharmony_ci }; 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci vcc_1v2_reg: DCDC_REG2 { 708c2ecf20Sopenharmony_ci regulator-name = "VCC_1V2"; 718c2ecf20Sopenharmony_ci regulator-min-microvolt = <1100000>; 728c2ecf20Sopenharmony_ci regulator-max-microvolt = <1300000>; 738c2ecf20Sopenharmony_ci regulator-always-on; 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ci regulator-allowed-modes = <ACT8865_REGULATOR_MODE_FIXED>, 768c2ecf20Sopenharmony_ci <ACT8865_REGULATOR_MODE_LOWPOWER>; 778c2ecf20Sopenharmony_ci regulator-initial-mode = <ACT8865_REGULATOR_MODE_FIXED>; 788c2ecf20Sopenharmony_ci 798c2ecf20Sopenharmony_ci regulator-state-mem { 808c2ecf20Sopenharmony_ci regulator-on-in-suspend; 818c2ecf20Sopenharmony_ci regulator-suspend-min-microvolt = <1150000>; 828c2ecf20Sopenharmony_ci regulator-suspend-max-microvolt = <1150000>; 838c2ecf20Sopenharmony_ci regulator-changeable-in-suspend; 848c2ecf20Sopenharmony_ci regulator-mode = <ACT8865_REGULATOR_MODE_LOWPOWER>; 858c2ecf20Sopenharmony_ci }; 868c2ecf20Sopenharmony_ci }; 878c2ecf20Sopenharmony_ci 888c2ecf20Sopenharmony_ci vcc_3v3_reg: DCDC_REG3 { 898c2ecf20Sopenharmony_ci regulator-name = "VCC_3V3"; 908c2ecf20Sopenharmony_ci regulator-min-microvolt = <3300000>; 918c2ecf20Sopenharmony_ci regulator-max-microvolt = <3300000>; 928c2ecf20Sopenharmony_ci regulator-always-on; 938c2ecf20Sopenharmony_ci }; 948c2ecf20Sopenharmony_ci 958c2ecf20Sopenharmony_ci vddana_reg: LDO_REG1 { 968c2ecf20Sopenharmony_ci regulator-name = "VDDANA"; 978c2ecf20Sopenharmony_ci regulator-min-microvolt = <3300000>; 988c2ecf20Sopenharmony_ci regulator-max-microvolt = <3300000>; 998c2ecf20Sopenharmony_ci regulator-always-on; 1008c2ecf20Sopenharmony_ci 1018c2ecf20Sopenharmony_ci regulator-allowed-modes = <ACT8865_REGULATOR_MODE_NORMAL>, 1028c2ecf20Sopenharmony_ci <ACT8865_REGULATOR_MODE_LOWPOWER>; 1038c2ecf20Sopenharmony_ci regulator-initial-mode = <ACT8865_REGULATOR_MODE_NORMAL>; 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci regulator-state-mem { 1068c2ecf20Sopenharmony_ci regulator-off-in-suspend; 1078c2ecf20Sopenharmony_ci }; 1088c2ecf20Sopenharmony_ci }; 1098c2ecf20Sopenharmony_ci 1108c2ecf20Sopenharmony_ci vddfuse_reg: LDO_REG2 { 1118c2ecf20Sopenharmony_ci regulator-name = "FUSE_2V5"; 1128c2ecf20Sopenharmony_ci regulator-min-microvolt = <2500000>; 1138c2ecf20Sopenharmony_ci regulator-max-microvolt = <2500000>; 1148c2ecf20Sopenharmony_ci }; 1158c2ecf20Sopenharmony_ci }; 1168c2ecf20Sopenharmony_ci }; 1178c2ecf20Sopenharmony_ci }; 118