18c2ecf20Sopenharmony_ciBinding for Samsung S2MPA01 regulator block 28c2ecf20Sopenharmony_ci=========================================== 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciThis is a part of device tree bindings for S2M family multi-function devices. 58c2ecf20Sopenharmony_ciMore information can be found in bindings/mfd/sec-core.txt file. 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciThe S2MPA01 device provide buck and LDO regulators. 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciTo register these with regulator framework instantiate under main device node 108c2ecf20Sopenharmony_cia sub-node named "regulators" with more sub-nodes for each regulator using the 118c2ecf20Sopenharmony_cicommon regulator binding documented in: 128c2ecf20Sopenharmony_ci - Documentation/devicetree/bindings/regulator/regulator.txt 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciNames of regulators supported by S2MPA01 device: 168c2ecf20Sopenharmony_ci - LDOn 178c2ecf20Sopenharmony_ci - valid values for n are 1 to 26 188c2ecf20Sopenharmony_ci - Example: LDO1, LD02, LDO26 198c2ecf20Sopenharmony_ci - BUCKn 208c2ecf20Sopenharmony_ci - valid values for n are 1 to 10. 218c2ecf20Sopenharmony_ci - Example: BUCK1, BUCK2, BUCK9 228c2ecf20Sopenharmony_ciNote: The 'n' in LDOn and BUCKn represents the LDO or BUCK number 238c2ecf20Sopenharmony_cias per the datasheet of device. 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciOptional properties of buck regulator nodes under "regulators" sub-node: 278c2ecf20Sopenharmony_ci - regulator-ramp-delay: ramp delay in uV/us. May be 6250, 12500 288c2ecf20Sopenharmony_ci (default), 25000, or 50000. May be 0 for disabling the ramp delay on 298c2ecf20Sopenharmony_ci BUCK{1,2,3,4}. 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci In the absence of the regulator-ramp-delay property, the default ramp 328c2ecf20Sopenharmony_ci delay will be used. 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci Note: Some bucks share the ramp rate setting i.e. same ramp value 358c2ecf20Sopenharmony_ci will be set for a particular group of bucks so provide the same 368c2ecf20Sopenharmony_ci regulator-ramp-delay value for them. 378c2ecf20Sopenharmony_ci Groups sharing ramp rate: 388c2ecf20Sopenharmony_ci - buck{1,6}, 398c2ecf20Sopenharmony_ci - buck{2,4}, 408c2ecf20Sopenharmony_ci - buck{8,9,10}. 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ciExample: 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci s2mpa01_pmic@66 { 458c2ecf20Sopenharmony_ci compatible = "samsung,s2mpa01-pmic"; 468c2ecf20Sopenharmony_ci reg = <0x66>; 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci regulators { 498c2ecf20Sopenharmony_ci ldo1_reg: LDO1 { 508c2ecf20Sopenharmony_ci regulator-name = "VDD_ALIVE"; 518c2ecf20Sopenharmony_ci regulator-min-microvolt = <1000000>; 528c2ecf20Sopenharmony_ci regulator-max-microvolt = <1000000>; 538c2ecf20Sopenharmony_ci }; 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci ldo2_reg: LDO2 { 568c2ecf20Sopenharmony_ci regulator-name = "VDDQ_MMC2"; 578c2ecf20Sopenharmony_ci regulator-min-microvolt = <2800000>; 588c2ecf20Sopenharmony_ci regulator-max-microvolt = <2800000>; 598c2ecf20Sopenharmony_ci regulator-always-on; 608c2ecf20Sopenharmony_ci }; 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci buck1_reg: BUCK1 { 638c2ecf20Sopenharmony_ci regulator-name = "vdd_mif"; 648c2ecf20Sopenharmony_ci regulator-min-microvolt = <950000>; 658c2ecf20Sopenharmony_ci regulator-max-microvolt = <1350000>; 668c2ecf20Sopenharmony_ci regulator-always-on; 678c2ecf20Sopenharmony_ci regulator-boot-on; 688c2ecf20Sopenharmony_ci }; 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ci buck2_reg: BUCK2 { 718c2ecf20Sopenharmony_ci regulator-name = "vdd_arm"; 728c2ecf20Sopenharmony_ci regulator-min-microvolt = <950000>; 738c2ecf20Sopenharmony_ci regulator-max-microvolt = <1350000>; 748c2ecf20Sopenharmony_ci regulator-always-on; 758c2ecf20Sopenharmony_ci regulator-boot-on; 768c2ecf20Sopenharmony_ci regulator-ramp-delay = <50000>; 778c2ecf20Sopenharmony_ci }; 788c2ecf20Sopenharmony_ci }; 798c2ecf20Sopenharmony_ci }; 80