1*c66ec88fSEmmanuel VadotBinding for Samsung S2MPA01 regulator block 2*c66ec88fSEmmanuel Vadot=========================================== 3*c66ec88fSEmmanuel Vadot 4*c66ec88fSEmmanuel VadotThis is a part of device tree bindings for S2M family multi-function devices. 5*c66ec88fSEmmanuel VadotMore information can be found in bindings/mfd/sec-core.txt file. 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel VadotThe S2MPA01 device provide buck and LDO regulators. 8*c66ec88fSEmmanuel Vadot 9*c66ec88fSEmmanuel VadotTo register these with regulator framework instantiate under main device node 10*c66ec88fSEmmanuel Vadota sub-node named "regulators" with more sub-nodes for each regulator using the 11*c66ec88fSEmmanuel Vadotcommon regulator binding documented in: 12*c66ec88fSEmmanuel Vadot - Documentation/devicetree/bindings/regulator/regulator.txt 13*c66ec88fSEmmanuel Vadot 14*c66ec88fSEmmanuel Vadot 15*c66ec88fSEmmanuel VadotNames of regulators supported by S2MPA01 device: 16*c66ec88fSEmmanuel Vadot - LDOn 17*c66ec88fSEmmanuel Vadot - valid values for n are 1 to 26 18*c66ec88fSEmmanuel Vadot - Example: LDO1, LD02, LDO26 19*c66ec88fSEmmanuel Vadot - BUCKn 20*c66ec88fSEmmanuel Vadot - valid values for n are 1 to 10. 21*c66ec88fSEmmanuel Vadot - Example: BUCK1, BUCK2, BUCK9 22*c66ec88fSEmmanuel VadotNote: The 'n' in LDOn and BUCKn represents the LDO or BUCK number 23*c66ec88fSEmmanuel Vadotas per the datasheet of device. 24*c66ec88fSEmmanuel Vadot 25*c66ec88fSEmmanuel Vadot 26*c66ec88fSEmmanuel VadotOptional properties of buck regulator nodes under "regulators" sub-node: 27*c66ec88fSEmmanuel Vadot - regulator-ramp-delay: ramp delay in uV/us. May be 6250, 12500 28*c66ec88fSEmmanuel Vadot (default), 25000, or 50000. May be 0 for disabling the ramp delay on 29*c66ec88fSEmmanuel Vadot BUCK{1,2,3,4}. 30*c66ec88fSEmmanuel Vadot 31*c66ec88fSEmmanuel Vadot In the absence of the regulator-ramp-delay property, the default ramp 32*c66ec88fSEmmanuel Vadot delay will be used. 33*c66ec88fSEmmanuel Vadot 34*c66ec88fSEmmanuel Vadot Note: Some bucks share the ramp rate setting i.e. same ramp value 35*c66ec88fSEmmanuel Vadot will be set for a particular group of bucks so provide the same 36*c66ec88fSEmmanuel Vadot regulator-ramp-delay value for them. 37*c66ec88fSEmmanuel Vadot Groups sharing ramp rate: 38*c66ec88fSEmmanuel Vadot - buck{1,6}, 39*c66ec88fSEmmanuel Vadot - buck{2,4}, 40*c66ec88fSEmmanuel Vadot - buck{8,9,10}. 41*c66ec88fSEmmanuel Vadot 42*c66ec88fSEmmanuel VadotExample: 43*c66ec88fSEmmanuel Vadot 44*c66ec88fSEmmanuel Vadot s2mpa01_pmic@66 { 45*c66ec88fSEmmanuel Vadot compatible = "samsung,s2mpa01-pmic"; 46*c66ec88fSEmmanuel Vadot reg = <0x66>; 47*c66ec88fSEmmanuel Vadot 48*c66ec88fSEmmanuel Vadot regulators { 49*c66ec88fSEmmanuel Vadot ldo1_reg: LDO1 { 50*c66ec88fSEmmanuel Vadot regulator-name = "VDD_ALIVE"; 51*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <1000000>; 52*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1000000>; 53*c66ec88fSEmmanuel Vadot }; 54*c66ec88fSEmmanuel Vadot 55*c66ec88fSEmmanuel Vadot ldo2_reg: LDO2 { 56*c66ec88fSEmmanuel Vadot regulator-name = "VDDQ_MMC2"; 57*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <2800000>; 58*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <2800000>; 59*c66ec88fSEmmanuel Vadot regulator-always-on; 60*c66ec88fSEmmanuel Vadot }; 61*c66ec88fSEmmanuel Vadot 62*c66ec88fSEmmanuel Vadot buck1_reg: BUCK1 { 63*c66ec88fSEmmanuel Vadot regulator-name = "vdd_mif"; 64*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <950000>; 65*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1350000>; 66*c66ec88fSEmmanuel Vadot regulator-always-on; 67*c66ec88fSEmmanuel Vadot regulator-boot-on; 68*c66ec88fSEmmanuel Vadot }; 69*c66ec88fSEmmanuel Vadot 70*c66ec88fSEmmanuel Vadot buck2_reg: BUCK2 { 71*c66ec88fSEmmanuel Vadot regulator-name = "vdd_arm"; 72*c66ec88fSEmmanuel Vadot regulator-min-microvolt = <950000>; 73*c66ec88fSEmmanuel Vadot regulator-max-microvolt = <1350000>; 74*c66ec88fSEmmanuel Vadot regulator-always-on; 75*c66ec88fSEmmanuel Vadot regulator-boot-on; 76*c66ec88fSEmmanuel Vadot regulator-ramp-delay = <50000>; 77*c66ec88fSEmmanuel Vadot }; 78*c66ec88fSEmmanuel Vadot }; 79*c66ec88fSEmmanuel Vadot }; 80