Lines Matching +full:mt6370 +full:- +full:dsv +full:- +full:vpos
1 // SPDX-License-Identifier: GPL-2.0+
153 struct mt6370_priv *priv = config->driver_data; in mt6370_of_parse_cb()
160 desc->name); in mt6370_of_parse_cb()
162 config->ena_gpiod = NULL; in mt6370_of_parse_cb()
170 if (priv->use_external_ctrl) { in mt6370_of_parse_cb()
171 ret = regmap_update_bits(priv->regmap, MT6370_REG_DB_CTRL1, in mt6370_of_parse_cb()
178 config->ena_gpiod = enable_gpio; in mt6370_of_parse_cb()
179 priv->use_external_ctrl = true; in mt6370_of_parse_cb()
185 .name = "mt6370-dsv-vbst",
202 .name = "mt6370-dsv-vpos",
226 .name = "mt6370-dsv-vneg",
250 .name = "mt6370-vib-ldo",
289 struct platform_device *pdev = to_platform_device(priv->dev); in mt6370_regulator_irq_register()
308 rdev = priv->rdev[mt6370_irqs[i].rid]; in mt6370_regulator_irq_register()
310 ret = devm_request_threaded_irq(priv->dev, irq, NULL, in mt6370_regulator_irq_register()
314 dev_err(priv->dev, in mt6370_regulator_irq_register()
327 struct device *parent = priv->dev->parent; in mt6370_regualtor_register()
334 rdev = devm_regulator_register(priv->dev, in mt6370_regualtor_register()
338 dev_err(priv->dev, in mt6370_regualtor_register()
343 priv->rdev[i] = rdev; in mt6370_regualtor_register()
354 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); in mt6370_regulator_probe()
356 return -ENOMEM; in mt6370_regulator_probe()
358 priv->dev = &pdev->dev; in mt6370_regulator_probe()
360 priv->regmap = dev_get_regmap(pdev->dev.parent, NULL); in mt6370_regulator_probe()
361 if (!priv->regmap) { in mt6370_regulator_probe()
362 dev_err(&pdev->dev, "Failed to init regmap\n"); in mt6370_regulator_probe()
363 return -ENODEV; in mt6370_regulator_probe()
374 { "mt6370-regulator", 0},
381 .name = "mt6370-regulator",
390 MODULE_DESCRIPTION("Mediatek MT6370 Regulator Driver");