133621d24SKeerthy #define PALMAS 0x0 233621d24SKeerthy #define TPS659038 0x1 333621d24SKeerthy #define TPS65917 0x2 433621d24SKeerthy 533621d24SKeerthy /* I2C device address for pmic palmas */ 633621d24SKeerthy #define PALMAS_I2C_ADDR (0x12 >> 1) 733621d24SKeerthy #define PALMAS_LDO_NUM 11 833621d24SKeerthy #define PALMAS_SMPS_NUM 8 933621d24SKeerthy 1033621d24SKeerthy /* Drivers name */ 1133621d24SKeerthy #define PALMAS_LDO_DRIVER "palmas_ldo" 1233621d24SKeerthy #define PALMAS_SMPS_DRIVER "palmas_smps" 1333621d24SKeerthy 1433621d24SKeerthy #define PALMAS_SMPS_VOLT_MASK 0x7F 1533621d24SKeerthy #define PALMAS_SMPS_RANGE_MASK 0x80 1633621d24SKeerthy #define PALMAS_SMPS_VOLT_MAX_HEX 0x7F 1733621d24SKeerthy #define PALMAS_SMPS_VOLT_MAX 3300000 1833621d24SKeerthy #define PALMAS_SMPS_MODE_MASK 0x3 1933621d24SKeerthy #define PALMAS_SMPS_STATUS_MASK 0x30 2033621d24SKeerthy 2133621d24SKeerthy #define PALMAS_LDO_VOLT_MASK 0x3F 2233621d24SKeerthy #define PALMAS_LDO_VOLT_MAX_HEX 0x3F 2333621d24SKeerthy #define PALMAS_LDO_VOLT_MAX 3300000 2433621d24SKeerthy #define PALMAS_LDO_MODE_MASK 0x1 2533621d24SKeerthy #define PALMAS_LDO_STATUS_MASK 0x10 26*5c970013SJean-Jacques Hiblot #define PALMAS_LDO_BYPASS_EN 0x40 27