axp805.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2019, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <drivers/allwinner/axp.h>
  7. const uint8_t axp_chip_id = AXP805_CHIP_ID;
  8. const char *const axp_compatible = "x-powers,axp805";
  9. #if SUNXI_SETUP_REGULATORS == 1
  10. /*
  11. * The "dcdcd" split changes the step size by a factor of 5, not 2;
  12. * disallow values above the split to maintain accuracy.
  13. */
  14. const struct axp_regulator axp_regulators[] = {
  15. {"dcdca", 600, 1520, 10, 50, 0x12, 0x10, 0},
  16. {"dcdcb", 1000, 2550, 50, NA, 0x13, 0x10, 1},
  17. {"dcdcc", 600, 1520, 10, 50, 0x14, 0x10, 2},
  18. {"dcdcd", 600, 1500, 20, NA, 0x15, 0x10, 3},
  19. {"dcdce", 1100, 3400, 100, NA, 0x16, 0x10, 4},
  20. {"aldo1", 700, 3300, 100, NA, 0x17, 0x10, 5},
  21. {"aldo2", 700, 3300, 100, NA, 0x18, 0x10, 6},
  22. {"aldo3", 700, 3300, 100, NA, 0x19, 0x10, 7},
  23. {"bldo1", 700, 1900, 100, NA, 0x20, 0x11, 0},
  24. {"bldo2", 700, 1900, 100, NA, 0x21, 0x11, 1},
  25. {"bldo3", 700, 1900, 100, NA, 0x22, 0x11, 2},
  26. {"bldo4", 700, 1900, 100, NA, 0x23, 0x11, 3},
  27. {"cldo1", 700, 3300, 100, NA, 0x24, 0x11, 4},
  28. {"cldo2", 700, 4200, 100, 27, 0x25, 0x11, 5},
  29. {"cldo3", 700, 3300, 100, NA, 0x26, 0x11, 6},
  30. {}
  31. };
  32. #endif