blob: a026ec56958502e46f25d664d3fb29b0df38141a [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
Bhargav Raviprakashbc915a32024-04-22 09:48:33 +00006#define TPS65224 0x5
Keerthya36bb3c2019-10-24 15:00:50 +05307
8/* I2C device address for pmic tps65941 */
9#define TPS65941_I2C_ADDR (0x12 >> 1)
10#define TPS65941_LDO_NUM 4
11#define TPS65941_BUCK_NUM 5
Bhargav Raviprakashbc915a32024-04-22 09:48:33 +000012#define TPS65224_LDO_NUM 3
13#define TPS65224_BUCK_NUM 4
Keerthya36bb3c2019-10-24 15:00:50 +053014
15/* Drivers name */
16#define TPS65941_LDO_DRIVER "tps65941_ldo"
17#define TPS65941_BUCK_DRIVER "tps65941_buck"
18
19#define TPS65941_BUCK_VOLT_MASK 0xFF
20#define TPS65941_BUCK_VOLT_MAX_HEX 0xFF
21#define TPS65941_BUCK_VOLT_MAX 3340000
22#define TPS65941_BUCK_MODE_MASK 0x1
23
Udit Kumar41a54462025-02-11 23:21:58 +053024#define TPS65941_LDO_VOLT_MASK 0x7E
Keerthya36bb3c2019-10-24 15:00:50 +053025#define TPS65941_LDO_VOLT_MAX_HEX 0x3A
26#define TPS65941_LDO_VOLT_MIN_HEX 0x4
27#define TPS65941_LDO_VOLT_MAX 3300000
Udit Kumar41a54462025-02-11 23:21:58 +053028#define TPS65941_LDO_VOLT_MIN 600000
Keerthya36bb3c2019-10-24 15:00:50 +053029#define TPS65941_LDO_MODE_MASK 0x1
30#define TPS65941_LDO_BYPASS_EN 0x80
31#define TP65941_BUCK_CONF_SLEW_MASK 0x7
Bhargav Raviprakashbc915a32024-04-22 09:48:33 +000032
33#define TPS65224_BUCK_VOLT_MAX 3300000
34#define TPS65224_BUCK1_VOLT_MAX_HEX 0xFD
35#define TPS65224_BUCK234_VOLT_MAX_HEX 0x45
36
37#define TPS65224_BUCK_CONF_SLEW_MASK 0x3
38#define TPS65224_LDO_VOLT_MASK (0x3F << 1)
39
40#define TPS65224_LDO1_VOLT_MIN_HEX 0x0C
41#define TPS65224_LDO23_VOLT_MIN_HEX 0x00
42#define TPS65224_LDO1_VOLT_MAX_HEX 0x36
43#define TPS65224_LDO23_VOLT_MAX_HEX 0x38
44
45#define TPS65224_LDO1_VOLT_MAX 3300000
46#define TPS65224_LDO23_VOLT_MAX 3400000
47#define TPS65224_LDO1_VOLT_MIN 1200000
48#define TPS65224_LDO23_VOLT_MIN 600000
49
50#define TPS65224_LDO_STEP 50000
51
52#define TPS65224_LDO_BYP_CONFIG 7
53
54#define TPS65224_LDO1_VOLT_BYP_MIN 2200000
55#define TPS65224_LDO1_VOLT_BYP_MAX 3600000
56
57#define TPS65224_LDO23_VOLT_BYP_MIN 1500000
58#define TPS65224_LDO23_VOLT_BYP_MAX 5500000