da9211.h 757 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * da9211.h - Regulator device driver for DA9211/DA9212
  4. * /DA9213/DA9223/DA9214/DA9224/DA9215/DA9225
  5. * Copyright (C) 2015 Dialog Semiconductor Ltd.
  6. */
  7. #ifndef __LINUX_REGULATOR_DA9211_H
  8. #define __LINUX_REGULATOR_DA9211_H
  9. #include <linux/regulator/machine.h>
  10. #define DA9211_MAX_REGULATORS 2
  11. struct gpio_desc;
  12. enum da9211_chip_id {
  13. DA9211,
  14. DA9212,
  15. DA9213,
  16. DA9223,
  17. DA9214,
  18. DA9224,
  19. DA9215,
  20. DA9225,
  21. };
  22. struct da9211_pdata {
  23. /*
  24. * Number of buck
  25. * 1 : 4 phase 1 buck
  26. * 2 : 2 phase 2 buck
  27. */
  28. int num_buck;
  29. struct gpio_desc *gpiod_ren[DA9211_MAX_REGULATORS];
  30. struct device_node *reg_node[DA9211_MAX_REGULATORS];
  31. struct regulator_init_data *init_data[DA9211_MAX_REGULATORS];
  32. };
  33. #endif