xref: /OK3568_Linux_fs/kernel/include/dt-bindings/regulator/active-semi,8865-regulator.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Device Tree binding constants for the ACT8865 PMIC regulators
4*4882a593Smuzhiyun  */
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun #ifndef _DT_BINDINGS_REGULATOR_ACT8865_H
7*4882a593Smuzhiyun #define _DT_BINDINGS_REGULATOR_ACT8865_H
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun /*
10*4882a593Smuzhiyun  * These constants should be used to specify regulator modes in device tree for
11*4882a593Smuzhiyun  * ACT8865 regulators as follows:
12*4882a593Smuzhiyun  * ACT8865_REGULATOR_MODE_FIXED:	It is specific to DCDC regulators and it
13*4882a593Smuzhiyun  *					specifies the usage of fixed-frequency
14*4882a593Smuzhiyun  *					PWM.
15*4882a593Smuzhiyun  *
16*4882a593Smuzhiyun  * ACT8865_REGULATOR_MODE_NORMAL:	It is specific to LDO regulators and it
17*4882a593Smuzhiyun  *					specifies the usage of normal mode.
18*4882a593Smuzhiyun  *
19*4882a593Smuzhiyun  * ACT8865_REGULATOR_MODE_LOWPOWER:	For DCDC and LDO regulators; it specify
20*4882a593Smuzhiyun  *					the usage of proprietary power-saving
21*4882a593Smuzhiyun  *					mode.
22*4882a593Smuzhiyun  */
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun #define ACT8865_REGULATOR_MODE_FIXED		1
25*4882a593Smuzhiyun #define ACT8865_REGULATOR_MODE_NORMAL		2
26*4882a593Smuzhiyun #define ACT8865_REGULATOR_MODE_LOWPOWER	3
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun #endif
29