diff options
author | Jacek Anaszewski <jacek.anaszewski@gmail.com> | 2019-06-11 17:46:37 -0400 |
---|---|---|
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | 2019-06-11 17:46:37 -0400 |
commit | 25529edef561ca51dadcbb6e97b1c40d2dbc5bae (patch) | |
tree | 601201c4c9d00959ecb2ea8a8f9b2335ae332a4e /drivers/mfd/ti-lmu.c | |
parent | 09bfa5f6833a62bd6669d3ba7f83105181287b92 (diff) | |
parent | 11e1bbc116a75d4a93122ea0a3b2be814922d864 (diff) |
Merge tag 'ti-lmu-led-drivers' into for-next
Merge immutable branch between LEDs, MFD and REGULATOR due to
TI LMU LED support rework and introduction of two new drivers
with DT bindings.
* tag 'ti-lmu-led-drivers':
leds: lm36274: Introduce the TI LM36274 LED driver
dt-bindings: leds: Add LED bindings for the LM36274
regulator: lm363x: Add support for LM36274
mfd: ti-lmu: Add LM36274 support to the ti-lmu
dt-bindings: mfd: Add lm36274 bindings to ti-lmu
leds: lm3697: Introduce the lm3697 driver
mfd: ti-lmu: Remove support for LM3697
dt-bindings: ti-lmu: Modify dt bindings for the LM3697
leds: TI LMU: Add common code for TI LMU devices
dt-bindings: mfd: LMU: Add ti,brightness-resolution
dt-bindings: mfd: LMU: Add the ramp up/down property
Diffstat (limited to 'drivers/mfd/ti-lmu.c')
-rw-r--r-- | drivers/mfd/ti-lmu.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/drivers/mfd/ti-lmu.c b/drivers/mfd/ti-lmu.c index b06cb908d1aa..691ab9dd6236 100644 --- a/drivers/mfd/ti-lmu.c +++ b/drivers/mfd/ti-lmu.c | |||
@@ -111,17 +111,14 @@ static const struct mfd_cell lm3695_devices[] = { | |||
111 | }, | 111 | }, |
112 | }; | 112 | }; |
113 | 113 | ||
114 | static const struct mfd_cell lm3697_devices[] = { | 114 | static const struct mfd_cell lm36274_devices[] = { |
115 | LM363X_REGULATOR(LM36274_BOOST), | ||
116 | LM363X_REGULATOR(LM36274_LDO_POS), | ||
117 | LM363X_REGULATOR(LM36274_LDO_NEG), | ||
115 | { | 118 | { |
116 | .name = "ti-lmu-backlight", | 119 | .name = "lm36274-leds", |
117 | .id = LM3697, | 120 | .id = LM36274, |
118 | .of_compatible = "ti,lm3697-backlight", | 121 | .of_compatible = "ti,lm36274-backlight", |
119 | }, | ||
120 | /* Monitoring driver for open/short circuit detection */ | ||
121 | { | ||
122 | .name = "ti-lmu-fault-monitor", | ||
123 | .id = LM3697, | ||
124 | .of_compatible = "ti,lm3697-fault-monitor", | ||
125 | }, | 122 | }, |
126 | }; | 123 | }; |
127 | 124 | ||
@@ -137,7 +134,7 @@ TI_LMU_DATA(lm3631, LM3631_MAX_REG); | |||
137 | TI_LMU_DATA(lm3632, LM3632_MAX_REG); | 134 | TI_LMU_DATA(lm3632, LM3632_MAX_REG); |
138 | TI_LMU_DATA(lm3633, LM3633_MAX_REG); | 135 | TI_LMU_DATA(lm3633, LM3633_MAX_REG); |
139 | TI_LMU_DATA(lm3695, LM3695_MAX_REG); | 136 | TI_LMU_DATA(lm3695, LM3695_MAX_REG); |
140 | TI_LMU_DATA(lm3697, LM3697_MAX_REG); | 137 | TI_LMU_DATA(lm36274, LM36274_MAX_REG); |
141 | 138 | ||
142 | static int ti_lmu_probe(struct i2c_client *cl, const struct i2c_device_id *id) | 139 | static int ti_lmu_probe(struct i2c_client *cl, const struct i2c_device_id *id) |
143 | { | 140 | { |
@@ -206,7 +203,7 @@ static const struct of_device_id ti_lmu_of_match[] = { | |||
206 | { .compatible = "ti,lm3632", .data = &lm3632_data }, | 203 | { .compatible = "ti,lm3632", .data = &lm3632_data }, |
207 | { .compatible = "ti,lm3633", .data = &lm3633_data }, | 204 | { .compatible = "ti,lm3633", .data = &lm3633_data }, |
208 | { .compatible = "ti,lm3695", .data = &lm3695_data }, | 205 | { .compatible = "ti,lm3695", .data = &lm3695_data }, |
209 | { .compatible = "ti,lm3697", .data = &lm3697_data }, | 206 | { .compatible = "ti,lm36274", .data = &lm36274_data }, |
210 | { } | 207 | { } |
211 | }; | 208 | }; |
212 | MODULE_DEVICE_TABLE(of, ti_lmu_of_match); | 209 | MODULE_DEVICE_TABLE(of, ti_lmu_of_match); |
@@ -216,7 +213,7 @@ static const struct i2c_device_id ti_lmu_ids[] = { | |||
216 | { "lm3632", LM3632 }, | 213 | { "lm3632", LM3632 }, |
217 | { "lm3633", LM3633 }, | 214 | { "lm3633", LM3633 }, |
218 | { "lm3695", LM3695 }, | 215 | { "lm3695", LM3695 }, |
219 | { "lm3697", LM3697 }, | 216 | { "lm36274", LM36274 }, |
220 | { } | 217 | { } |
221 | }; | 218 | }; |
222 | MODULE_DEVICE_TABLE(i2c, ti_lmu_ids); | 219 | MODULE_DEVICE_TABLE(i2c, ti_lmu_ids); |