18c2ecf20Sopenharmony_ciBinding for Maxim MAX77802 regulators 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThis is a part of device tree bindings of MAX77802 multi-function device. 48c2ecf20Sopenharmony_ciMore information can be found in bindings/mfd/max77802.txt file. 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ciThe MAX77802 PMIC has 10 high-efficiency Buck and 32 Low-dropout (LDO) 78c2ecf20Sopenharmony_ciregulators that can be controlled over I2C. 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciFollowing properties should be present in main device node of the MFD chip. 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciOptional properties: 128c2ecf20Sopenharmony_ci- inb1-supply: The input supply for BUCK1 138c2ecf20Sopenharmony_ci- inb2-supply: The input supply for BUCK2 148c2ecf20Sopenharmony_ci- inb3-supply: The input supply for BUCK3 158c2ecf20Sopenharmony_ci- inb4-supply: The input supply for BUCK4 168c2ecf20Sopenharmony_ci- inb5-supply: The input supply for BUCK5 178c2ecf20Sopenharmony_ci- inb6-supply: The input supply for BUCK6 188c2ecf20Sopenharmony_ci- inb7-supply: The input supply for BUCK7 198c2ecf20Sopenharmony_ci- inb8-supply: The input supply for BUCK8 208c2ecf20Sopenharmony_ci- inb9-supply: The input supply for BUCK9 218c2ecf20Sopenharmony_ci- inb10-supply: The input supply for BUCK10 228c2ecf20Sopenharmony_ci- inl1-supply: The input supply for LDO8 and LDO15 238c2ecf20Sopenharmony_ci- inl2-supply: The input supply for LDO17, LDO27, LDO30 and LDO35 248c2ecf20Sopenharmony_ci- inl3-supply: The input supply for LDO3, LDO5, LDO6 and LDO7 258c2ecf20Sopenharmony_ci- inl4-supply: The input supply for LDO10, LDO11, LDO13 and LDO14 268c2ecf20Sopenharmony_ci- inl5-supply: The input supply for LDO9 and LDO19 278c2ecf20Sopenharmony_ci- inl6-supply: The input supply for LDO4, LDO21, LDO24 and LDO33 288c2ecf20Sopenharmony_ci- inl7-supply: The input supply for LDO18, LDO20, LDO28 and LDO29 298c2ecf20Sopenharmony_ci- inl9-supply: The input supply for LDO12, LDO23, LDO25, LDO26, LDO32 and LDO34 308c2ecf20Sopenharmony_ci- inl10-supply: The input supply for LDO1 and LDO2 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ciOptional nodes: 338c2ecf20Sopenharmony_ci- regulators : The regulators of max77802 have to be instantiated 348c2ecf20Sopenharmony_ci under subnode named "regulators" using the following format. 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci regulator-name { 378c2ecf20Sopenharmony_ci standard regulator constraints.... 388c2ecf20Sopenharmony_ci }; 398c2ecf20Sopenharmony_ci refer Documentation/devicetree/bindings/regulator/regulator.txt 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciThe regulator node name should be initialized with a string to get matched 428c2ecf20Sopenharmony_ciwith their hardware counterparts as follow. The valid names are: 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci -LDOn : for LDOs, where n can lie in ranges 1-15, 17-21, 23-30 458c2ecf20Sopenharmony_ci and 32-35. 468c2ecf20Sopenharmony_ci example: LDO1, LDO2, LDO35. 478c2ecf20Sopenharmony_ci -BUCKn : for BUCKs, where n can lie in range 1 to 10. 488c2ecf20Sopenharmony_ci example: BUCK1, BUCK5, BUCK10. 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ciThe max77802 regulator supports two different operating modes: Normal and Low 518c2ecf20Sopenharmony_ciPower Mode. Some regulators support the modes to be changed at startup or by 528c2ecf20Sopenharmony_cithe consumers during normal operation while others only support to change the 538c2ecf20Sopenharmony_cimode during system suspend. The standard regulator suspend states binding can 548c2ecf20Sopenharmony_cibe used to configure the regulator operating mode. 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ciThe regulators that support the standard "regulator-initial-mode" property, 578c2ecf20Sopenharmony_cichanging their mode during normal operation are: LDOs 1, 3, 20 and 21. 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ciThe possible values for "regulator-initial-mode" and "regulator-mode" are: 608c2ecf20Sopenharmony_ci 1: Normal regulator voltage output mode. 618c2ecf20Sopenharmony_ci 3: Low Power which reduces the quiescent current down to only 1uA 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ciThe valid modes list is defined in the dt-bindings/regulator/maxim,max77802.h 648c2ecf20Sopenharmony_ciheader and can be included by device tree source files. 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ciThe standard "regulator-mode" property can only be used for regulators that 678c2ecf20Sopenharmony_cisupport changing their mode to Low Power Mode during suspend. These regulators 688c2ecf20Sopenharmony_ciare: BUCKs 2-4 and LDOs 1-35. Also, it only takes effect if the regulator has 698c2ecf20Sopenharmony_cibeen enabled for the given suspend state using "regulator-on-in-suspend" and 708c2ecf20Sopenharmony_cihas not been disabled for that state using "regulator-off-in-suspend". 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ciExample: 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci max77802@9 { 758c2ecf20Sopenharmony_ci compatible = "maxim,max77802"; 768c2ecf20Sopenharmony_ci interrupt-parent = <&wakeup_eint>; 778c2ecf20Sopenharmony_ci interrupts = <26 0>; 788c2ecf20Sopenharmony_ci reg = <0x09>; 798c2ecf20Sopenharmony_ci #address-cells = <1>; 808c2ecf20Sopenharmony_ci #size-cells = <0>; 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_ci inb1-supply = <&parent_reg>; 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci regulators { 858c2ecf20Sopenharmony_ci ldo1_reg: LDO1 { 868c2ecf20Sopenharmony_ci regulator-name = "vdd_1v0"; 878c2ecf20Sopenharmony_ci regulator-min-microvolt = <1000000>; 888c2ecf20Sopenharmony_ci regulator-max-microvolt = <1000000>; 898c2ecf20Sopenharmony_ci regulator-always-on; 908c2ecf20Sopenharmony_ci regulator-initial-mode = <MAX77802_OPMODE_LP>; 918c2ecf20Sopenharmony_ci }; 928c2ecf20Sopenharmony_ci 938c2ecf20Sopenharmony_ci ldo11_reg: LDO11 { 948c2ecf20Sopenharmony_ci regulator-name = "vdd_ldo11"; 958c2ecf20Sopenharmony_ci regulator-min-microvolt = <1900000>; 968c2ecf20Sopenharmony_ci regulator-max-microvolt = <1900000>; 978c2ecf20Sopenharmony_ci regulator-always-on; 988c2ecf20Sopenharmony_ci regulator-state-mem { 998c2ecf20Sopenharmony_ci regulator-on-in-suspend; 1008c2ecf20Sopenharmony_ci regulator-mode = <MAX77802_OPMODE_LP>; 1018c2ecf20Sopenharmony_ci }; 1028c2ecf20Sopenharmony_ci }; 1038c2ecf20Sopenharmony_ci 1048c2ecf20Sopenharmony_ci buck1_reg: BUCK1 { 1058c2ecf20Sopenharmony_ci regulator-name = "vdd_mif"; 1068c2ecf20Sopenharmony_ci regulator-min-microvolt = <950000>; 1078c2ecf20Sopenharmony_ci regulator-max-microvolt = <1300000>; 1088c2ecf20Sopenharmony_ci regulator-always-on; 1098c2ecf20Sopenharmony_ci regulator-boot-on; 1108c2ecf20Sopenharmony_ci }; 1118c2ecf20Sopenharmony_ci }; 112