Path: blob/master/include/dt-bindings/regulator/qcom,rpmh-regulator.h
26285 views
/* SPDX-License-Identifier: GPL-2.0 */1/* Copyright (c) 2018, The Linux Foundation. All rights reserved. */23#ifndef __QCOM_RPMH_REGULATOR_H4#define __QCOM_RPMH_REGULATOR_H56/*7* These mode constants may be used to specify modes for various RPMh regulator8* device tree properties (e.g. regulator-initial-mode). Each type of regulator9* supports a subset of the possible modes.10*11* %RPMH_REGULATOR_MODE_RET: Retention mode in which only an extremely small12* load current is allowed. This mode is supported13* by LDO and SMPS type regulators.14* %RPMH_REGULATOR_MODE_LPM: Low power mode in which a small load current is15* allowed. This mode corresponds to PFM for SMPS16* and BOB type regulators. This mode is supported17* by LDO, HFSMPS, BOB, and PMIC4 FTSMPS type18* regulators.19* %RPMH_REGULATOR_MODE_AUTO: Auto mode in which the regulator hardware20* automatically switches between LPM and HPM based21* upon the real-time load current. This mode is22* supported by HFSMPS, BOB, and PMIC4 FTSMPS type23* regulators.24* %RPMH_REGULATOR_MODE_HPM: High power mode in which the full rated current25* of the regulator is allowed. This mode26* corresponds to PWM for SMPS and BOB type27* regulators. This mode is supported by all types28* of regulators.29*/30#define RPMH_REGULATOR_MODE_RET 031#define RPMH_REGULATOR_MODE_LPM 132#define RPMH_REGULATOR_MODE_AUTO 233#define RPMH_REGULATOR_MODE_HPM 33435#endif363738