xref: /linux/include/linux/regulator/da9211.h (revision 707ce9eac5fc3b68f98c887dddea3911a8fc4f9f)
11028a37dSJames Ban /*
27524c1ceSJames Ban  * da9211.h - Regulator device driver for DA9211/DA9212
3*707ce9eaSJames Ban  * /DA9213/DA9223/DA9214/DA9224/DA9215/DA9225
47bd39354SJames Ban  * Copyright (C) 2015  Dialog Semiconductor Ltd.
51028a37dSJames Ban  *
67bd39354SJames Ban  * This program is free software; you can redistribute it and/or
77bd39354SJames Ban  * modify it under the terms of the GNU General Public License
87bd39354SJames Ban  * as published by the Free Software Foundation; either version 2
97bd39354SJames Ban  * of the License, or (at your option) any later version.
101028a37dSJames Ban  *
117bd39354SJames Ban  * This program is distributed in the hope that it will be useful,
121028a37dSJames Ban  * but WITHOUT ANY WARRANTY; without even the implied warranty of
137bd39354SJames Ban  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
147bd39354SJames Ban  * GNU General Public License for more details.
151028a37dSJames Ban  */
161028a37dSJames Ban 
171028a37dSJames Ban #ifndef __LINUX_REGULATOR_DA9211_H
181028a37dSJames Ban #define __LINUX_REGULATOR_DA9211_H
191028a37dSJames Ban 
201028a37dSJames Ban #include <linux/regulator/machine.h>
211028a37dSJames Ban 
221028a37dSJames Ban #define DA9211_MAX_REGULATORS	2
231028a37dSJames Ban 
24005547e0SJames Ban enum da9211_chip_id {
25005547e0SJames Ban 	DA9211,
267524c1ceSJames Ban 	DA9212,
27005547e0SJames Ban 	DA9213,
28*707ce9eaSJames Ban 	DA9223,
297524c1ceSJames Ban 	DA9214,
30*707ce9eaSJames Ban 	DA9224,
317bd39354SJames Ban 	DA9215,
32*707ce9eaSJames Ban 	DA9225,
33005547e0SJames Ban };
34005547e0SJames Ban 
351028a37dSJames Ban struct da9211_pdata {
361028a37dSJames Ban 	/*
371028a37dSJames Ban 	 * Number of buck
381028a37dSJames Ban 	 * 1 : 4 phase 1 buck
391028a37dSJames Ban 	 * 2 : 2 phase 2 buck
401028a37dSJames Ban 	 */
411028a37dSJames Ban 	int num_buck;
428c7dd8bcSJames Ban 	int gpio_ren[DA9211_MAX_REGULATORS];
43076c3b8eSJames Ban 	struct device_node *reg_node[DA9211_MAX_REGULATORS];
44bf3baca6SJames Ban 	struct regulator_init_data *init_data[DA9211_MAX_REGULATORS];
451028a37dSJames Ban };
461028a37dSJames Ban #endif
47