1 /* SPDX-License-Identifier: GPL-2.0+ */ << 2 /* 1 /* 3 * max77686.h - Driver for the Maxim 77686/802 2 * max77686.h - Driver for the Maxim 77686/802 4 * 3 * 5 * Copyright (C) 2012 Samsung Electrnoics 4 * Copyright (C) 2012 Samsung Electrnoics 6 * Chiwoong Byun <woong.byun@samsung.com> 5 * Chiwoong Byun <woong.byun@samsung.com> >> 6 * >> 7 * This program is free software; you can redistribute it and/or modify >> 8 * it under the terms of the GNU General Public License as published by >> 9 * the Free Software Foundation; either version 2 of the License, or >> 10 * (at your option) any later version. >> 11 * >> 12 * This program is distributed in the hope that it will be useful, >> 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of >> 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> 15 * GNU General Public License for more details. >> 16 * >> 17 * You should have received a copy of the GNU General Public License >> 18 * along with this program; if not, write to the Free Software >> 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 7 * 20 * 8 * This driver is based on max8997.h 21 * This driver is based on max8997.h 9 * 22 * 10 * MAX77686 has PMIC, RTC devices. 23 * MAX77686 has PMIC, RTC devices. 11 * The devices share the same I2C bus and incl 24 * The devices share the same I2C bus and included in 12 * this mfd driver. 25 * this mfd driver. 13 */ 26 */ 14 27 15 #ifndef __LINUX_MFD_MAX77686_H 28 #ifndef __LINUX_MFD_MAX77686_H 16 #define __LINUX_MFD_MAX77686_H 29 #define __LINUX_MFD_MAX77686_H 17 30 18 #include <linux/regulator/consumer.h> 31 #include <linux/regulator/consumer.h> 19 32 20 /* MAX77686 regulator IDs */ 33 /* MAX77686 regulator IDs */ 21 enum max77686_regulators { 34 enum max77686_regulators { 22 MAX77686_LDO1 = 0, 35 MAX77686_LDO1 = 0, 23 MAX77686_LDO2, 36 MAX77686_LDO2, 24 MAX77686_LDO3, 37 MAX77686_LDO3, 25 MAX77686_LDO4, 38 MAX77686_LDO4, 26 MAX77686_LDO5, 39 MAX77686_LDO5, 27 MAX77686_LDO6, 40 MAX77686_LDO6, 28 MAX77686_LDO7, 41 MAX77686_LDO7, 29 MAX77686_LDO8, 42 MAX77686_LDO8, 30 MAX77686_LDO9, 43 MAX77686_LDO9, 31 MAX77686_LDO10, 44 MAX77686_LDO10, 32 MAX77686_LDO11, 45 MAX77686_LDO11, 33 MAX77686_LDO12, 46 MAX77686_LDO12, 34 MAX77686_LDO13, 47 MAX77686_LDO13, 35 MAX77686_LDO14, 48 MAX77686_LDO14, 36 MAX77686_LDO15, 49 MAX77686_LDO15, 37 MAX77686_LDO16, 50 MAX77686_LDO16, 38 MAX77686_LDO17, 51 MAX77686_LDO17, 39 MAX77686_LDO18, 52 MAX77686_LDO18, 40 MAX77686_LDO19, 53 MAX77686_LDO19, 41 MAX77686_LDO20, 54 MAX77686_LDO20, 42 MAX77686_LDO21, 55 MAX77686_LDO21, 43 MAX77686_LDO22, 56 MAX77686_LDO22, 44 MAX77686_LDO23, 57 MAX77686_LDO23, 45 MAX77686_LDO24, 58 MAX77686_LDO24, 46 MAX77686_LDO25, 59 MAX77686_LDO25, 47 MAX77686_LDO26, 60 MAX77686_LDO26, 48 MAX77686_BUCK1, 61 MAX77686_BUCK1, 49 MAX77686_BUCK2, 62 MAX77686_BUCK2, 50 MAX77686_BUCK3, 63 MAX77686_BUCK3, 51 MAX77686_BUCK4, 64 MAX77686_BUCK4, 52 MAX77686_BUCK5, 65 MAX77686_BUCK5, 53 MAX77686_BUCK6, 66 MAX77686_BUCK6, 54 MAX77686_BUCK7, 67 MAX77686_BUCK7, 55 MAX77686_BUCK8, 68 MAX77686_BUCK8, 56 MAX77686_BUCK9, 69 MAX77686_BUCK9, 57 70 58 MAX77686_REG_MAX, 71 MAX77686_REG_MAX, 59 }; 72 }; 60 73 61 /* MAX77802 regulator IDs */ 74 /* MAX77802 regulator IDs */ 62 enum max77802_regulators { 75 enum max77802_regulators { 63 MAX77802_BUCK1 = 0, 76 MAX77802_BUCK1 = 0, 64 MAX77802_BUCK2, 77 MAX77802_BUCK2, 65 MAX77802_BUCK3, 78 MAX77802_BUCK3, 66 MAX77802_BUCK4, 79 MAX77802_BUCK4, 67 MAX77802_BUCK5, 80 MAX77802_BUCK5, 68 MAX77802_BUCK6, 81 MAX77802_BUCK6, 69 MAX77802_BUCK7, 82 MAX77802_BUCK7, 70 MAX77802_BUCK8, 83 MAX77802_BUCK8, 71 MAX77802_BUCK9, 84 MAX77802_BUCK9, 72 MAX77802_BUCK10, 85 MAX77802_BUCK10, 73 MAX77802_LDO1, 86 MAX77802_LDO1, 74 MAX77802_LDO2, 87 MAX77802_LDO2, 75 MAX77802_LDO3, 88 MAX77802_LDO3, 76 MAX77802_LDO4, 89 MAX77802_LDO4, 77 MAX77802_LDO5, 90 MAX77802_LDO5, 78 MAX77802_LDO6, 91 MAX77802_LDO6, 79 MAX77802_LDO7, 92 MAX77802_LDO7, 80 MAX77802_LDO8, 93 MAX77802_LDO8, 81 MAX77802_LDO9, 94 MAX77802_LDO9, 82 MAX77802_LDO10, 95 MAX77802_LDO10, 83 MAX77802_LDO11, 96 MAX77802_LDO11, 84 MAX77802_LDO12, 97 MAX77802_LDO12, 85 MAX77802_LDO13, 98 MAX77802_LDO13, 86 MAX77802_LDO14, 99 MAX77802_LDO14, 87 MAX77802_LDO15, 100 MAX77802_LDO15, 88 MAX77802_LDO17, 101 MAX77802_LDO17, 89 MAX77802_LDO18, 102 MAX77802_LDO18, 90 MAX77802_LDO19, 103 MAX77802_LDO19, 91 MAX77802_LDO20, 104 MAX77802_LDO20, 92 MAX77802_LDO21, 105 MAX77802_LDO21, 93 MAX77802_LDO23, 106 MAX77802_LDO23, 94 MAX77802_LDO24, 107 MAX77802_LDO24, 95 MAX77802_LDO25, 108 MAX77802_LDO25, 96 MAX77802_LDO26, 109 MAX77802_LDO26, 97 MAX77802_LDO27, 110 MAX77802_LDO27, 98 MAX77802_LDO28, 111 MAX77802_LDO28, 99 MAX77802_LDO29, 112 MAX77802_LDO29, 100 MAX77802_LDO30, 113 MAX77802_LDO30, 101 MAX77802_LDO32, 114 MAX77802_LDO32, 102 MAX77802_LDO33, 115 MAX77802_LDO33, 103 MAX77802_LDO34, 116 MAX77802_LDO34, 104 MAX77802_LDO35, 117 MAX77802_LDO35, 105 118 106 MAX77802_REG_MAX, 119 MAX77802_REG_MAX, 107 }; 120 }; 108 121 109 enum max77686_opmode { 122 enum max77686_opmode { 110 MAX77686_OPMODE_NORMAL, 123 MAX77686_OPMODE_NORMAL, 111 MAX77686_OPMODE_LP, 124 MAX77686_OPMODE_LP, 112 MAX77686_OPMODE_STANDBY, 125 MAX77686_OPMODE_STANDBY, 113 }; 126 }; 114 127 115 #endif /* __LINUX_MFD_MAX77686_H */ 128 #endif /* __LINUX_MFD_MAX77686_H */ 116 129
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.