| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * TI LMU (Lighting Management Unit) Devices |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2017 Texas Instruments |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Author: Milo Kim <milo.kim@ti.com> |
|---|
| 7 | | - * |
|---|
| 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. |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #ifndef __MFD_TI_LMU_H__ |
|---|
| .. | .. |
|---|
| 16 | 13 | #include <linux/gpio.h> |
|---|
| 17 | 14 | #include <linux/notifier.h> |
|---|
| 18 | 15 | #include <linux/regmap.h> |
|---|
| 16 | +#include <linux/gpio/consumer.h> |
|---|
| 19 | 17 | |
|---|
| 20 | 18 | /* Notifier event */ |
|---|
| 21 | 19 | #define LMU_EVENT_MONITOR_DONE 0x01 |
|---|
| 22 | 20 | |
|---|
| 23 | 21 | enum ti_lmu_id { |
|---|
| 24 | | - LM3532, |
|---|
| 25 | 22 | LM3631, |
|---|
| 26 | 23 | LM3632, |
|---|
| 27 | 24 | LM3633, |
|---|
| 28 | 25 | LM3695, |
|---|
| 29 | | - LM3697, |
|---|
| 26 | + LM36274, |
|---|
| 30 | 27 | LMU_MAX_ID, |
|---|
| 31 | 28 | }; |
|---|
| 32 | 29 | |
|---|
| .. | .. |
|---|
| 68 | 65 | LM3632_BOOST, /* Boost output */ |
|---|
| 69 | 66 | LM3632_LDO_POS, /* Positive display bias output */ |
|---|
| 70 | 67 | LM3632_LDO_NEG, /* Negative display bias output */ |
|---|
| 68 | + LM36274_BOOST, /* Boost output */ |
|---|
| 69 | + LM36274_LDO_POS, /* Positive display bias output */ |
|---|
| 70 | + LM36274_LDO_NEG, /* Negative display bias output */ |
|---|
| 71 | 71 | }; |
|---|
| 72 | 72 | |
|---|
| 73 | 73 | /** |
|---|
| .. | .. |
|---|
| 81 | 81 | struct ti_lmu { |
|---|
| 82 | 82 | struct device *dev; |
|---|
| 83 | 83 | struct regmap *regmap; |
|---|
| 84 | | - int en_gpio; |
|---|
| 84 | + struct gpio_desc *en_gpio; |
|---|
| 85 | 85 | struct blocking_notifier_head notifier; |
|---|
| 86 | 86 | }; |
|---|
| 87 | 87 | #endif |
|---|