active-semi,8945a-regulator.h 920 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (c) 2018 Microchip Technology, Inc. All rights reserved.
  4. *
  5. * Device Tree binding constants for the ACT8945A PMIC regulators
  6. */
  7. #ifndef _DT_BINDINGS_REGULATOR_ACT8945A_H
  8. #define _DT_BINDINGS_REGULATOR_ACT8945A_H
  9. /*
  10. * These constants should be used to specify regulator modes in device tree for
  11. * ACT8945A regulators as follows:
  12. * ACT8945A_REGULATOR_MODE_FIXED: It is specific to DCDC regulators and it
  13. * specifies the usage of fixed-frequency
  14. * PWM.
  15. *
  16. * ACT8945A_REGULATOR_MODE_NORMAL: It is specific to LDO regulators and it
  17. * specifies the usage of normal mode.
  18. *
  19. * ACT8945A_REGULATOR_MODE_LOWPOWER: For DCDC and LDO regulators; it specify
  20. * the usage of proprietary power-saving
  21. * mode.
  22. */
  23. #define ACT8945A_REGULATOR_MODE_FIXED 1
  24. #define ACT8945A_REGULATOR_MODE_NORMAL 2
  25. #define ACT8945A_REGULATOR_MODE_LOWPOWER 3
  26. #endif