Regulator rails of the nPM1300, cells of nPM1300.
More...
Regulator rails of the nPM1300, cells of nPM1300.
◆ pbl_regulator_npm1300
| struct pbl_regulator_npm1300 |
| Data Fields |
|
bool |
ldo |
LDSW rails only: run as an LDO rather than a load switch. |
|
enum pbl_regulator_npm1300_rail |
rail |
Rail. |
|
struct pbl_regulator |
reg |
Regulator, child of the core. |
|
uint16_t |
voltage_mv |
Output voltage in mV, 1000 to 3300 in 100 mV steps; unused by a load switch. |
◆ PBL_REGULATOR_NPM1300_DEFINE
| #define PBL_REGULATOR_NPM1300_DEFINE |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_pmic, |
|
|
|
_rail, |
|
|
|
_voltage_uv, |
|
|
|
_ldo, |
|
|
|
_enable_time_us, |
|
|
|
_always_on |
|
) |
| |
Value:
_enable_time_us, _always_on), \
.rail = (_rail), .voltage_mv = (_voltage_uv) / 1000, .ldo = (_ldo), \
}
A power rail.
Definition driver.h:42
#define PBL_REGULATOR_INIT(sym, _name, _parent, _ops, _enable_time_us, _always_on)
Initializer for the struct pbl_regulator of regulator sym.
Definition driver.h:80
#define PBL_REGULATOR_STATE_DEFINE(sym)
Define the class state of regulator sym, for the PBL_*_REGULATOR_DEFINE() macro of a driver.
Definition driver.h:61
nPM1300 rail.
Definition npm1300.h:31
Define a PMIC rail.
- Parameters
-
| sym | Symbol of the rail; the regulator is sym.reg. |
| _name | Name. |
| _pmic | Core, a struct pbl_mfd_npm1300. |
| _rail | Rail, an pbl_regulator_npm1300_rail. |
| _voltage_uv | Output voltage in uV. |
| _ldo | LDSW rails only: run as an LDO. |
| _enable_time_us | Time from switching on until the rail is up, in microseconds. |
| _always_on | Switched on at init and never off. |
◆ pbl_regulator_npm1300_rail
nPM1300 rails.
| Enumerator |
|---|
| PBL_REGULATOR_NPM1300_BUCK1 | BUCK1.
|
| PBL_REGULATOR_NPM1300_BUCK2 | BUCK2.
|
| PBL_REGULATOR_NPM1300_LDSW1 | Load switch / LDO 1.
|
| PBL_REGULATOR_NPM1300_LDSW2 | Load switch / LDO 2.
|