]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - include/linux/mfd/max77686.h
2 * max77686.h - Driver for the Maxim 77686/802
4 * Copyright (C) 2012 Samsung Electrnoics
5 * Chiwoong Byun <woong.byun@samsung.com>
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.
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.
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
21 * This driver is based on max8997.h
23 * MAX77686 has PMIC, RTC devices.
24 * The devices share the same I2C bus and included in
28 #ifndef __LINUX_MFD_MAX77686_H
29 #define __LINUX_MFD_MAX77686_H
31 #include <linux/regulator/consumer.h>
33 /* MAX77686 regulator IDs */
34 enum max77686_regulators
{
74 /* MAX77802 regulator IDs */
75 enum max77802_regulators
{
122 struct max77686_regulator_data
{
124 struct regulator_init_data
*initdata
;
125 struct device_node
*of_node
;
128 enum max77686_opmode
{
129 MAX77686_OPMODE_NORMAL
,
131 MAX77686_OPMODE_STANDBY
,
134 enum max77802_opmode
{
136 MAX77802_OPMODE_STANDBY
,
138 MAX77802_OPMODE_NORMAL
,
141 struct max77686_opmode_data
{
146 struct max77686_platform_data
{
151 struct max77686_regulator_data
*regulators
;
154 struct max77686_opmode_data
*opmode_data
;
157 * GPIO-DVS feature is not enabled with the current version of
158 * MAX77686 driver. Buck2/3/4_voltages[0] is used as the default
159 * voltage at probe. DVS/SELB gpios are set as OUTPUT-LOW.
161 int buck234_gpio_dvs
[3]; /* GPIO of [0]DVS1, [1]DVS2, [2]DVS3 */
162 int buck234_gpio_selb
[3]; /* [0]SELB2, [1]SELB3, [2]SELB4 */
163 unsigned int buck2_voltage
[8]; /* buckx_voltage in uV */
164 unsigned int buck3_voltage
[8];
165 unsigned int buck4_voltage
[8];
168 #endif /* __LINUX_MFD_MAX77686_H */