Lines Matching +full:lp87565 +full:- +full:q1

1 // SPDX-License-Identifier: GPL-2.0-only
3 * Regulator driver for LP87565 PMIC
5 * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com/
13 #include <linux/mfd/lp87565.h>
31 .supply_name = _of "-in", \
72 /* LP87565 BUCK current limit */
101 ret = regmap_update_bits(rdev->regmap, regulators[id].ctrl2_reg, in lp87565_buck_set_ramp_delay()
105 dev_err(&rdev->dev, "SLEW RATE write failed: %d\n", ret); in lp87565_buck_set_ramp_delay()
109 rdev->constraints->ramp_delay = lp87565_buck_ramp_delay[reg]; in lp87565_buck_set_ramp_delay()
112 rdev->constraints->ramp_delay = in lp87565_buck_set_ramp_delay()
113 rdev->constraints->ramp_delay * 85 / 100; in lp87565_buck_set_ramp_delay()
191 struct lp87565 *lp87565 = dev_get_drvdata(pdev->dev.parent); in lp87565_regulator_probe() local
196 platform_set_drvdata(pdev, lp87565); in lp87565_regulator_probe()
198 config.dev = &pdev->dev; in lp87565_regulator_probe()
199 config.dev->of_node = lp87565->dev->of_node; in lp87565_regulator_probe()
200 config.driver_data = lp87565; in lp87565_regulator_probe()
201 config.regmap = lp87565->regmap; in lp87565_regulator_probe()
203 switch (lp87565->dev_type) { in lp87565_regulator_probe()
219 rdev = devm_regulator_register(&pdev->dev, &regulators[i].desc, in lp87565_regulator_probe()
222 dev_err(lp87565->dev, "failed to register %s regulator\n", in lp87565_regulator_probe()
223 pdev->name); in lp87565_regulator_probe()
232 { "lp87565-regulator", },
233 { "lp87565-q1-regulator", },
240 .name = "lp87565-pmic",
248 MODULE_AUTHOR("J Keerthy <j-keerthy@ti.com>");
249 MODULE_DESCRIPTION("LP87565 voltage regulator driver");