xref: /linux/include/linux/regulator/da9211.h (revision 7524c1cebc0a4e2ab186fcb5f87116f3d9018ee4)
11028a37dSJames Ban /*
2*7524c1ceSJames Ban  * da9211.h - Regulator device driver for DA9211/DA9212
3*7524c1ceSJames Ban  * /DA9213/DA9214/DA9215
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,
26*7524c1ceSJames Ban 	DA9212,
27005547e0SJames Ban 	DA9213,
28*7524c1ceSJames Ban 	DA9214,
297bd39354SJames Ban 	DA9215,
30005547e0SJames Ban };
31005547e0SJames Ban 
321028a37dSJames Ban struct da9211_pdata {
331028a37dSJames Ban 	/*
341028a37dSJames Ban 	 * Number of buck
351028a37dSJames Ban 	 * 1 : 4 phase 1 buck
361028a37dSJames Ban 	 * 2 : 2 phase 2 buck
371028a37dSJames Ban 	 */
381028a37dSJames Ban 	int num_buck;
398c7dd8bcSJames Ban 	int gpio_ren[DA9211_MAX_REGULATORS];
40076c3b8eSJames Ban 	struct device_node *reg_node[DA9211_MAX_REGULATORS];
41bf3baca6SJames Ban 	struct regulator_init_data *init_data[DA9211_MAX_REGULATORS];
421028a37dSJames Ban };
431028a37dSJames Ban #endif
44