11028a37dSJames Ban /* 2*7bd39354SJames Ban * da9211.h - Regulator device driver for DA9211/DA9213/DA9215 3*7bd39354SJames Ban * Copyright (C) 2015 Dialog Semiconductor Ltd. 41028a37dSJames Ban * 5*7bd39354SJames Ban * This program is free software; you can redistribute it and/or 6*7bd39354SJames Ban * modify it under the terms of the GNU General Public License 7*7bd39354SJames Ban * as published by the Free Software Foundation; either version 2 8*7bd39354SJames Ban * of the License, or (at your option) any later version. 91028a37dSJames Ban * 10*7bd39354SJames Ban * This program is distributed in the hope that it will be useful, 111028a37dSJames Ban * but WITHOUT ANY WARRANTY; without even the implied warranty of 12*7bd39354SJames Ban * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*7bd39354SJames Ban * GNU General Public License for more details. 141028a37dSJames Ban */ 151028a37dSJames Ban 161028a37dSJames Ban #ifndef __LINUX_REGULATOR_DA9211_H 171028a37dSJames Ban #define __LINUX_REGULATOR_DA9211_H 181028a37dSJames Ban 191028a37dSJames Ban #include <linux/regulator/machine.h> 201028a37dSJames Ban 211028a37dSJames Ban #define DA9211_MAX_REGULATORS 2 221028a37dSJames Ban 23005547e0SJames Ban enum da9211_chip_id { 24005547e0SJames Ban DA9211, 25005547e0SJames Ban DA9213, 26*7bd39354SJames Ban DA9215, 27005547e0SJames Ban }; 28005547e0SJames Ban 291028a37dSJames Ban struct da9211_pdata { 301028a37dSJames Ban /* 311028a37dSJames Ban * Number of buck 321028a37dSJames Ban * 1 : 4 phase 1 buck 331028a37dSJames Ban * 2 : 2 phase 2 buck 341028a37dSJames Ban */ 351028a37dSJames Ban int num_buck; 368c7dd8bcSJames Ban int gpio_ren[DA9211_MAX_REGULATORS]; 37076c3b8eSJames Ban struct device_node *reg_node[DA9211_MAX_REGULATORS]; 38bf3baca6SJames Ban struct regulator_init_data *init_data[DA9211_MAX_REGULATORS]; 391028a37dSJames Ban }; 401028a37dSJames Ban #endif 41