espressif,esp32-regulator

Description

Espressif ESP32 on-chip LDO voltage regulators.

Some Espressif SoCs include internal general-purpose LDO channels
that can supply power to internal and external peripherals such as
SPI flash and PSRAM.

Supported voltage range: 500mV to 2700mV (continuously adjustable),
or 3300mV (rail bypass mode). Some channels have eFuse-calibrated
output for precise voltage regulation.

Examples

ldo {
  compatible = "espressif,esp32-regulator";

  ldo1 {
    regulator-name = "ldo1";
    regulator-min-microvolt = <500000>;
    regulator-max-microvolt = <3300000>;
    regulator-boot-on;
    regulator-always-on;
    regulator-init-microvolt = <3300000>;
    espressif,ldo-channel = <1>;
  };

  ldo2 {
    regulator-name = "ldo2";
    regulator-min-microvolt = <500000>;
    regulator-max-microvolt = <3300000>;
    regulator-init-microvolt = <1800000>;
    espressif,ldo-channel = <2>;
  };
};

Properties

Top level properties

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

Properties not inherited from the base binding file.

(None)

Child node properties

Name

Type

Details

regulator-min-microvolt

int

smallest voltage consumers may set

Default value: 500000

regulator-max-microvolt

int

largest voltage consumers may set

Default value: 3300000

espressif,ldo-channel

int

LDO output channel number (1-4), corresponding to VO1-VO4.
All channels support eFuse-calibrated output for precise voltage
regulation. Refer to the SoC datasheet for channel-specific
capabilities and typical usage.

This property is required.

Legal values: 1, 2, 3, 4

regulator-name

string

A string used as a descriptive name for regulator outputs

regulator-init-microvolt

int

Voltage set during initialisation

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.