xref: /netbsd-src/sys/external/gpl2/dts/dist/include/dt-bindings/regulator/dlg,da9121-regulator.h (revision 58c3e048f5c2f43ee7e820013e37079f2e0b6ae5)
1 /*	$NetBSD: dlg,da9121-regulator.h,v 1.1.1.1 2021/11/07 16:49:57 jmcneill Exp $	*/
2 
3 /* SPDX-License-Identifier: GPL-2.0+ */
4 
5 #ifndef _DT_BINDINGS_REGULATOR_DLG_DA9121_H
6 #define _DT_BINDINGS_REGULATOR_DLG_DA9121_H
7 
8 /*
9  * These buck mode constants may be used to specify values in device tree
10  * properties (e.g. regulator-initial-mode).
11  * A description of the following modes is in the manufacturers datasheet.
12  */
13 
14 #define DA9121_BUCK_MODE_FORCE_PFM		0
15 #define DA9121_BUCK_MODE_FORCE_PWM		1
16 #define DA9121_BUCK_MODE_FORCE_PWM_SHEDDING	2
17 #define DA9121_BUCK_MODE_AUTO			3
18 
19 #define DA9121_BUCK_RIPPLE_CANCEL_NONE		0
20 #define DA9121_BUCK_RIPPLE_CANCEL_SMALL		1
21 #define DA9121_BUCK_RIPPLE_CANCEL_MID		2
22 #define DA9121_BUCK_RIPPLE_CANCEL_LARGE		3
23 
24 #endif
25