1*4882a593SmuzhiyunBinding for Maxim MAX77686 regulators 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunThis is a part of the device tree bindings of MAX77686 multi-function device. 4*4882a593SmuzhiyunMore information can be found in ../mfd/max77686.txt file. 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunThe MAX77686 PMIC has 9 high-efficiency Buck and 26 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 node: 12*4882a593Smuzhiyun- voltage-regulators : The regulators of max77686 have to be instantiated 13*4882a593Smuzhiyun under subnode named "voltage-regulators" using the following format. 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun regulator_name { 16*4882a593Smuzhiyun regulator-compatible = LDOn/BUCKn 17*4882a593Smuzhiyun standard regulator constraints.... 18*4882a593Smuzhiyun }; 19*4882a593Smuzhiyun refer Documentation/devicetree/bindings/regulator/regulator.txt 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun The regulator node's name should be initialized with a string 22*4882a593Smuzhiyunto get matched with their hardware counterparts as follow: 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun -LDOn : for LDOs, where n can lie in range 1 to 26. 25*4882a593Smuzhiyun example: LDO1, LDO2, LDO26. 26*4882a593Smuzhiyun -BUCKn : for BUCKs, where n can lie in range 1 to 9. 27*4882a593Smuzhiyun example: BUCK1, BUCK5, BUCK9. 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun Regulators which can be turned off during system suspend: 30*4882a593Smuzhiyun -LDOn : 2, 6-8, 10-12, 14-16, 31*4882a593Smuzhiyun -BUCKn : 1-4. 32*4882a593Smuzhiyun Use standard regulator bindings for it ('regulator-off-in-suspend'). 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun LDO20, LDO21, LDO22, BUCK8 and BUCK9 can be configured to GPIO enable 35*4882a593Smuzhiyun control. To turn this feature on this property must be added to the regulator 36*4882a593Smuzhiyun sub-node: 37*4882a593Smuzhiyun - maxim,ena-gpios : one GPIO specifier enable control (the gpio 38*4882a593Smuzhiyun flags are actually ignored and always 39*4882a593Smuzhiyun ACTIVE_HIGH is used) 40*4882a593Smuzhiyun 41*4882a593SmuzhiyunExample: 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun max77686: pmic@9 { 44*4882a593Smuzhiyun compatible = "maxim,max77686"; 45*4882a593Smuzhiyun interrupt-parent = <&wakeup_eint>; 46*4882a593Smuzhiyun interrupts = <26 IRQ_TYPE_NONE>; 47*4882a593Smuzhiyun reg = <0x09>; 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun voltage-regulators { 50*4882a593Smuzhiyun ldo11_reg: LDO11 { 51*4882a593Smuzhiyun regulator-name = "vdd_ldo11"; 52*4882a593Smuzhiyun regulator-min-microvolt = <1900000>; 53*4882a593Smuzhiyun regulator-max-microvolt = <1900000>; 54*4882a593Smuzhiyun regulator-always-on; 55*4882a593Smuzhiyun }; 56*4882a593Smuzhiyun 57*4882a593Smuzhiyun buck1_reg: BUCK1 { 58*4882a593Smuzhiyun regulator-name = "vdd_mif"; 59*4882a593Smuzhiyun regulator-min-microvolt = <950000>; 60*4882a593Smuzhiyun regulator-max-microvolt = <1300000>; 61*4882a593Smuzhiyun regulator-always-on; 62*4882a593Smuzhiyun regulator-boot-on; 63*4882a593Smuzhiyun }; 64*4882a593Smuzhiyun 65*4882a593Smuzhiyun buck9_reg: BUCK9 { 66*4882a593Smuzhiyun regulator-name = "CAM_ISP_CORE_1.2V"; 67*4882a593Smuzhiyun regulator-min-microvolt = <1000000>; 68*4882a593Smuzhiyun regulator-max-microvolt = <1200000>; 69*4882a593Smuzhiyun maxim,ena-gpios = <&gpm0 3 GPIO_ACTIVE_HIGH>; 70*4882a593Smuzhiyun }; 71*4882a593Smuzhiyun }; 72