Lines Matching +full:ldo10 +full:- +full:12

1 // SPDX-License-Identifier: GPL-2.0-only
210 if (info->slope_double) in pm8607_list_voltage()
260 .vsel_mask = ARRAY_SIZE(vreg##_table) - 1, \
283 .vsel_mask = (ARRAY_SIZE(LDO##_id##_table) - 1) << (shift), \
305 PM8607_LDO(10, LDO10, 0, SUPPLIES_EN12, 4),
306 PM8607_LDO(12, LDO12, 0, SUPPLIES_EN12, 5),
317 struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); in pm8607_regulator_probe()
319 struct regulator_init_data *pdata = dev_get_platdata(&pdev->dev); in pm8607_regulator_probe()
330 if (info->desc.vsel_reg == res->start) in pm8607_regulator_probe()
334 dev_err(&pdev->dev, "Failed to find regulator %llu\n", in pm8607_regulator_probe()
335 (unsigned long long)res->start); in pm8607_regulator_probe()
336 return -EINVAL; in pm8607_regulator_probe()
342 i = -1; in pm8607_regulator_probe()
346 if ((i == PM8607_ID_BUCK3) && chip->buck3_double) in pm8607_regulator_probe()
347 info->slope_double = 1; in pm8607_regulator_probe()
349 config.dev = chip->dev; in pm8607_regulator_probe()
355 if (chip->id == CHIP_PM8607) in pm8607_regulator_probe()
356 config.regmap = chip->regmap; in pm8607_regulator_probe()
358 config.regmap = chip->regmap_companion; in pm8607_regulator_probe()
360 rdev = devm_regulator_register(&pdev->dev, &info->desc, &config); in pm8607_regulator_probe()
362 dev_err(&pdev->dev, "failed to register regulator %s\n", in pm8607_regulator_probe()
363 info->desc.name); in pm8607_regulator_probe()
373 .name = "88pm860x-regulator",
376 .name = "88pm860x-preg",
385 .name = "88pm860x-regulator",
407 MODULE_ALIAS("platform:88pm8607-regulator");