Lines Matching +full:ldo +full:- +full:v

1 // SPDX-License-Identifier: GPL-2.0-or-later
56 * LDO ops without voltage selection, used for MICLDO on BCM59054.
191 /* LDO regulator IDs */
230 /* LDO group A: supported voltages in microvolts */
236 /* LDO group C: supported voltages in microvolts */
551 /* LDO regulator IDs */
590 /* LDO group 1: supported voltages in microvolts */
596 /* LDO group 2: supported voltages in microvolts */
602 /* LDO group 3: supported voltages in microvolts */
721 /* MICLDO is locked at 1.8V */
955 /* MICLDO is locked at 1.8V */
1100 struct bcm590xx *bcm590xx = dev_get_drvdata(pdev->dev.parent); in bcm590xx_probe()
1107 pmu = devm_kzalloc(&pdev->dev, sizeof(*pmu), GFP_KERNEL); in bcm590xx_probe()
1109 return -ENOMEM; in bcm590xx_probe()
1111 pmu->mfd = bcm590xx; in bcm590xx_probe()
1113 switch (pmu->mfd->pmu_id) { in bcm590xx_probe()
1115 pmu->n_regulators = BCM59054_NUM_REGS; in bcm590xx_probe()
1116 if (pmu->mfd->rev_analog == BCM59054_REV_ANALOG_A1) in bcm590xx_probe()
1117 pmu->regs = bcm59054_a1_regs; in bcm590xx_probe()
1119 pmu->regs = bcm59054_regs; in bcm590xx_probe()
1122 pmu->n_regulators = BCM59056_NUM_REGS; in bcm590xx_probe()
1123 pmu->regs = bcm59056_regs; in bcm590xx_probe()
1126 dev_err(bcm590xx->dev, in bcm590xx_probe()
1128 return -EINVAL; in bcm590xx_probe()
1134 for (i = 0; i < pmu->n_regulators; i++) { in bcm590xx_probe()
1135 info = &pmu->regs[i]; in bcm590xx_probe()
1137 config.dev = bcm590xx->dev; in bcm590xx_probe()
1140 switch (info->regmap) { in bcm590xx_probe()
1142 config.regmap = bcm590xx->regmap_pri; in bcm590xx_probe()
1145 config.regmap = bcm590xx->regmap_sec; in bcm590xx_probe()
1148 dev_err(bcm590xx->dev, in bcm590xx_probe()
1150 pdev->name); in bcm590xx_probe()
1151 return -EINVAL; in bcm590xx_probe()
1154 rdev = devm_regulator_register(&pdev->dev, &info->desc, in bcm590xx_probe()
1157 return dev_err_probe(bcm590xx->dev, PTR_ERR(rdev), in bcm590xx_probe()
1159 pdev->name); in bcm590xx_probe()
1167 .name = "bcm590xx-vregs",
1177 MODULE_ALIAS("platform:bcm590xx-vregs");