Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * DA9121 Single-channel dual-phase 10A buck converter
0004  * DA9130 Single-channel dual-phase 10A buck converter (Automotive)
0005  * DA9217 Single-channel dual-phase  6A buck converter
0006  * DA9122 Dual-channel single-phase  5A buck converter
0007  * DA9131 Dual-channel single-phase  5A buck converter (Automotive)
0008  * DA9220 Dual-channel single-phase  3A buck converter
0009  * DA9132 Dual-channel single-phase  3A buck converter (Automotive)
0010  *
0011  * Copyright (C) 2020  Dialog Semiconductor
0012  *
0013  * Authors: Adam Ward, Dialog Semiconductor
0014  */
0015 
0016 #ifndef __LINUX_REGULATOR_DA9121_H
0017 #define __LINUX_REGULATOR_DA9121_H
0018 
0019 #include <linux/regulator/machine.h>
0020 
0021 struct gpio_desc;
0022 
0023 enum {
0024     DA9121_IDX_BUCK1,
0025     DA9121_IDX_BUCK2,
0026     DA9121_IDX_MAX
0027 };
0028 
0029 struct da9121_pdata {
0030     int num_buck;
0031     struct gpio_desc *gpiod_ren[DA9121_IDX_MAX];
0032     struct device_node *reg_node[DA9121_IDX_MAX];
0033     struct regulator_init_data *init_data[DA9121_IDX_MAX];
0034 };
0035 
0036 #endif