st,stpmic1 (on i2c bus)

Description

STMicroelectronics STPMIC1 power management IC

The outputs are defined as children nodes, named after the STPMIC1 outputs:
buck1 to buck4, ldo1 to ldo6, vref_ddr, boost, pwr_sw1 and pwr_sw2.

Only the output voltage and the enable state are handled, plus the active
discharge of pwr_sw1 and pwr_sw2. vref_ddr, boost, pwr_sw1 and pwr_sw2 have no
selectable voltage.

Examples

pmic@33 {
  compatible = "st,stpmic1";
  reg = <0x33>;

  buck1 {
    regulator-name = "vddcpu";
    regulator-min-microvolt = <1250000>;
    regulator-max-microvolt = <1350000>;
    regulator-always-on;
  };

  ldo6 {
    regulator-name = "v1v8_periph";
    regulator-min-microvolt = <1800000>;
    regulator-max-microvolt = <1800000>;
    regulator-boot-on;
  };
};

Properties

Top level properties

These property descriptions apply to “st,stpmic1” nodes themselves. This page also describes child node properties in the following sections.

Properties not inherited from the base binding file.

Name

Type

Details

supply-gpios

phandle-array

GPIO specifier that controls power to the device.

This property should be provided when the device has a dedicated
switch that controls power to the device.  The supply state is
entirely the responsibility of the device driver.

Contrast with vin-supply.

vin-supply

phandle

Reference to the regulator that controls power to the device.
The referenced devicetree node must have a regulator compatible.

This property should be provided when device power is supplied
by a shared regulator.  The supply state is dependent on the
request status of all devices fed by the regulator.

Contrast with supply-gpios.  If both properties are provided
then the regulator must be requested before the supply GPIOS is
set to an active state, and the supply GPIOS must be set to an
inactive state before releasing the regulator.

Child node properties

Name

Type

Details

regulator-name

string

A string used as a descriptive name for regulator outputs

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-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-boot-off

boolean

Regulator should be disabled on boot.

regulator-active-discharge

int

tristate, enable/disable active discharge of regulators. The values are:
0: Disable active discharge.
1: Enable active discharge.
Absence of this property will leave configuration to default.

Legal values: 0, 1