Home
last modified time | relevance | path

Searched refs:regulators (Results 1 – 25 of 54) sorted by relevance

123

/drivers/regulator/
DKconfig7 and current regulators within the Linux kernel. It's intended to
14 to both voltage regulators (where voltage output is controllable) and
19 regulators.
34 This driver provides support for fixed voltage regulators,
36 managed regulators and simple non-configurable regulators.
58 tristate "Marvell 88PM800 Power regulators"
68 tristate "Marvell 88PM8607 Power regulators"
87 and four low-dropout linear regulators, along with a ActivePath
91 tristate "Analog Devices AD5398/AD5821 regulators"
98 tristate "Freescale i.MX on-chip ANATOP LDO regulators"
[all …]
Daxp20x-regulator.c417 struct device_node *np, *regulators; in axp20x_regulator_parse_dt() local
425 regulators = of_get_child_by_name(np, "regulators"); in axp20x_regulator_parse_dt()
426 if (!regulators) { in axp20x_regulator_parse_dt()
429 of_property_read_u32(regulators, "x-powers,dcdc-freq", &dcdcfreq); in axp20x_regulator_parse_dt()
436 of_node_put(regulators); in axp20x_regulator_parse_dt()
518 const struct regulator_desc *regulators; in axp20x_regulator_probe() local
533 regulators = axp20x_regulators; in axp20x_regulator_probe()
538 regulators = axp22x_regulators; in axp20x_regulator_probe()
544 regulators = axp806_regulators; in axp20x_regulator_probe()
548 regulators = axp809_regulators; in axp20x_regulator_probe()
[all …]
Dtps65086-regulator.c124 static struct tps65086_regulator regulators[] = { variable
176 regulators[desc->id].desc.linear_ranges = in tps65086_of_parse_cb()
178 regulators[desc->id].desc.n_linear_ranges = in tps65086_of_parse_cb()
184 regulators[desc->id].desc.linear_ranges = in tps65086_of_parse_cb()
186 regulators[desc->id].desc.n_linear_ranges = in tps65086_of_parse_cb()
197 regulators[desc->id].decay_reg, in tps65086_of_parse_cb()
198 regulators[desc->id].decay_mask, in tps65086_of_parse_cb()
199 regulators[desc->id].decay_mask); in tps65086_of_parse_cb()
223 for (i = 0; i < ARRAY_SIZE(regulators); i++) { in tps65086_regulator_probe()
224 rdev = devm_regulator_register(&pdev->dev, &regulators[i].desc, in tps65086_regulator_probe()
Dwm8400-regulator.c122 static struct regulator_desc regulators[] = { variable
211 struct wm8400 *wm8400 = container_of(pdev, struct wm8400, regulators[pdev->id]); in wm8400_regulator_probe()
220 rdev = devm_regulator_register(&pdev->dev, &regulators[pdev->id], in wm8400_regulator_probe()
253 if (wm8400->regulators[reg].name) in wm8400_register_regulator()
258 wm8400->regulators[reg].name = "wm8400-regulator"; in wm8400_register_regulator()
259 wm8400->regulators[reg].id = reg; in wm8400_register_regulator()
260 wm8400->regulators[reg].dev.parent = dev; in wm8400_register_regulator()
261 wm8400->regulators[reg].dev.platform_data = initdata; in wm8400_register_regulator()
263 return platform_device_register(&wm8400->regulators[reg]); in wm8400_register_regulator()
Ds5m8767.c395 static struct regulator_desc regulators[] = { variable
566 pdata->regulators = rdata; in s5m8767_pmic_dt_parse_pdata()
569 for (i = 0; i < ARRAY_SIZE(regulators); i++) in s5m8767_pmic_dt_parse_pdata()
570 if (!of_node_cmp(reg_np->name, regulators[i].name)) in s5m8767_pmic_dt_parse_pdata()
573 if (i == ARRAY_SIZE(regulators)) { in s5m8767_pmic_dt_parse_pdata()
586 &regulators[i]); in s5m8767_pmic_dt_parse_pdata()
924 int id = pdata->regulators[i].id; in s5m8767_pmic_probe()
930 regulators[id].n_voltages = in s5m8767_pmic_probe()
932 regulators[id].min_uV = desc->min; in s5m8767_pmic_probe()
933 regulators[id].uV_step = desc->step; in s5m8767_pmic_probe()
[all …]
Dlp873x-regulator.c50 static const struct lp873x_regulator regulators[]; variable
97 ret = regmap_update_bits(lp873->regmap, regulators[id].ctrl2_reg, in lp873x_buck_set_ramp_delay()
121 regulators[id].ctrl2_reg, in lp873x_buck_set_current_limit()
136 ret = regmap_read(lp873->regmap, regulators[id].ctrl2_reg, &val); in lp873x_buck_get_current_limit()
173 static const struct lp873x_regulator regulators[] = { variable
208 for (i = 0; i < ARRAY_SIZE(regulators); i++) { in lp873x_regulator_probe()
209 rdev = devm_regulator_register(&pdev->dev, &regulators[i].desc, in lp873x_regulator_probe()
Drn5t618-regulator.c87 struct regulator_desc *regulators; in rn5t618_regulator_probe() local
92 regulators = rn5t567_regulators; in rn5t618_regulator_probe()
95 regulators = rn5t618_regulators; in rn5t618_regulator_probe()
105 if (!regulators[i].name) in rn5t618_regulator_probe()
109 &regulators[i], in rn5t618_regulator_probe()
113 regulators[i].name); in rn5t618_regulator_probe()
Dmax8998.c472 static struct regulator_desc regulators[] = { variable
681 pdata->regulators = rdata; in max8998_pmic_dt_parse_pdata()
682 for (i = 0; i < ARRAY_SIZE(regulators); ++i) { in max8998_pmic_dt_parse_pdata()
684 regulators[i].name); in max8998_pmic_dt_parse_pdata()
688 rdata->id = regulators[i].id; in max8998_pmic_dt_parse_pdata()
691 &regulators[i]); in max8998_pmic_dt_parse_pdata()
695 pdata->num_regulators = rdata - pdata->regulators; in max8998_pmic_dt_parse_pdata()
857 int id = pdata->regulators[i].id; in max8998_pmic_probe()
861 if (desc && regulators[index].ops != &max8998_others_ops) { in max8998_pmic_probe()
864 regulators[index].n_voltages = count; in max8998_pmic_probe()
[all …]
Dact8865-regulator.c427 pdata->regulators = devm_kzalloc(dev, in act8865_pdata_from_dt()
430 if (!pdata->regulators) in act8865_pdata_from_dt()
434 regulator = pdata->regulators; in act8865_pdata_from_dt()
464 if (pdata->regulators[i].id == id) in act8865_get_regulator_data()
465 return &pdata->regulators[i]; in act8865_get_regulator_data()
484 const struct regulator_desc *regulators; in act8865_pmic_probe() local
514 regulators = act8600_regulators; in act8865_pmic_probe()
521 regulators = act8846_regulators; in act8865_pmic_probe()
529 regulators = act8865_alt_regulators; in act8865_pmic_probe()
532 regulators = act8865_regulators; in act8865_pmic_probe()
[all …]
Dact8945a-regulator.c124 const struct regulator_desc *regulators; in act8945a_pmic_probe() local
133 regulators = act8945a_alt_regulators; in act8945a_pmic_probe()
136 regulators = act8945a_regulators; in act8945a_pmic_probe()
143 rdev = devm_regulator_register(&pdev->dev, &regulators[i], &config); in act8945a_pmic_probe()
147 regulators[i].name); in act8945a_pmic_probe()
Dda9062-regulator.c695 struct da9062_regulators *regulators = data; in da9062_ldo_lim_event() local
696 struct da9062 *hw = regulators->regulator[0].hw; in da9062_ldo_lim_event()
708 for (i = regulators->n_regulators - 1; i >= 0; i--) { in da9062_ldo_lim_event()
709 regl = &regulators->regulator[i]; in da9062_ldo_lim_event()
727 struct da9062_regulators *regulators; in da9062_regulator_probe() local
736 regulators = devm_kzalloc(&pdev->dev, size, GFP_KERNEL); in da9062_regulator_probe()
737 if (!regulators) in da9062_regulator_probe()
740 regulators->n_regulators = DA9062_MAX_REGULATORS; in da9062_regulator_probe()
741 platform_set_drvdata(pdev, regulators); in da9062_regulator_probe()
744 while (n < regulators->n_regulators) { in da9062_regulator_probe()
[all …]
Dda9063-regulator.c596 struct da9063_regulators *regulators = data; in da9063_ldo_lim_event() local
597 struct da9063 *hw = regulators->regulator[0].hw; in da9063_ldo_lim_event()
605 for (i = regulators->n_regulators - 1; i >= 0; i--) { in da9063_ldo_lim_event()
606 regl = &regulators->regulator[i]; in da9063_ldo_lim_event()
723 struct da9063_regulators *regulators; in da9063_regulator_probe() local
775 regulators = devm_kzalloc(&pdev->dev, size, GFP_KERNEL); in da9063_regulator_probe()
776 if (!regulators) in da9063_regulator_probe()
779 regulators->n_regulators = n_regulators; in da9063_regulator_probe()
780 platform_set_drvdata(pdev, regulators); in da9063_regulator_probe()
785 while (n < regulators->n_regulators) { in da9063_regulator_probe()
[all …]
Dmax77693-regulator.c246 const struct regulator_desc *regulators; in max77693_pmic_probe() local
255 regulators = max77693_supported_regulators; in max77693_pmic_probe()
260 regulators = max77843_supported_regulators; in max77693_pmic_probe()
273 regulators[i].id); in max77693_pmic_probe()
276 &regulators[i], &config); in max77693_pmic_probe()
Dltc3676.c78 struct regulator_dev *regulators[LTC3676_NUM_REGULATORS]; member
323 regulator_notifier_call_chain(ltc3676->regulators[i], in ltc3676_isr()
331 regulator_notifier_call_chain(ltc3676->regulators[i], in ltc3676_isr()
378 ltc3676->regulators[i] = devm_regulator_register(dev, desc, in ltc3676_regulator_probe()
380 if (IS_ERR(ltc3676->regulators[i])) { in ltc3676_regulator_probe()
381 ret = PTR_ERR(ltc3676->regulators[i]); in ltc3676_regulator_probe()
Dmc13783-regulator.c413 num_regulators * sizeof(priv->regulators[0]), in mc13783_regulator_probe()
437 id = pdata->regulators[i].id; in mc13783_regulator_probe()
438 init_data = pdata->regulators[i].init_data; in mc13783_regulator_probe()
447 priv->regulators[i] = devm_regulator_register(&pdev->dev, desc, in mc13783_regulator_probe()
449 if (IS_ERR(priv->regulators[i])) { in mc13783_regulator_probe()
452 return PTR_ERR(priv->regulators[i]); in mc13783_regulator_probe()
Dmax8997-regulator.c855 static struct regulator_desc regulators[] = { variable
942 pdata->regulators = rdata; in max8997_pmic_dt_parse_pdata()
944 for (i = 0; i < ARRAY_SIZE(regulators); i++) in max8997_pmic_dt_parse_pdata()
945 if (!of_node_cmp(reg_np->name, regulators[i].name)) in max8997_pmic_dt_parse_pdata()
948 if (i == ARRAY_SIZE(regulators)) { in max8997_pmic_dt_parse_pdata()
957 &regulators[i]); in max8997_pmic_dt_parse_pdata()
1183 int id = pdata->regulators[i].id; in max8997_pmic_probe()
1187 regulators[id].n_voltages = in max8997_pmic_probe()
1190 regulators[id].volt_table = safeoutvolt; in max8997_pmic_probe()
1191 regulators[id].n_voltages = ARRAY_SIZE(safeoutvolt); in max8997_pmic_probe()
[all …]
Dmc13xxx.h31 struct regulator_dev *regulators[]; member
40 struct platform_device *pdev, struct mc13xxx_regulator *regulators,
49 struct platform_device *pdev, struct mc13xxx_regulator *regulators, in mc13xxx_parse_regulators_dt() argument
Dmc13xxx-regulator-core.c163 struct platform_device *pdev, struct mc13xxx_regulator *regulators, in mc13xxx_parse_regulators_dt() argument
191 if (!regulators[i].desc.name) in mc13xxx_parse_regulators_dt()
194 regulators[i].desc.name)) { in mc13xxx_parse_regulators_dt()
198 &regulators[i].desc); in mc13xxx_parse_regulators_dt()
Dltc3589.c99 struct regulator_dev *regulators[LTC3589_NUM_REGULATORS]; member
421 regulator_notifier_call_chain(ltc3589->regulators[i], in ltc3589_isr()
428 regulator_notifier_call_chain(ltc3589->regulators[i], in ltc3589_isr()
513 ltc3589->regulators[i] = devm_regulator_register(dev, desc, in ltc3589_probe()
515 if (IS_ERR(ltc3589->regulators[i])) { in ltc3589_probe()
516 ret = PTR_ERR(ltc3589->regulators[i]); in ltc3589_probe()
Dtps65217-regulator.c178 static const struct regulator_desc regulators[] = { variable
248 rdev = devm_regulator_register(&pdev->dev, &regulators[i], in tps65217_regulator_probe()
257 ret = tps65217_reg_read(tps, regulators[i].bypass_reg, &val); in tps65217_regulator_probe()
258 tps->strobes[i] = val & regulators[i].bypass_mask; in tps65217_regulator_probe()
Ds2mpa01.c26 #define S2MPA01_REGULATOR_CNT ARRAY_SIZE(regulators)
301 static const struct regulator_desc regulators[] = { variable
355 rdata[i].name = regulators[i].name; in s2mpa01_pmic_probe()
380 config.init_data = pdata->regulators[i].initdata; in s2mpa01_pmic_probe()
388 &regulators[i], &config); in s2mpa01_pmic_probe()
Dmax8907-regulator.c226 struct device_node *np, *regulators; in max8907_regulator_parse_dt() local
233 regulators = of_get_child_by_name(np, "regulators"); in max8907_regulator_parse_dt()
234 if (!regulators) { in max8907_regulator_parse_dt()
239 ret = of_regulator_match(&pdev->dev, regulators, max8907_matches, in max8907_regulator_parse_dt()
241 of_node_put(regulators); in max8907_regulator_parse_dt()
/drivers/misc/lis3lv02d/
Dlis3lv02d_i2c.c48 ret = regulator_bulk_disable(ARRAY_SIZE(lis3->regulators), in lis3_reg_ctrl()
49 lis3->regulators); in lis3_reg_ctrl()
51 ret = regulator_bulk_enable(ARRAY_SIZE(lis3->regulators), in lis3_reg_ctrl()
52 lis3->regulators); in lis3_reg_ctrl()
154 lis3_dev.regulators[0].supply = reg_vdd; in lis3lv02d_i2c_probe()
155 lis3_dev.regulators[1].supply = reg_vdd_io; in lis3lv02d_i2c_probe()
157 ARRAY_SIZE(lis3_dev.regulators), in lis3lv02d_i2c_probe()
158 lis3_dev.regulators); in lis3lv02d_i2c_probe()
185 regulator_bulk_free(ARRAY_SIZE(lis3_dev.regulators), in lis3lv02d_i2c_probe()
186 lis3_dev.regulators); in lis3lv02d_i2c_probe()
[all …]
/drivers/video/fbdev/
Dsimplefb.c188 struct regulator **regulators; member
330 par->regulators = devm_kcalloc(&pdev->dev, count, in simplefb_regulators_init()
332 if (!par->regulators) in simplefb_regulators_init()
353 par->regulators[i++] = regulator; in simplefb_regulators_init()
359 ret = regulator_enable(par->regulators[i]); in simplefb_regulators_init()
364 devm_regulator_put(par->regulators[i]); in simplefb_regulators_init()
365 par->regulators[i] = NULL; in simplefb_regulators_init()
376 if (!par->regulators) in simplefb_regulators_destroy()
380 if (par->regulators[i]) in simplefb_regulators_destroy()
381 regulator_disable(par->regulators[i]); in simplefb_regulators_destroy()
/drivers/media/i2c/
Dmt9t001.c123 struct regulator_bulk_data regulators[2]; member
197 ret = regulator_bulk_enable(ARRAY_SIZE(mt9t001->regulators), in mt9t001_power_on()
198 mt9t001->regulators); in mt9t001_power_on()
205 regulator_bulk_disable(ARRAY_SIZE(mt9t001->regulators), in mt9t001_power_on()
206 mt9t001->regulators); in mt9t001_power_on()
213 regulator_bulk_disable(ARRAY_SIZE(mt9t001->regulators), in mt9t001_power_off()
214 mt9t001->regulators); in mt9t001_power_off()
881 mt9t001->regulators[0].supply = "vdd"; in mt9t001_probe()
882 mt9t001->regulators[1].supply = "vaa"; in mt9t001_probe()
884 ret = devm_regulator_bulk_get(&client->dev, 2, mt9t001->regulators); in mt9t001_probe()

123