11028a37dSJames Ban /* 27524c1ceSJames Ban * da9211.h - Regulator device driver for DA9211/DA9212 3707ce9eaSJames 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 24*11da04afSLinus Walleij struct gpio_desc; 25*11da04afSLinus Walleij 26005547e0SJames Ban enum da9211_chip_id { 27005547e0SJames Ban DA9211, 287524c1ceSJames Ban DA9212, 29005547e0SJames Ban DA9213, 30707ce9eaSJames Ban DA9223, 317524c1ceSJames Ban DA9214, 32707ce9eaSJames Ban DA9224, 337bd39354SJames Ban DA9215, 34707ce9eaSJames Ban DA9225, 35005547e0SJames Ban }; 36005547e0SJames Ban 371028a37dSJames Ban struct da9211_pdata { 381028a37dSJames Ban /* 391028a37dSJames Ban * Number of buck 401028a37dSJames Ban * 1 : 4 phase 1 buck 411028a37dSJames Ban * 2 : 2 phase 2 buck 421028a37dSJames Ban */ 431028a37dSJames Ban int num_buck; 44*11da04afSLinus Walleij struct gpio_desc *gpiod_ren[DA9211_MAX_REGULATORS]; 45076c3b8eSJames Ban struct device_node *reg_node[DA9211_MAX_REGULATORS]; 46bf3baca6SJames Ban struct regulator_init_data *init_data[DA9211_MAX_REGULATORS]; 471028a37dSJames Ban }; 481028a37dSJames Ban #endif 49