xref: /freebsd-src/sys/contrib/device-tree/include/dt-bindings/regulator/dlg,da9121-regulator.h (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1*5def4c47SEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0+ */
2*5def4c47SEmmanuel Vadot 
3*5def4c47SEmmanuel Vadot #ifndef _DT_BINDINGS_REGULATOR_DLG_DA9121_H
4*5def4c47SEmmanuel Vadot #define _DT_BINDINGS_REGULATOR_DLG_DA9121_H
5*5def4c47SEmmanuel Vadot 
6*5def4c47SEmmanuel Vadot /*
7*5def4c47SEmmanuel Vadot  * These buck mode constants may be used to specify values in device tree
8*5def4c47SEmmanuel Vadot  * properties (e.g. regulator-initial-mode).
9*5def4c47SEmmanuel Vadot  * A description of the following modes is in the manufacturers datasheet.
10*5def4c47SEmmanuel Vadot  */
11*5def4c47SEmmanuel Vadot 
12*5def4c47SEmmanuel Vadot #define DA9121_BUCK_MODE_FORCE_PFM		0
13*5def4c47SEmmanuel Vadot #define DA9121_BUCK_MODE_FORCE_PWM		1
14*5def4c47SEmmanuel Vadot #define DA9121_BUCK_MODE_FORCE_PWM_SHEDDING	2
15*5def4c47SEmmanuel Vadot #define DA9121_BUCK_MODE_AUTO			3
16*5def4c47SEmmanuel Vadot 
17*5def4c47SEmmanuel Vadot #define DA9121_BUCK_RIPPLE_CANCEL_NONE		0
18*5def4c47SEmmanuel Vadot #define DA9121_BUCK_RIPPLE_CANCEL_SMALL		1
19*5def4c47SEmmanuel Vadot #define DA9121_BUCK_RIPPLE_CANCEL_MID		2
20*5def4c47SEmmanuel Vadot #define DA9121_BUCK_RIPPLE_CANCEL_LARGE		3
21*5def4c47SEmmanuel Vadot 
22*5def4c47SEmmanuel Vadot #endif
23