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