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