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