summaryrefslogtreecommitdiff
path: root/include/linux/regulator
diff options
context:
space:
mode:
authorAdam Ward <Adam.Ward.opensource@diasemi.com>2020-11-30 19:59:10 +0300
committerMark Brown <broonie@kernel.org>2020-12-01 15:18:00 +0300
commit46c413d5bb239769e6f1de706adf422c807c7a5f (patch)
treecd2bd2fcf53c3f7e86702b76a311adce441bafad /include/linux/regulator
parent91863239ce0366c801f1f128246f30ea80d7727b (diff)
downloadlinux-46c413d5bb239769e6f1de706adf422c807c7a5f.tar.xz
regulator: da9121: Add support for device variants via devicetree
Add devicetree configuration and device variant parameters. Use the latter to enable the check and use of parameters specific to dual buck variants. Signed-off-by: Adam Ward <Adam.Ward.opensource@diasemi.com> Link: https://lore.kernel.org/r/5849ce60595aef1018bdde7dcfb54a7397597545.1606755367.git.Adam.Ward.opensource@diasemi.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r--include/linux/regulator/da9121.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/regulator/da9121.h b/include/linux/regulator/da9121.h
index c31180d886cc..62d9d257dc25 100644
--- a/include/linux/regulator/da9121.h
+++ b/include/linux/regulator/da9121.h
@@ -16,10 +16,21 @@
#ifndef __LINUX_REGULATOR_DA9121_H
#define __LINUX_REGULATOR_DA9121_H
+#include <linux/regulator/machine.h>
+
+struct gpio_desc;
+
enum {
DA9121_IDX_BUCK1,
DA9121_IDX_BUCK2,
DA9121_IDX_MAX
};
+struct da9121_pdata {
+ int num_buck;
+ struct gpio_desc *gpiod_ren[DA9121_IDX_MAX];
+ struct device_node *reg_node[DA9121_IDX_MAX];
+ struct regulator_init_data *init_data[DA9121_IDX_MAX];
+};
+
#endif