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