PebbleOS v4.48.0-75-g7416f78a1
Loading...
Searching...
No Matches
nPM1300 regulators

Regulator rails of the nPM1300, cells of nPM1300. More...

Data Structures

struct  pbl_regulator_npm1300
 nPM1300 rail. More...
 

Macros

#define PBL_REGULATOR_NPM1300_DEFINE(sym, _name, _pmic, _rail, _voltage_uv, _ldo, _enable_time_us, _always_on)
 Define a PMIC rail.
 

Enumerations

enum  pbl_regulator_npm1300_rail { PBL_REGULATOR_NPM1300_BUCK1 , PBL_REGULATOR_NPM1300_BUCK2 , PBL_REGULATOR_NPM1300_LDSW1 , PBL_REGULATOR_NPM1300_LDSW2 }
 nPM1300 rails. More...
 

Detailed Description

Regulator rails of the nPM1300, cells of nPM1300.


Data Structure Documentation

◆ pbl_regulator_npm1300

struct pbl_regulator_npm1300

nPM1300 rail.

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.

Macro Definition Documentation

◆ PBL_REGULATOR_NPM1300_DEFINE

#define PBL_REGULATOR_NPM1300_DEFINE (   sym,
  _name,
  _pmic,
  _rail,
  _voltage_uv,
  _ldo,
  _enable_time_us,
  _always_on 
)
Value:
PBL_DEVICE_INSTANCE(sym, struct pbl_regulator_npm1300, struct pbl_regulator, reg) { \
.reg = PBL_REGULATOR_INIT(sym, _name, &(_pmic)->dev, &pbl_regulator_npm1300_ops, \
_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
symSymbol of the rail; the regulator is sym.reg.
_nameName.
_pmicCore, a struct pbl_mfd_npm1300.
_railRail, an pbl_regulator_npm1300_rail.
_voltage_uvOutput voltage in uV.
_ldoLDSW rails only: run as an LDO.
_enable_time_usTime from switching on until the rail is up, in microseconds.
_always_onSwitched on at init and never off.

Enumeration Type Documentation

◆ 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.