1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* Copyright (C) 2012 Dialog Semiconductor Ltd.
4 #ifndef __DA9055_PDATA_H
5 #define __DA9055_PDATA_H
7 #define DA9055_MAX_REGULATORS 8
19 int (*init) (struct da9055 *da9055);
23 struct regulator_init_data *regulators[DA9055_MAX_REGULATORS];
24 /* Enable RTC in RESET Mode */
27 * GPI muxed pin to control
28 * regulator state A/B, 0 if not available.
32 * GPI muxed pin to control
33 * regulator set, 0 if not available.
37 * Regulator mode control bits value (GPI offset) that
38 * that controls the regulator state, 0 if not available.
40 enum gpio_select *reg_ren;
42 * Regulator mode control bits value (GPI offset) that
43 * controls the regulator set A/B, 0 if not available.
45 enum gpio_select *reg_rsel;
46 /* GPIO descriptors to enable regulator, NULL if not available */
47 struct gpio_desc **ena_gpiods;
49 #endif /* __DA9055_PDATA_H */