summaryrefslogtreecommitdiffstats
path: root/include/dt-bindings/regulator/dlg,da9211-regulator.h
diff options
context:
space:
mode:
authorAnand K Mistry <amistry@google.com>2020-07-02 05:15:22 +0200
committerMark Brown <broonie@kernel.org>2020-07-02 17:20:57 +0200
commit6c8b65950b1c75b9e41b5bf314f5d7b81df91272 (patch)
treefa2a326617ce2e69272a23cd281a4ac412120093 /include/dt-bindings/regulator/dlg,da9211-regulator.h
parentMerge series "Introduce PMIC based USB type C detection" from Wesley Cheng <w... (diff)
downloadlinux-6c8b65950b1c75b9e41b5bf314f5d7b81df91272.tar.xz
linux-6c8b65950b1c75b9e41b5bf314f5d7b81df91272.zip
regulator: da9211: Move buck modes into header file
This will allow device trees to make use of these constants. Signed-off-by: Anand K Mistry <amistry@google.com> Link: https://lore.kernel.org/r/20200702131350.1.I96e67ab7b4568287eb939e8a572cbc03e87f1aa0@changeid Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/dt-bindings/regulator/dlg,da9211-regulator.h')
-rw-r--r--include/dt-bindings/regulator/dlg,da9211-regulator.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/dt-bindings/regulator/dlg,da9211-regulator.h b/include/dt-bindings/regulator/dlg,da9211-regulator.h
new file mode 100644
index 000000000000..cdce2d54c8ba
--- /dev/null
+++ b/include/dt-bindings/regulator/dlg,da9211-regulator.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#ifndef _DT_BINDINGS_REGULATOR_DLG_DA9211_H
+#define _DT_BINDINGS_REGULATOR_DLG_DA9211_H
+
+/*
+ * These buck mode constants may be used to specify values in device tree
+ * properties (e.g. regulator-initial-mode, regulator-allowed-modes).
+ * A description of the following modes is in the manufacturers datasheet.
+ */
+
+#define DA9211_BUCK_MODE_SLEEP 1
+#define DA9211_BUCK_MODE_SYNC 2
+#define DA9211_BUCK_MODE_AUTO 3
+
+#endif