1 /*
2  * Copyright (c) 2023 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_REGULATOR_NPM1300_H_
8 #define ZEPHYR_INCLUDE_DT_BINDINGS_REGULATOR_NPM1300_H_
9 
10 /**
11  * @defgroup regulator_npm1300 NPM1300 Devicetree helpers.
12  * @ingroup regulator_interface
13  * @{
14  */
15 
16 /**
17  * @name NPM1300 Regulator modes
18  * @{
19  */
20 /* Buck modes */
21 #define NPM1300_BUCK_MODE_AUTO 0x00U
22 #define NPM1300_BUCK_MODE_PWM  0x01U
23 #define NPM1300_BUCK_MODE_PFM  0x04U
24 
25 /* LDSW / LDO modes */
26 #define NPM1300_LDSW_MODE_LDO  0x02U
27 #define NPM1300_LDSW_MODE_LDSW 0x03U
28 
29 /* GPIO control configuration */
30 #define NPM1300_GPIO_CHAN_NONE 0x00U
31 #define NPM1300_GPIO_CHAN_0    0x01U
32 #define NPM1300_GPIO_CHAN_1    0x02U
33 #define NPM1300_GPIO_CHAN_2    0x03U
34 #define NPM1300_GPIO_CHAN_3    0x04U
35 #define NPM1300_GPIO_CHAN_4    0x05U
36 
37 /** @} */
38 
39 /** @} */
40 
41 #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_REGULATOR_NPM1300_H_*/
42