ESP32-P4 LDO

The ESP32-P4 has 4 Low-Dropout linear regulators that can be used to power on- and off-chip peripherals. This component allows those regulators to be configured and enabled.

# Example configuration entry
esp_ldo:
  - channel: 3
    voltage: 2.5V
  - channel: 4      // example for sd activation on Guition JC-ESP32-P4-M3 dev board
    voltage: 3.3V   // GPIO45 on these boards can then do PWM on that power supply line on runtime (ledc)

Configuration variables

  • channel (Required, int): The channel number of the LDO regulator to configure. Only channels 3 and 4 are supported (1 and 2 are used internally by the chip.)
  • voltage (Required, voltage): The desired output voltage - must be in the range 0.5V to 3.3V. Default is 2.7V. 3.3V in case LDO is used for SD-card slot power.
  • adjustable (Optional, bool): If true, the output voltage can be adjusted at run-time. Defaults to false.

esp_ldo.voltage.adjust Action

If the LDO is adjustable, the voltage can be updated at runtime:

on_...:
  then:
    - esp_ldo.voltage.adjust:
        id: ldo_id
        voltage: !lambda return 2.5;

Configuration variables

  • id (Required, ID) The ID of the LDO to adjust.
  • voltage (Required, voltage): The desired output voltage - must be in the range 0.5V to 3.3V. Defaults to 2.7V

See Also