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