Home | History | Annotate | Line # | Download | only in regulator
      1 /*	$NetBSD: active-semi,8945a-regulator.h,v 1.1.1.1 2019/05/25 11:29:13 jmcneill Exp $	*/
      2 
      3 /* SPDX-License-Identifier: GPL-2.0 */
      4 /*
      5  * Copyright (c) 2018 Microchip Technology, Inc. All rights reserved.
      6  *
      7  * Device Tree binding constants for the ACT8945A PMIC regulators
      8  */
      9 
     10 #ifndef _DT_BINDINGS_REGULATOR_ACT8945A_H
     11 #define _DT_BINDINGS_REGULATOR_ACT8945A_H
     12 
     13 /*
     14  * These constants should be used to specify regulator modes in device tree for
     15  * ACT8945A regulators as follows:
     16  * ACT8945A_REGULATOR_MODE_FIXED:	It is specific to DCDC regulators and it
     17  *					specifies the usage of fixed-frequency
     18  *					PWM.
     19  *
     20  * ACT8945A_REGULATOR_MODE_NORMAL:	It is specific to LDO regulators and it
     21  *					specifies the usage of normal mode.
     22  *
     23  * ACT8945A_REGULATOR_MODE_LOWPOWER:	For DCDC and LDO regulators; it specify
     24  *					the usage of proprietary power-saving
     25  *					mode.
     26  */
     27 
     28 #define ACT8945A_REGULATOR_MODE_FIXED		1
     29 #define ACT8945A_REGULATOR_MODE_NORMAL		2
     30 #define ACT8945A_REGULATOR_MODE_LOWPOWER	3
     31 
     32 #endif
     33