Keerthy | a36bb3c | 2019-10-24 15:00:50 +0530 | [diff] [blame] | 1 | #define TPS659411 0x0 |
| 2 | #define TPS659412 0x1 |
| 3 | #define TPS659413 0x2 |
| 4 | #define TPS659414 0x3 |
Gowtham Tammana | 48a90fa | 2021-07-14 15:52:56 -0500 | [diff] [blame] | 5 | #define LP876441 0x4 |
Bhargav Raviprakash | bc915a3 | 2024-04-22 09:48:33 +0000 | [diff] [blame] | 6 | #define TPS65224 0x5 |
Keerthy | a36bb3c | 2019-10-24 15:00:50 +0530 | [diff] [blame] | 7 | |
| 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 Raviprakash | bc915a3 | 2024-04-22 09:48:33 +0000 | [diff] [blame] | 12 | #define TPS65224_LDO_NUM 3 |
| 13 | #define TPS65224_BUCK_NUM 4 |
Keerthy | a36bb3c | 2019-10-24 15:00:50 +0530 | [diff] [blame] | 14 | |
| 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 | |
| 24 | #define TPS65941_LDO_VOLT_MASK 0x3E |
| 25 | #define TPS65941_LDO_VOLT_MAX_HEX 0x3A |
| 26 | #define TPS65941_LDO_VOLT_MIN_HEX 0x4 |
| 27 | #define TPS65941_LDO_VOLT_MAX 3300000 |
| 28 | #define TPS65941_LDO_MODE_MASK 0x1 |
| 29 | #define TPS65941_LDO_BYPASS_EN 0x80 |
| 30 | #define TP65941_BUCK_CONF_SLEW_MASK 0x7 |
Bhargav Raviprakash | bc915a3 | 2024-04-22 09:48:33 +0000 | [diff] [blame] | 31 | |
| 32 | #define TPS65224_BUCK_VOLT_MAX 3300000 |
| 33 | #define TPS65224_BUCK1_VOLT_MAX_HEX 0xFD |
| 34 | #define TPS65224_BUCK234_VOLT_MAX_HEX 0x45 |
| 35 | |
| 36 | #define TPS65224_BUCK_CONF_SLEW_MASK 0x3 |
| 37 | #define TPS65224_LDO_VOLT_MASK (0x3F << 1) |
| 38 | |
| 39 | #define TPS65224_LDO1_VOLT_MIN_HEX 0x0C |
| 40 | #define TPS65224_LDO23_VOLT_MIN_HEX 0x00 |
| 41 | #define TPS65224_LDO1_VOLT_MAX_HEX 0x36 |
| 42 | #define TPS65224_LDO23_VOLT_MAX_HEX 0x38 |
| 43 | |
| 44 | #define TPS65224_LDO1_VOLT_MAX 3300000 |
| 45 | #define TPS65224_LDO23_VOLT_MAX 3400000 |
| 46 | #define TPS65224_LDO1_VOLT_MIN 1200000 |
| 47 | #define TPS65224_LDO23_VOLT_MIN 600000 |
| 48 | |
| 49 | #define TPS65224_LDO_STEP 50000 |
| 50 | |
| 51 | #define TPS65224_LDO_BYP_CONFIG 7 |
| 52 | |
| 53 | #define TPS65224_LDO1_VOLT_BYP_MIN 2200000 |
| 54 | #define TPS65224_LDO1_VOLT_BYP_MAX 3600000 |
| 55 | |
| 56 | #define TPS65224_LDO23_VOLT_BYP_MIN 1500000 |
| 57 | #define TPS65224_LDO23_VOLT_BYP_MAX 5500000 |