1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * LP8755 High Performance Power Management Unit Driver:System Interface Driver
5 * Copyright (C) 2012 Texas Instruments
7 * Author: Daniel(Geon Si) Jeong <daniel.jeong@ti.com>
8 * G.Shark Jeong <gshark.jeong@gmail.com>
14 #include <linux/regulator/consumer.h>
16 #define LP8755_NAME "lp8755-regulator"
18 *PWR FAULT : power fault detected
19 *OCP : over current protect activated
20 *OVP : over voltage protect activated
21 *TEMP_WARN : thermal warning
22 *TEMP_SHDN : thermal shutdonw detected
23 *I_LOAD : current measured
25 #define LP8755_EVENT_PWR_FAULT REGULATOR_EVENT_FAIL
26 #define LP8755_EVENT_OCP REGULATOR_EVENT_OVER_CURRENT
27 #define LP8755_EVENT_OVP 0x10000
28 #define LP8755_EVENT_TEMP_WARN 0x2000
29 #define LP8755_EVENT_TEMP_SHDN REGULATOR_EVENT_OVER_TEMP
30 #define LP8755_EVENT_I_LOAD 0x40000
43 * multiphase configuration options
45 enum lp8755_mphase_config {
59 * struct lp8755_platform_data
60 * @mphase_type : Multiphase Switcher Configurations.
61 * @buck_data : buck0~6 init voltage in uV
63 struct lp8755_platform_data {
65 struct regulator_init_data *buck_data[LP8755_BUCK_MAX];