1*c942fddfSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 21028a37dSJames Ban /* 37524c1ceSJames Ban * da9211.h - Regulator device driver for DA9211/DA9212 4707ce9eaSJames Ban * /DA9213/DA9223/DA9214/DA9224/DA9215/DA9225 57bd39354SJames Ban * Copyright (C) 2015 Dialog Semiconductor Ltd. 61028a37dSJames Ban */ 71028a37dSJames Ban 81028a37dSJames Ban #ifndef __LINUX_REGULATOR_DA9211_H 91028a37dSJames Ban #define __LINUX_REGULATOR_DA9211_H 101028a37dSJames Ban 111028a37dSJames Ban #include <linux/regulator/machine.h> 121028a37dSJames Ban 131028a37dSJames Ban #define DA9211_MAX_REGULATORS 2 141028a37dSJames Ban 1511da04afSLinus Walleij struct gpio_desc; 1611da04afSLinus Walleij 17005547e0SJames Ban enum da9211_chip_id { 18005547e0SJames Ban DA9211, 197524c1ceSJames Ban DA9212, 20005547e0SJames Ban DA9213, 21707ce9eaSJames Ban DA9223, 227524c1ceSJames Ban DA9214, 23707ce9eaSJames Ban DA9224, 247bd39354SJames Ban DA9215, 25707ce9eaSJames Ban DA9225, 26005547e0SJames Ban }; 27005547e0SJames Ban 281028a37dSJames Ban struct da9211_pdata { 291028a37dSJames Ban /* 301028a37dSJames Ban * Number of buck 311028a37dSJames Ban * 1 : 4 phase 1 buck 321028a37dSJames Ban * 2 : 2 phase 2 buck 331028a37dSJames Ban */ 341028a37dSJames Ban int num_buck; 3511da04afSLinus Walleij struct gpio_desc *gpiod_ren[DA9211_MAX_REGULATORS]; 36076c3b8eSJames Ban struct device_node *reg_node[DA9211_MAX_REGULATORS]; 37bf3baca6SJames Ban struct regulator_init_data *init_data[DA9211_MAX_REGULATORS]; 381028a37dSJames Ban }; 391028a37dSJames Ban #endif 40