1*4882a593SmuzhiyunBinding for Maxim MAX77802 regulators 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunThis is a part of device tree bindings of MAX77802 multi-function device. 4*4882a593SmuzhiyunMore information can be found in bindings/mfd/max77802.txt file. 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunThe MAX77802 PMIC has 10 high-efficiency Buck and 32 Low-dropout (LDO) 7*4882a593Smuzhiyunregulators that can be controlled over I2C. 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunFollowing properties should be present in main device node of the MFD chip. 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunOptional properties: 12*4882a593Smuzhiyun- inb1-supply: The input supply for BUCK1 13*4882a593Smuzhiyun- inb2-supply: The input supply for BUCK2 14*4882a593Smuzhiyun- inb3-supply: The input supply for BUCK3 15*4882a593Smuzhiyun- inb4-supply: The input supply for BUCK4 16*4882a593Smuzhiyun- inb5-supply: The input supply for BUCK5 17*4882a593Smuzhiyun- inb6-supply: The input supply for BUCK6 18*4882a593Smuzhiyun- inb7-supply: The input supply for BUCK7 19*4882a593Smuzhiyun- inb8-supply: The input supply for BUCK8 20*4882a593Smuzhiyun- inb9-supply: The input supply for BUCK9 21*4882a593Smuzhiyun- inb10-supply: The input supply for BUCK10 22*4882a593Smuzhiyun- inl1-supply: The input supply for LDO8 and LDO15 23*4882a593Smuzhiyun- inl2-supply: The input supply for LDO17, LDO27, LDO30 and LDO35 24*4882a593Smuzhiyun- inl3-supply: The input supply for LDO3, LDO5, LDO6 and LDO7 25*4882a593Smuzhiyun- inl4-supply: The input supply for LDO10, LDO11, LDO13 and LDO14 26*4882a593Smuzhiyun- inl5-supply: The input supply for LDO9 and LDO19 27*4882a593Smuzhiyun- inl6-supply: The input supply for LDO4, LDO21, LDO24 and LDO33 28*4882a593Smuzhiyun- inl7-supply: The input supply for LDO18, LDO20, LDO28 and LDO29 29*4882a593Smuzhiyun- inl9-supply: The input supply for LDO12, LDO23, LDO25, LDO26, LDO32 and LDO34 30*4882a593Smuzhiyun- inl10-supply: The input supply for LDO1 and LDO2 31*4882a593Smuzhiyun 32*4882a593SmuzhiyunOptional nodes: 33*4882a593Smuzhiyun- regulators : The regulators of max77802 have to be instantiated 34*4882a593Smuzhiyun under subnode named "regulators" using the following format. 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun regulator-name { 37*4882a593Smuzhiyun standard regulator constraints.... 38*4882a593Smuzhiyun }; 39*4882a593Smuzhiyun refer Documentation/devicetree/bindings/regulator/regulator.txt 40*4882a593Smuzhiyun 41*4882a593SmuzhiyunThe regulator node name should be initialized with a string to get matched 42*4882a593Smuzhiyunwith their hardware counterparts as follow. The valid names are: 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun -LDOn : for LDOs, where n can lie in ranges 1-15, 17-21, 23-30 45*4882a593Smuzhiyun and 32-35. 46*4882a593Smuzhiyun example: LDO1, LDO2, LDO35. 47*4882a593Smuzhiyun -BUCKn : for BUCKs, where n can lie in range 1 to 10. 48*4882a593Smuzhiyun example: BUCK1, BUCK5, BUCK10. 49*4882a593Smuzhiyun 50*4882a593SmuzhiyunThe max77802 regulator supports two different operating modes: Normal and Low 51*4882a593SmuzhiyunPower Mode. Some regulators support the modes to be changed at startup or by 52*4882a593Smuzhiyunthe consumers during normal operation while others only support to change the 53*4882a593Smuzhiyunmode during system suspend. The standard regulator suspend states binding can 54*4882a593Smuzhiyunbe used to configure the regulator operating mode. 55*4882a593Smuzhiyun 56*4882a593SmuzhiyunThe regulators that support the standard "regulator-initial-mode" property, 57*4882a593Smuzhiyunchanging their mode during normal operation are: LDOs 1, 3, 20 and 21. 58*4882a593Smuzhiyun 59*4882a593SmuzhiyunThe possible values for "regulator-initial-mode" and "regulator-mode" are: 60*4882a593Smuzhiyun 1: Normal regulator voltage output mode. 61*4882a593Smuzhiyun 3: Low Power which reduces the quiescent current down to only 1uA 62*4882a593Smuzhiyun 63*4882a593SmuzhiyunThe valid modes list is defined in the dt-bindings/regulator/maxim,max77802.h 64*4882a593Smuzhiyunheader and can be included by device tree source files. 65*4882a593Smuzhiyun 66*4882a593SmuzhiyunThe standard "regulator-mode" property can only be used for regulators that 67*4882a593Smuzhiyunsupport changing their mode to Low Power Mode during suspend. These regulators 68*4882a593Smuzhiyunare: BUCKs 2-4 and LDOs 1-35. Also, it only takes effect if the regulator has 69*4882a593Smuzhiyunbeen enabled for the given suspend state using "regulator-on-in-suspend" and 70*4882a593Smuzhiyunhas not been disabled for that state using "regulator-off-in-suspend". 71*4882a593Smuzhiyun 72*4882a593SmuzhiyunExample: 73*4882a593Smuzhiyun 74*4882a593Smuzhiyun max77802@9 { 75*4882a593Smuzhiyun compatible = "maxim,max77802"; 76*4882a593Smuzhiyun interrupt-parent = <&wakeup_eint>; 77*4882a593Smuzhiyun interrupts = <26 0>; 78*4882a593Smuzhiyun reg = <0x09>; 79*4882a593Smuzhiyun #address-cells = <1>; 80*4882a593Smuzhiyun #size-cells = <0>; 81*4882a593Smuzhiyun 82*4882a593Smuzhiyun inb1-supply = <&parent_reg>; 83*4882a593Smuzhiyun 84*4882a593Smuzhiyun regulators { 85*4882a593Smuzhiyun ldo1_reg: LDO1 { 86*4882a593Smuzhiyun regulator-name = "vdd_1v0"; 87*4882a593Smuzhiyun regulator-min-microvolt = <1000000>; 88*4882a593Smuzhiyun regulator-max-microvolt = <1000000>; 89*4882a593Smuzhiyun regulator-always-on; 90*4882a593Smuzhiyun regulator-initial-mode = <MAX77802_OPMODE_LP>; 91*4882a593Smuzhiyun }; 92*4882a593Smuzhiyun 93*4882a593Smuzhiyun ldo11_reg: LDO11 { 94*4882a593Smuzhiyun regulator-name = "vdd_ldo11"; 95*4882a593Smuzhiyun regulator-min-microvolt = <1900000>; 96*4882a593Smuzhiyun regulator-max-microvolt = <1900000>; 97*4882a593Smuzhiyun regulator-always-on; 98*4882a593Smuzhiyun regulator-state-mem { 99*4882a593Smuzhiyun regulator-on-in-suspend; 100*4882a593Smuzhiyun regulator-mode = <MAX77802_OPMODE_LP>; 101*4882a593Smuzhiyun }; 102*4882a593Smuzhiyun }; 103*4882a593Smuzhiyun 104*4882a593Smuzhiyun buck1_reg: BUCK1 { 105*4882a593Smuzhiyun regulator-name = "vdd_mif"; 106*4882a593Smuzhiyun regulator-min-microvolt = <950000>; 107*4882a593Smuzhiyun regulator-max-microvolt = <1300000>; 108*4882a593Smuzhiyun regulator-always-on; 109*4882a593Smuzhiyun regulator-boot-on; 110*4882a593Smuzhiyun }; 111*4882a593Smuzhiyun }; 112