^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) // SPDX-License-Identifier: GPL-2.0-only
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * TI LMU (Lighting Management Unit) Core Driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright 2017 Texas Instruments
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * Author: Milo Kim <milo.kim@ti.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/delay.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/err.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <linux/gpio/consumer.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <linux/i2c.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/mfd/core.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #include <linux/mfd/ti-lmu.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #include <linux/mfd/ti-lmu-register.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #include <linux/of.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #include <linux/of_device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #include <linux/slab.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) struct ti_lmu_data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) const struct mfd_cell *cells;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) int num_cells;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) unsigned int max_register;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) static int ti_lmu_enable_hw(struct ti_lmu *lmu, enum ti_lmu_id id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) if (lmu->en_gpio)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) gpiod_set_value(lmu->en_gpio, 1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) /* Delay about 1ms after HW enable pin control */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) usleep_range(1000, 1500);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) /* LM3631 has additional power up sequence - enable LCD_EN bit. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) if (id == LM3631) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) return regmap_update_bits(lmu->regmap, LM3631_REG_DEVCTRL,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) LM3631_LCD_EN_MASK,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) LM3631_LCD_EN_MASK);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) static void ti_lmu_disable_hw(void *data)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) struct ti_lmu *lmu = data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) if (lmu->en_gpio)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) gpiod_set_value(lmu->en_gpio, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #define LM363X_REGULATOR(_id) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) { \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) .name = "lm363x-regulator", \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) .id = _id, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) .of_compatible = "ti,lm363x-regulator", \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) } \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) static const struct mfd_cell lm3631_devices[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) LM363X_REGULATOR(LM3631_BOOST),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) LM363X_REGULATOR(LM3631_LDO_CONT),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) LM363X_REGULATOR(LM3631_LDO_OREF),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) LM363X_REGULATOR(LM3631_LDO_POS),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) LM363X_REGULATOR(LM3631_LDO_NEG),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) .name = "ti-lmu-backlight",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) .id = LM3631,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) .of_compatible = "ti,lm3631-backlight",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) static const struct mfd_cell lm3632_devices[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) LM363X_REGULATOR(LM3632_BOOST),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) LM363X_REGULATOR(LM3632_LDO_POS),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) LM363X_REGULATOR(LM3632_LDO_NEG),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) .name = "ti-lmu-backlight",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) .id = LM3632,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) .of_compatible = "ti,lm3632-backlight",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) static const struct mfd_cell lm3633_devices[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) .name = "ti-lmu-backlight",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) .id = LM3633,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) .of_compatible = "ti,lm3633-backlight",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) .name = "lm3633-leds",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) .of_compatible = "ti,lm3633-leds",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) /* Monitoring driver for open/short circuit detection */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) .name = "ti-lmu-fault-monitor",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) .id = LM3633,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) .of_compatible = "ti,lm3633-fault-monitor",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) static const struct mfd_cell lm3695_devices[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) .name = "ti-lmu-backlight",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) .id = LM3695,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) .of_compatible = "ti,lm3695-backlight",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) static const struct mfd_cell lm36274_devices[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) LM363X_REGULATOR(LM36274_BOOST),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) LM363X_REGULATOR(LM36274_LDO_POS),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) LM363X_REGULATOR(LM36274_LDO_NEG),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) .name = "lm36274-leds",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) .id = LM36274,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) .of_compatible = "ti,lm36274-backlight",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) #define TI_LMU_DATA(chip, max_reg) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) static const struct ti_lmu_data chip##_data = \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) { \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) .cells = chip##_devices, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) .num_cells = ARRAY_SIZE(chip##_devices),\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) .max_register = max_reg, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) } \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) TI_LMU_DATA(lm3631, LM3631_MAX_REG);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) TI_LMU_DATA(lm3632, LM3632_MAX_REG);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) TI_LMU_DATA(lm3633, LM3633_MAX_REG);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) TI_LMU_DATA(lm3695, LM3695_MAX_REG);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) TI_LMU_DATA(lm36274, LM36274_MAX_REG);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) static int ti_lmu_probe(struct i2c_client *cl, const struct i2c_device_id *id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) struct device *dev = &cl->dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) const struct ti_lmu_data *data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) struct regmap_config regmap_cfg;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) struct ti_lmu *lmu;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) * Get device specific data from of_match table.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) * This data is defined by using TI_LMU_DATA() macro.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) data = of_device_get_match_data(dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) if (!data)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) return -ENODEV;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) lmu = devm_kzalloc(dev, sizeof(*lmu), GFP_KERNEL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) if (!lmu)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) return -ENOMEM;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) lmu->dev = &cl->dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) /* Setup regmap */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) memset(®map_cfg, 0, sizeof(struct regmap_config));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) regmap_cfg.reg_bits = 8;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) regmap_cfg.val_bits = 8;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) regmap_cfg.name = id->name;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) regmap_cfg.max_register = data->max_register;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) lmu->regmap = devm_regmap_init_i2c(cl, ®map_cfg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) if (IS_ERR(lmu->regmap))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) return PTR_ERR(lmu->regmap);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) /* HW enable pin control and additional power up sequence if required */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) lmu->en_gpio = devm_gpiod_get_optional(dev, "enable", GPIOD_OUT_HIGH);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) if (IS_ERR(lmu->en_gpio)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) ret = PTR_ERR(lmu->en_gpio);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) dev_err(dev, "Can not request enable GPIO: %d\n", ret);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) ret = ti_lmu_enable_hw(lmu, id->driver_data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) if (ret)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) ret = devm_add_action_or_reset(dev, ti_lmu_disable_hw, lmu);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) if (ret)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) * Fault circuit(open/short) can be detected by ti-lmu-fault-monitor.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) * After fault detection is done, some devices should re-initialize
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) * configuration. The notifier enables such kind of handling.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) BLOCKING_INIT_NOTIFIER_HEAD(&lmu->notifier);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) i2c_set_clientdata(cl, lmu);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) return devm_mfd_add_devices(lmu->dev, 0, data->cells,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) data->num_cells, NULL, 0, NULL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) static const struct of_device_id ti_lmu_of_match[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) { .compatible = "ti,lm3631", .data = &lm3631_data },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) { .compatible = "ti,lm3632", .data = &lm3632_data },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) { .compatible = "ti,lm3633", .data = &lm3633_data },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) { .compatible = "ti,lm3695", .data = &lm3695_data },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) { .compatible = "ti,lm36274", .data = &lm36274_data },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) { }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) MODULE_DEVICE_TABLE(of, ti_lmu_of_match);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) static const struct i2c_device_id ti_lmu_ids[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) { "lm3631", LM3631 },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) { "lm3632", LM3632 },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) { "lm3633", LM3633 },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) { "lm3695", LM3695 },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) { "lm36274", LM36274 },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) { }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) MODULE_DEVICE_TABLE(i2c, ti_lmu_ids);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) static struct i2c_driver ti_lmu_driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) .probe = ti_lmu_probe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) .driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) .name = "ti-lmu",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) .of_match_table = ti_lmu_of_match,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) .id_table = ti_lmu_ids,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) module_i2c_driver(ti_lmu_driver);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) MODULE_DESCRIPTION("TI LMU MFD Core Driver");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) MODULE_AUTHOR("Milo Kim");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) MODULE_LICENSE("GPL v2");