sifli,sf32lb52x-ldo

Description

SiFli SF32LB52x Peripheral LDO Regulators

This node is a child of the PMUC (Power Management Unit Controller) and
provides access to the internal peripheral LDOs controlled by the PERI_LDO
register (offset 0x5c in PMUC).

Examples

#include <zephyr/dt-bindings/regulator/sf32lb52x-ldo.h>

pmuc: syscon@500ca000 {
  compatible = "sifli,sf32lb52x-pmuc", "syscon";
  reg = <0x500ca000 0x1000>;

  regulators {
    compatible = "sifli,sf32lb52x-ldo";

    ldo1_1v8: LDO1_1V8 {
      regulator-min-microvolt = <1800000>;
      regulator-max-microvolt = <1800000>;
      regulator-boot-on;
    };

    ldo2_3v3: LDO2_3V3 {
      regulator-min-microvolt = <3300000>;
      regulator-max-microvolt = <3300000>;
    };

    ldo3_3v3: LDO3_3V3 {
      regulator-min-microvolt = <3300000>;
      regulator-max-microvolt = <3300000>;
    };
  };
};

Properties

Top level properties

These property descriptions apply to “sifli,sf32lb52x-ldo” 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-name

string

A string used as a descriptive name for regulator outputs

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.