summaryrefslogtreecommitdiff
path: root/include/linux/regulator/da9121.h
diff options
context:
space:
mode:
authorAdam Ward <Adam.Ward.opensource@diasemi.com>2020-11-30 16:59:08 +0000
committerMark Brown <broonie@kernel.org>2020-12-01 12:17:58 +0000
commitc860476b9e3a420192b28e580cb749e024d032eb (patch)
treec04c147a5ec1ef2ae50b6de270f4fd93fa468f18 /include/linux/regulator/da9121.h
parentf3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf (diff)
regulator: da9121: Add device variant regmaps
Add ability to probe device and validate configuration, then apply a regmap configuration for a single or dual buck device accordingly. Signed-off-by: Adam Ward <Adam.Ward.opensource@diasemi.com> Link: https://lore.kernel.org/r/068c6b8d5e1b4e221e899e4c914c429429a2ec7d.1606755367.git.Adam.Ward.opensource@diasemi.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator/da9121.h')
-rw-r--r--include/linux/regulator/da9121.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/regulator/da9121.h b/include/linux/regulator/da9121.h
new file mode 100644
index 000000000000..c31180d886cc
--- /dev/null
+++ b/include/linux/regulator/da9121.h
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * DA9121 Single-channel dual-phase 10A buck converter
+ * DA9130 Single-channel dual-phase 10A buck converter (Automotive)
+ * DA9217 Single-channel dual-phase 6A buck converter
+ * DA9122 Dual-channel single-phase 5A buck converter
+ * DA9131 Dual-channel single-phase 5A buck converter (Automotive)
+ * DA9220 Dual-channel single-phase 3A buck converter
+ * DA9132 Dual-channel single-phase 3A buck converter (Automotive)
+ *
+ * Copyright (C) 2020 Dialog Semiconductor
+ *
+ * Authors: Adam Ward, Dialog Semiconductor
+ */
+
+#ifndef __LINUX_REGULATOR_DA9121_H
+#define __LINUX_REGULATOR_DA9121_H
+
+enum {
+ DA9121_IDX_BUCK1,
+ DA9121_IDX_BUCK2,
+ DA9121_IDX_MAX
+};
+
+#endif