summaryrefslogtreecommitdiffstats
path: root/include/power
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2019-10-24 15:00:50 +0530
committerTom Rini <trini@konsulko.com>2019-11-07 18:39:16 -0500
commit6b86dd0c1eadab4382c394d2c17379f5c762f210 (patch)
treeb18afefe810e43d2d24e32842c0bbc1ab7088877 /include/power
parent9a03e50c5fad1daff7335dafa5b8b7e2a66ce6c9 (diff)
downloadu-boot-6b86dd0c1eadab4382c394d2c17379f5c762f210.tar.gz
u-boot-6b86dd0c1eadab4382c394d2c17379f5c762f210.tar.xz
u-boot-6b86dd0c1eadab4382c394d2c17379f5c762f210.zip
power: pmic: tps65941: Add support for tps65941 family of PMICs
Add support to bind the regulators/child nodes with the pmic. Signed-off-by: Keerthy <j-keerthy@ti.com>
Diffstat (limited to 'include/power')
-rw-r--r--include/power/tps65941.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/power/tps65941.h b/include/power/tps65941.h
new file mode 100644
index 0000000000..2d48b31ae3
--- /dev/null
+++ b/include/power/tps65941.h
@@ -0,0 +1,26 @@
+#define TPS659411 0x0
+#define TPS659412 0x1
+#define TPS659413 0x2
+#define TPS659414 0x3
+
+/* I2C device address for pmic tps65941 */
+#define TPS65941_I2C_ADDR (0x12 >> 1)
+#define TPS65941_LDO_NUM 4
+#define TPS65941_BUCK_NUM 5
+
+/* Drivers name */
+#define TPS65941_LDO_DRIVER "tps65941_ldo"
+#define TPS65941_BUCK_DRIVER "tps65941_buck"
+
+#define TPS65941_BUCK_VOLT_MASK 0xFF
+#define TPS65941_BUCK_VOLT_MAX_HEX 0xFF
+#define TPS65941_BUCK_VOLT_MAX 3340000
+#define TPS65941_BUCK_MODE_MASK 0x1
+
+#define TPS65941_LDO_VOLT_MASK 0x3E
+#define TPS65941_LDO_VOLT_MAX_HEX 0x3A
+#define TPS65941_LDO_VOLT_MIN_HEX 0x4
+#define TPS65941_LDO_VOLT_MAX 3300000
+#define TPS65941_LDO_MODE_MASK 0x1
+#define TPS65941_LDO_BYPASS_EN 0x80
+#define TP65941_BUCK_CONF_SLEW_MASK 0x7