nordic,npm2100-regulator

Vendor: Nordic Semiconductor

Note

An implementation of a driver matching this compatible is available in drivers/regulator/regulator_npm2100.c.

Description

Nordic nPM2100 PMIC

The PMIC has one boost converter and one LDO/LDSW.
The regulators need to be defined as child nodes,
strictly following the BOOST, LDOSW node names.
For example:

pmic@74 {
  reg = <0x74>;
  ...
  regulators {
    compatible = "nordic,npm2100-regulator";

    BOOST {
      /* all properties for BOOST */
    };
    LDOSW {
      /* all properties for LDOSW */
    };
  };
};

Properties

Top level properties

These property descriptions apply to “nordic,npm2100-regulator” nodes themselves. This page also describes child node properties in the following sections.

Properties not inherited from the base binding file.

Name

Type

Details

dvs-gpios

phandle-array

List of SOC GPIOs connected to PMIC GPIOs.
Set_dvs_mode will drive these pins as follows:
  DVS mode 1 will enable the first pin
  DVS mode 2 will enable the second pin
The effect of the mode change is defined by the mode-gpios
fields for each of the regulator blocks.

Child node properties

Name

Type

Details

mode-gpios

phandle-array

Regulator mode controlled by specified regulator GPIO pin.

ldosw-wd-reset

boolean

LDOSW turned off by watchdog reset.

dps-timer-us

int

Interval between DPS refresh cycles in microseconds.

Legal values: 100, 200, 400, 800

dps-pulse-limit

int

DPS coil pulse limit per refresh cycle.

regulator-init-microvolt

int

Voltage set during initialisation

regulator-min-microvolt

int

smallest voltage consumers may set

regulator-max-microvolt

int

largest voltage consumers may set

regulator-init-microamp

int

Current set during initialisation

regulator-min-microamp

int

smallest current consumers may set

regulator-max-microamp

int

largest current consumers may set

regulator-always-on

boolean

boolean, regulator should never be disabled

regulator-boot-on

boolean

bootloader/firmware enabled regulator.
It's expected that this regulator was left on by the bootloader.
If the bootloader didn't leave it on then OS should turn it on
at boot but shouldn't prevent it from being turned off later.
This property is intended to only be used for regulators where
software cannot read the state of the regulator.

regulator-initial-mode

int

Initial operating mode. The set of possible operating modes depends on the
capabilities of every hardware so each device binding documentation
explains which values the regulator supports.

regulator-allowed-modes

array

List of operating modes that software is allowed to configure for the
regulator at run-time. Elements may be specified in any order. The set of
possible operating modes depends on the capabilities of every hardware so
each device binding document explains which values the regulator supports.