adi,max20362-regulator (on i2c bus)

Description

Analog Devices MAX20362 PMIC

The PMIC has a bidirectional buck-boost converter, a CAP output and an LDO.
Each rail that is used must be defined as a child node, strictly following the
bboost, cap and ldo node names.

Examples

max20362_regulators: max20362@68 {
  compatible = "adi,max20362-regulator";
  reg = <0x68>;
  bat-bbin-vdrop = <0>;
  dvs-src = <0>;
  ldo-src = <1>;

  bboost {
    /* all properties for BBOOST */
  };
  cap {
    /* all properties for CAP */
  };
  ldo {
    /* all properties for LDO */
  };
};

Properties

Top level properties

These property descriptions apply to “adi,max20362-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

bat-bbin-vdrop

int

Voltage drop from BAT to BBIN in millivolts. Refer to the macros from
<zephyr/dt-bindings/regulator/max20362.h>:
- 0: 55 mV  (MAX20362_BAT_BBIN_VDROP_55MV)
- 1: 100 mV (MAX20362_BAT_BBIN_VDROP_100MV)
- 2: 150 mV (MAX20362_BAT_BBIN_VDROP_150MV)
- 3: 200 mV (MAX20362_BAT_BBIN_VDROP_200MV)

This property is required.

Legal values: 0, 1, 2, 3

dvs-src

int

Interface for DVS. Refer to the macros from
<zephyr/dt-bindings/regulator/max20362.h>:
- 0: I2C         (MAX20362_DVS_SRC_I2C)
- 1: Pseudo-SPI  (MAX20362_DVS_SRC_PSEUDO_SPI)
- 2: Round-Robin (MAX20362_DVS_SRC_ROUND_ROBIN)

This property is required.

Legal values: 0, 1, 2

ldo-src

int

LDO input source. If the source is buck-boost, the LDO control
can wait for the buck to be on before turning on the LDO.
Refer to the macros from <zephyr/dt-bindings/regulator/max20362.h>:
- 0: BBOUT (MAX20362_LDO_SRC_BBOUT)
- 1: CAP   (MAX20362_LDO_SRC_CAP)
- 2: BATT  (MAX20362_LDO_SRC_BATT)

This property is required.

Legal values: 0, 1, 2

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