Lines Matching +full:ldo1 +full:- +full:3
1 // SPDX-License-Identifier: GPL-2.0-only
22 /* LDO1 with DVC[0..3] */
45 /* BUCK1 with DVC[0..3] */
78 * vreg - the buck regs string.
79 * ereg - the string for the enable register.
80 * ebit - the bit number in the enable register.
81 * amax - the current
84 * n_volt - Number of available selectors
108 * vreg - the LDO regs string
109 * ereg - the string for the enable register.
110 * ebit - the bit number in the enable register.
111 * amax - the current
112 * volt_table - the LDO voltage table
157 /* LDO 3~17 have same voltage table. */
172 return info->max_ua; in pm800_get_current_limit()
202 PM800_BUCK(buck4, BUCK4, BUCK_ENA, 3, 1200000, buck2_5_volt_range, 0x73),
205 PM800_LDO(ldo1, LDO1, LDO_ENA1_1, 0, 200000, ldo1_volt_table),
208 PM800_LDO(ldo4, LDO4, LDO_ENA1_1, 3, 300000, ldo3_17_volt_table),
216 PM800_LDO(ldo12, LDO12, LDO_ENA1_2, 3, 300000, ldo3_17_volt_table),
228 struct pm80x_chip *chip = dev_get_drvdata(pdev->dev.parent); in pm800_regulator_probe()
229 struct pm80x_platform_data *pdata = dev_get_platdata(pdev->dev.parent); in pm800_regulator_probe()
234 if (pdata && pdata->num_regulators) { in pm800_regulator_probe()
238 for (i = 0; i < ARRAY_SIZE(pdata->regulators); i++) { in pm800_regulator_probe()
239 if (pdata->regulators[i]) in pm800_regulator_probe()
242 if (count != pdata->num_regulators) in pm800_regulator_probe()
243 return -EINVAL; in pm800_regulator_probe()
246 config.dev = chip->dev; in pm800_regulator_probe()
247 config.regmap = chip->subchip->regmap_power; in pm800_regulator_probe()
251 if (pdata && pdata->num_regulators) { in pm800_regulator_probe()
252 init_data = pdata->regulators[i]; in pm800_regulator_probe()
261 regulator = devm_regulator_register(&pdev->dev, in pm800_regulator_probe()
265 dev_err(&pdev->dev, "Failed to register %s\n", in pm800_regulator_probe()
276 .name = "88pm80x-regulator",
287 MODULE_ALIAS("platform:88pm800-regulator");