2 * TI LMU (Lighting Management Unit) Devices
4 * Copyright 2017 Texas Instruments
6 * Author: Milo Kim <milo.kim@ti.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #ifndef __MFD_TI_LMU_H__
14 #define __MFD_TI_LMU_H__
16 #include <linux/gpio.h>
17 #include <linux/notifier.h>
18 #include <linux/regmap.h>
19 #include <linux/gpio/consumer.h>
22 #define LMU_EVENT_MONITOR_DONE 0x01
34 enum ti_lmu_max_current {
63 enum lm363x_regulator_id {
64 LM3631_BOOST, /* Boost output */
65 LM3631_LDO_CONT, /* Display panel controller */
66 LM3631_LDO_OREF, /* Gamma reference */
67 LM3631_LDO_POS, /* Positive display bias output */
68 LM3631_LDO_NEG, /* Negative display bias output */
69 LM3632_BOOST, /* Boost output */
70 LM3632_LDO_POS, /* Positive display bias output */
71 LM3632_LDO_NEG, /* Negative display bias output */
77 * @dev: Parent device pointer
78 * @regmap: Used for i2c communcation on accessing registers
79 * @en_gpio: GPIO for HWEN pin [Optional]
80 * @notifier: Notifier for reporting hwmon event
84 struct regmap *regmap;
85 struct gpio_desc *en_gpio;
86 struct blocking_notifier_head notifier;