Lines Matching +full:mt6370 +full:- +full:backlight

1 // SPDX-License-Identifier: GPL-2.0-only
17 #include "mt6370.h"
116 .name = "mt6370-irqs",
134 MFD_CELL_OF("mt6370-adc",
135 NULL, NULL, 0, 0, "mediatek,mt6370-adc"),
136 MFD_CELL_OF("mt6370-charger",
137 NULL, NULL, 0, 0, "mediatek,mt6370-charger"),
138 MFD_CELL_OF("mt6370-flashlight",
139 NULL, NULL, 0, 0, "mediatek,mt6370-flashlight"),
140 MFD_CELL_OF("mt6370-indicator",
141 NULL, NULL, 0, 0, "mediatek,mt6370-indicator"),
142 MFD_CELL_OF("mt6370-tcpc",
143 NULL, NULL, 0, 0, "mediatek,mt6370-tcpc"),
144 MFD_CELL_RES("mt6370-regulator", mt6370_regulator_irqs),
148 MFD_CELL_OF("mt6370-backlight",
149 NULL, NULL, 0, 0, "mediatek,mt6370-backlight"),
153 MFD_CELL_OF("mt6370-backlight",
154 NULL, NULL, 0, 0, "mediatek,mt6372-backlight"),
178 return -ENODEV; in mt6370_check_vendor_info()
193 ret = i2c_smbus_read_i2c_block_data(info->i2c[bank_idx], bank_addr, in mt6370_regmap_read()
199 return -EIO; in mt6370_regmap_read()
209 int len = count - MT6370_MAX_ADDRLEN; in mt6370_regmap_write()
214 return i2c_smbus_write_i2c_block_data(info->i2c[bank_idx], bank_addr, in mt6370_regmap_write()
235 struct device *dev = &i2c->dev; in mt6370_probe()
240 return -ENOMEM; in mt6370_probe()
242 usbc_i2c = devm_i2c_new_dummy_device(dev, i2c->adapter, in mt6370_probe()
249 info->i2c[MT6370_PMU_I2C] = i2c; in mt6370_probe()
250 info->i2c[MT6370_USBC_I2C] = usbc_i2c; in mt6370_probe()
262 ret = devm_regmap_add_irq_chip(dev, regmap, i2c->irq, in mt6370_probe()
263 IRQF_ONESHOT, -1, &mt6370_irq_chip, in mt6370_probe()
264 &info->irq_data); in mt6370_probe()
275 regmap_irq_get_domain(info->irq_data)); in mt6370_probe()
282 regmap_irq_get_domain(info->irq_data)); in mt6370_probe()
292 regmap_irq_get_domain(info->irq_data)); in mt6370_probe()
296 { .compatible = "mediatek,mt6370" },
303 .name = "mt6370",
311 MODULE_DESCRIPTION("MediaTek MT6370 SubPMIC Driver");