blob: a2bc6814badbc5b462e352f1528f8579a5bb9b93 [file] [log] [blame]
Keerthya36bb3c2019-10-24 15:00:50 +05301#define TPS659411 0x0
2#define TPS659412 0x1
3#define TPS659413 0x2
4#define TPS659414 0x3
Gowtham Tammana48a90fa2021-07-14 15:52:56 -05005#define LP876441 0x4
Keerthya36bb3c2019-10-24 15:00:50 +05306
7/* I2C device address for pmic tps65941 */
8#define TPS65941_I2C_ADDR (0x12 >> 1)
9#define TPS65941_LDO_NUM 4
10#define TPS65941_BUCK_NUM 5
11
12/* Drivers name */
13#define TPS65941_LDO_DRIVER "tps65941_ldo"
14#define TPS65941_BUCK_DRIVER "tps65941_buck"
15
16#define TPS65941_BUCK_VOLT_MASK 0xFF
17#define TPS65941_BUCK_VOLT_MAX_HEX 0xFF
18#define TPS65941_BUCK_VOLT_MAX 3340000
19#define TPS65941_BUCK_MODE_MASK 0x1
20
21#define TPS65941_LDO_VOLT_MASK 0x3E
22#define TPS65941_LDO_VOLT_MAX_HEX 0x3A
23#define TPS65941_LDO_VOLT_MIN_HEX 0x4
24#define TPS65941_LDO_VOLT_MAX 3300000
25#define TPS65941_LDO_MODE_MASK 0x1
26#define TPS65941_LDO_BYPASS_EN 0x80
27#define TP65941_BUCK_CONF_SLEW_MASK 0x7