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