18c2ecf20Sopenharmony_ciDevice-Tree bindings for regulators of Active-semi ACT8945A Multi-Function Device 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci - compatible: "active-semi,act8945a", please refer to ../mfd/act8945a.txt. 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ciOptional properties: 78c2ecf20Sopenharmony_ci- active-semi,vsel-high: Indicates if the VSEL pin is set to logic-high. 88c2ecf20Sopenharmony_ci If this property is missing, assume the VSEL pin is set to logic-low. 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciOptional input supply properties: 118c2ecf20Sopenharmony_ci - vp1-supply: The input supply for REG_DCDC1 128c2ecf20Sopenharmony_ci - vp2-supply: The input supply for REG_DCDC2 138c2ecf20Sopenharmony_ci - vp3-supply: The input supply for REG_DCDC3 148c2ecf20Sopenharmony_ci - inl45-supply: The input supply for REG_LDO1 and REG_LDO2 158c2ecf20Sopenharmony_ci - inl67-supply: The input supply for REG_LDO3 and REG_LDO4 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciAny standard regulator properties can be used to configure the single regulator. 188c2ecf20Sopenharmony_ciregulator-initial-mode, regulator-allowed-modes and regulator-mode could be 198c2ecf20Sopenharmony_cispecified using mode values from dt-bindings/regulator/active-semi,8945a-regulator.h 208c2ecf20Sopenharmony_cifile. 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciThe valid names for regulators are: 238c2ecf20Sopenharmony_ci REG_DCDC1, REG_DCDC2, REG_DCDC3, REG_LDO1, REG_LDO2, REG_LDO3, REG_LDO4. 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciExample: 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#include <dt-bindings/regulator/active-semi,8945a-regulator.h> 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci pmic@5b { 308c2ecf20Sopenharmony_ci compatible = "active-semi,act8945a"; 318c2ecf20Sopenharmony_ci reg = <0x5b>; 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci active-semi,vsel-high; 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci regulators { 368c2ecf20Sopenharmony_ci vdd_1v35_reg: REG_DCDC1 { 378c2ecf20Sopenharmony_ci regulator-name = "VDD_1V35"; 388c2ecf20Sopenharmony_ci regulator-min-microvolt = <1350000>; 398c2ecf20Sopenharmony_ci regulator-max-microvolt = <1350000>; 408c2ecf20Sopenharmony_ci regulator-always-on; 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ci regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>, 438c2ecf20Sopenharmony_ci <ACT8945A_REGULATOR_MODE_LOWPOWER>; 448c2ecf20Sopenharmony_ci regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>; 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci regulator-state-mem { 478c2ecf20Sopenharmony_ci regulator-on-in-suspend; 488c2ecf20Sopenharmony_ci regulator-suspend-min-microvolt=<1400000>; 498c2ecf20Sopenharmony_ci regulator-suspend-max-microvolt=<1400000>; 508c2ecf20Sopenharmony_ci regulator-changeable-in-suspend; 518c2ecf20Sopenharmony_ci regulator-mode=<ACT8945A_REGULATOR_MODE_LOWPOWER>; 528c2ecf20Sopenharmony_ci }; 538c2ecf20Sopenharmony_ci }; 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci vdd_1v2_reg: REG_DCDC2 { 568c2ecf20Sopenharmony_ci regulator-name = "VDD_1V2"; 578c2ecf20Sopenharmony_ci regulator-min-microvolt = <1100000>; 588c2ecf20Sopenharmony_ci regulator-max-microvolt = <1300000>; 598c2ecf20Sopenharmony_ci regulator-always-on; 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_ci regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>, 628c2ecf20Sopenharmony_ci <ACT8945A_REGULATOR_MODE_LOWPOWER>; 638c2ecf20Sopenharmony_ci regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>; 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci regulator-state-mem { 668c2ecf20Sopenharmony_ci regulator-off-in-suspend; 678c2ecf20Sopenharmony_ci }; 688c2ecf20Sopenharmony_ci }; 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ci vdd_3v3_reg: REG_DCDC3 { 718c2ecf20Sopenharmony_ci regulator-name = "VDD_3V3"; 728c2ecf20Sopenharmony_ci regulator-min-microvolt = <3300000>; 738c2ecf20Sopenharmony_ci regulator-max-microvolt = <3300000>; 748c2ecf20Sopenharmony_ci regulator-always-on; 758c2ecf20Sopenharmony_ci }; 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ci vdd_fuse_reg: REG_LDO1 { 788c2ecf20Sopenharmony_ci regulator-name = "VDD_FUSE"; 798c2ecf20Sopenharmony_ci regulator-min-microvolt = <2500000>; 808c2ecf20Sopenharmony_ci regulator-max-microvolt = <2500000>; 818c2ecf20Sopenharmony_ci regulator-always-on; 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>, 848c2ecf20Sopenharmony_ci <ACT8945A_REGULATOR_MODE_LOWPOWER>; 858c2ecf20Sopenharmony_ci regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>; 868c2ecf20Sopenharmony_ci 878c2ecf20Sopenharmony_ci regulator-state-mem { 888c2ecf20Sopenharmony_ci regulator-off-in-suspend; 898c2ecf20Sopenharmony_ci }; 908c2ecf20Sopenharmony_ci }; 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ci vdd_3v3_lp_reg: REG_LDO2 { 938c2ecf20Sopenharmony_ci regulator-name = "VDD_3V3_LP"; 948c2ecf20Sopenharmony_ci regulator-min-microvolt = <3300000>; 958c2ecf20Sopenharmony_ci regulator-max-microvolt = <3300000>; 968c2ecf20Sopenharmony_ci regulator-always-on; 978c2ecf20Sopenharmony_ci }; 988c2ecf20Sopenharmony_ci 998c2ecf20Sopenharmony_ci vdd_led_reg: REG_LDO3 { 1008c2ecf20Sopenharmony_ci regulator-name = "VDD_LED"; 1018c2ecf20Sopenharmony_ci regulator-min-microvolt = <3300000>; 1028c2ecf20Sopenharmony_ci regulator-max-microvolt = <3300000>; 1038c2ecf20Sopenharmony_ci regulator-always-on; 1048c2ecf20Sopenharmony_ci }; 1058c2ecf20Sopenharmony_ci 1068c2ecf20Sopenharmony_ci vdd_sdhc_1v8_reg: REG_LDO4 { 1078c2ecf20Sopenharmony_ci regulator-name = "VDD_SDHC_1V8"; 1088c2ecf20Sopenharmony_ci regulator-min-microvolt = <1800000>; 1098c2ecf20Sopenharmony_ci regulator-max-microvolt = <1800000>; 1108c2ecf20Sopenharmony_ci regulator-always-on; 1118c2ecf20Sopenharmony_ci }; 1128c2ecf20Sopenharmony_ci }; 1138c2ecf20Sopenharmony_ci }; 114