1 /* SPDX-License-Identifier: GPL-2.0+ */ 1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 2 /* 3 * max77686.h - Driver for the Maxim 77686/802 3 * max77686.h - Driver for the Maxim 77686/802 4 * 4 * 5 * Copyright (C) 2012 Samsung Electrnoics 5 * Copyright (C) 2012 Samsung Electrnoics 6 * Chiwoong Byun <woong.byun@samsung.com> 6 * Chiwoong Byun <woong.byun@samsung.com> 7 * 7 * 8 * This driver is based on max8997.h 8 * This driver is based on max8997.h 9 * 9 * 10 * MAX77686 has PMIC, RTC devices. 10 * MAX77686 has PMIC, RTC devices. 11 * The devices share the same I2C bus and incl 11 * The devices share the same I2C bus and included in 12 * this mfd driver. 12 * this mfd driver. 13 */ 13 */ 14 14 15 #ifndef __LINUX_MFD_MAX77686_H 15 #ifndef __LINUX_MFD_MAX77686_H 16 #define __LINUX_MFD_MAX77686_H 16 #define __LINUX_MFD_MAX77686_H 17 17 18 #include <linux/regulator/consumer.h> 18 #include <linux/regulator/consumer.h> 19 19 20 /* MAX77686 regulator IDs */ 20 /* MAX77686 regulator IDs */ 21 enum max77686_regulators { 21 enum max77686_regulators { 22 MAX77686_LDO1 = 0, 22 MAX77686_LDO1 = 0, 23 MAX77686_LDO2, 23 MAX77686_LDO2, 24 MAX77686_LDO3, 24 MAX77686_LDO3, 25 MAX77686_LDO4, 25 MAX77686_LDO4, 26 MAX77686_LDO5, 26 MAX77686_LDO5, 27 MAX77686_LDO6, 27 MAX77686_LDO6, 28 MAX77686_LDO7, 28 MAX77686_LDO7, 29 MAX77686_LDO8, 29 MAX77686_LDO8, 30 MAX77686_LDO9, 30 MAX77686_LDO9, 31 MAX77686_LDO10, 31 MAX77686_LDO10, 32 MAX77686_LDO11, 32 MAX77686_LDO11, 33 MAX77686_LDO12, 33 MAX77686_LDO12, 34 MAX77686_LDO13, 34 MAX77686_LDO13, 35 MAX77686_LDO14, 35 MAX77686_LDO14, 36 MAX77686_LDO15, 36 MAX77686_LDO15, 37 MAX77686_LDO16, 37 MAX77686_LDO16, 38 MAX77686_LDO17, 38 MAX77686_LDO17, 39 MAX77686_LDO18, 39 MAX77686_LDO18, 40 MAX77686_LDO19, 40 MAX77686_LDO19, 41 MAX77686_LDO20, 41 MAX77686_LDO20, 42 MAX77686_LDO21, 42 MAX77686_LDO21, 43 MAX77686_LDO22, 43 MAX77686_LDO22, 44 MAX77686_LDO23, 44 MAX77686_LDO23, 45 MAX77686_LDO24, 45 MAX77686_LDO24, 46 MAX77686_LDO25, 46 MAX77686_LDO25, 47 MAX77686_LDO26, 47 MAX77686_LDO26, 48 MAX77686_BUCK1, 48 MAX77686_BUCK1, 49 MAX77686_BUCK2, 49 MAX77686_BUCK2, 50 MAX77686_BUCK3, 50 MAX77686_BUCK3, 51 MAX77686_BUCK4, 51 MAX77686_BUCK4, 52 MAX77686_BUCK5, 52 MAX77686_BUCK5, 53 MAX77686_BUCK6, 53 MAX77686_BUCK6, 54 MAX77686_BUCK7, 54 MAX77686_BUCK7, 55 MAX77686_BUCK8, 55 MAX77686_BUCK8, 56 MAX77686_BUCK9, 56 MAX77686_BUCK9, 57 57 58 MAX77686_REG_MAX, 58 MAX77686_REG_MAX, 59 }; 59 }; 60 60 61 /* MAX77802 regulator IDs */ 61 /* MAX77802 regulator IDs */ 62 enum max77802_regulators { 62 enum max77802_regulators { 63 MAX77802_BUCK1 = 0, 63 MAX77802_BUCK1 = 0, 64 MAX77802_BUCK2, 64 MAX77802_BUCK2, 65 MAX77802_BUCK3, 65 MAX77802_BUCK3, 66 MAX77802_BUCK4, 66 MAX77802_BUCK4, 67 MAX77802_BUCK5, 67 MAX77802_BUCK5, 68 MAX77802_BUCK6, 68 MAX77802_BUCK6, 69 MAX77802_BUCK7, 69 MAX77802_BUCK7, 70 MAX77802_BUCK8, 70 MAX77802_BUCK8, 71 MAX77802_BUCK9, 71 MAX77802_BUCK9, 72 MAX77802_BUCK10, 72 MAX77802_BUCK10, 73 MAX77802_LDO1, 73 MAX77802_LDO1, 74 MAX77802_LDO2, 74 MAX77802_LDO2, 75 MAX77802_LDO3, 75 MAX77802_LDO3, 76 MAX77802_LDO4, 76 MAX77802_LDO4, 77 MAX77802_LDO5, 77 MAX77802_LDO5, 78 MAX77802_LDO6, 78 MAX77802_LDO6, 79 MAX77802_LDO7, 79 MAX77802_LDO7, 80 MAX77802_LDO8, 80 MAX77802_LDO8, 81 MAX77802_LDO9, 81 MAX77802_LDO9, 82 MAX77802_LDO10, 82 MAX77802_LDO10, 83 MAX77802_LDO11, 83 MAX77802_LDO11, 84 MAX77802_LDO12, 84 MAX77802_LDO12, 85 MAX77802_LDO13, 85 MAX77802_LDO13, 86 MAX77802_LDO14, 86 MAX77802_LDO14, 87 MAX77802_LDO15, 87 MAX77802_LDO15, 88 MAX77802_LDO17, 88 MAX77802_LDO17, 89 MAX77802_LDO18, 89 MAX77802_LDO18, 90 MAX77802_LDO19, 90 MAX77802_LDO19, 91 MAX77802_LDO20, 91 MAX77802_LDO20, 92 MAX77802_LDO21, 92 MAX77802_LDO21, 93 MAX77802_LDO23, 93 MAX77802_LDO23, 94 MAX77802_LDO24, 94 MAX77802_LDO24, 95 MAX77802_LDO25, 95 MAX77802_LDO25, 96 MAX77802_LDO26, 96 MAX77802_LDO26, 97 MAX77802_LDO27, 97 MAX77802_LDO27, 98 MAX77802_LDO28, 98 MAX77802_LDO28, 99 MAX77802_LDO29, 99 MAX77802_LDO29, 100 MAX77802_LDO30, 100 MAX77802_LDO30, 101 MAX77802_LDO32, 101 MAX77802_LDO32, 102 MAX77802_LDO33, 102 MAX77802_LDO33, 103 MAX77802_LDO34, 103 MAX77802_LDO34, 104 MAX77802_LDO35, 104 MAX77802_LDO35, 105 105 106 MAX77802_REG_MAX, 106 MAX77802_REG_MAX, 107 }; 107 }; 108 108 109 enum max77686_opmode { 109 enum max77686_opmode { 110 MAX77686_OPMODE_NORMAL, 110 MAX77686_OPMODE_NORMAL, 111 MAX77686_OPMODE_LP, 111 MAX77686_OPMODE_LP, 112 MAX77686_OPMODE_STANDBY, 112 MAX77686_OPMODE_STANDBY, 113 }; 113 }; 114 114 115 #endif /* __LINUX_MFD_MAX77686_H */ 115 #endif /* __LINUX_MFD_MAX77686_H */ 116 116
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.