Home
last modified time | relevance | path

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

123

/linux-4.19.296/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 88PG86X voltage regulators"
62 This driver supports Marvell 88PG867 and 88PG868 voltage regulators.
67 tristate "Marvell 88PM800 Power regulators"
77 tristate "Marvell 88PM8607 Power regulators"
96 and four low-dropout linear regulators, along with a ActivePath
[all …]
Dtps65086-regulator.c125 static struct tps65086_regulator regulators[] = { variable
177 regulators[desc->id].desc.linear_ranges = in tps65086_of_parse_cb()
179 regulators[desc->id].desc.n_linear_ranges = in tps65086_of_parse_cb()
185 regulators[desc->id].desc.linear_ranges = in tps65086_of_parse_cb()
187 regulators[desc->id].desc.n_linear_ranges = in tps65086_of_parse_cb()
198 regulators[desc->id].decay_reg, in tps65086_of_parse_cb()
199 regulators[desc->id].decay_mask, in tps65086_of_parse_cb()
200 regulators[desc->id].decay_mask); in tps65086_of_parse_cb()
224 for (i = 0; i < ARRAY_SIZE(regulators); i++) { in tps65086_regulator_probe()
225 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()
Daxp20x-regulator.c560 struct device_node *np, *regulators; in axp20x_regulator_parse_dt() local
568 regulators = of_get_child_by_name(np, "regulators"); in axp20x_regulator_parse_dt()
569 if (!regulators) { in axp20x_regulator_parse_dt()
572 of_property_read_u32(regulators, "x-powers,dcdc-freq", &dcdcfreq); in axp20x_regulator_parse_dt()
577 of_node_put(regulators); in axp20x_regulator_parse_dt()
695 const struct regulator_desc *regulators; in axp20x_regulator_probe() local
710 regulators = axp20x_regulators; in axp20x_regulator_probe()
715 regulators = axp22x_regulators; in axp20x_regulator_probe()
721 regulators = axp803_regulators; in axp20x_regulator_probe()
727 regulators = axp806_regulators; in axp20x_regulator_probe()
[all …]
Ds5m8767.c388 static struct regulator_desc regulators[] = { variable
564 pdata->regulators = rdata; in s5m8767_pmic_dt_parse_pdata()
567 for (i = 0; i < ARRAY_SIZE(regulators); i++) in s5m8767_pmic_dt_parse_pdata()
568 if (!of_node_cmp(reg_np->name, regulators[i].name)) in s5m8767_pmic_dt_parse_pdata()
571 if (i == ARRAY_SIZE(regulators)) { in s5m8767_pmic_dt_parse_pdata()
590 &regulators[i]); in s5m8767_pmic_dt_parse_pdata()
925 unsigned int id = pdata->regulators[i].id; in s5m8767_pmic_probe()
929 BUILD_BUG_ON(ARRAY_SIZE(regulators) != ARRAY_SIZE(reg_voltage_map)); in s5m8767_pmic_probe()
930 if (WARN_ON_ONCE(id >= ARRAY_SIZE(regulators))) in s5m8767_pmic_probe()
935 regulators[id].n_voltages = in s5m8767_pmic_probe()
[all …]
Dlp873x-regulator.c51 static const struct lp873x_regulator regulators[]; variable
98 ret = regmap_update_bits(lp873->regmap, regulators[id].ctrl2_reg, in lp873x_buck_set_ramp_delay()
122 regulators[id].ctrl2_reg, in lp873x_buck_set_current_limit()
137 ret = regmap_read(lp873->regmap, regulators[id].ctrl2_reg, &val); in lp873x_buck_get_current_limit()
174 static const struct lp873x_regulator regulators[] = { variable
209 for (i = 0; i < ARRAY_SIZE(regulators); i++) { in lp873x_regulator_probe()
210 rdev = devm_regulator_register(&pdev->dev, &regulators[i].desc, in lp873x_regulator_probe()
Drn5t618-regulator.c110 struct regulator_desc *regulators; in rn5t618_regulator_probe() local
116 regulators = rn5t567_regulators; in rn5t618_regulator_probe()
120 regulators = rn5t618_regulators; in rn5t618_regulator_probe()
124 regulators = rc5t619_regulators; in rn5t618_regulator_probe()
136 &regulators[i], in rn5t618_regulator_probe()
140 regulators[i].name); in rn5t618_regulator_probe()
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()
Dlp87565-regulator.c46 static const struct lp87565_regulator regulators[]; variable
88 ret = regmap_update_bits(lp87565->regmap, regulators[id].ctrl2_reg, in lp87565_buck_set_ramp_delay()
116 regulators[id].ctrl2_reg, in lp87565_buck_set_current_limit()
131 ret = regmap_read(lp87565->regmap, regulators[id].ctrl2_reg, &val); in lp87565_buck_get_current_limit()
157 static const struct lp87565_regulator regulators[] = { variable
211 rdev = devm_regulator_register(&pdev->dev, &regulators[i].desc, in lp87565_regulator_probe()
Dmax8998.c457 static struct regulator_desc regulators[] = { variable
667 pdata->regulators = rdata; in max8998_pmic_dt_parse_pdata()
668 for (i = 0; i < ARRAY_SIZE(regulators); ++i) { in max8998_pmic_dt_parse_pdata()
670 regulators[i].name); in max8998_pmic_dt_parse_pdata()
674 rdata->id = regulators[i].id; in max8998_pmic_dt_parse_pdata()
677 &regulators[i]); in max8998_pmic_dt_parse_pdata()
681 pdata->num_regulators = rdata - pdata->regulators; in max8998_pmic_dt_parse_pdata()
843 int id = pdata->regulators[i].id; in max8998_pmic_probe()
847 if (desc && regulators[index].ops != &max8998_others_ops) { in max8998_pmic_probe()
850 regulators[index].n_voltages = count; in max8998_pmic_probe()
[all …]
Dact8865-regulator.c428 pdata->regulators = devm_kcalloc(dev, in act8865_pdata_from_dt()
432 if (!pdata->regulators) in act8865_pdata_from_dt()
436 regulator = pdata->regulators; in act8865_pdata_from_dt()
466 if (pdata->regulators[i].id == id) in act8865_get_regulator_data()
467 return &pdata->regulators[i]; in act8865_get_regulator_data()
486 const struct regulator_desc *regulators; in act8865_pmic_probe() local
516 regulators = act8600_regulators; in act8865_pmic_probe()
523 regulators = act8846_regulators; in act8865_pmic_probe()
531 regulators = act8865_alt_regulators; in act8865_pmic_probe()
534 regulators = act8865_regulators; in act8865_pmic_probe()
[all …]
Dmax77693-regulator.c232 const struct regulator_desc *regulators; in max77693_pmic_probe() local
241 regulators = max77693_supported_regulators; in max77693_pmic_probe()
246 regulators = max77843_supported_regulators; in max77693_pmic_probe()
259 regulators[i].id); in max77693_pmic_probe()
262 &regulators[i], &config); in max77693_pmic_probe()
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
Dda9063-regulator.c604 struct da9063_regulators *regulators = data; in da9063_ldo_lim_event() local
605 struct da9063 *hw = regulators->regulator[0].hw; in da9063_ldo_lim_event()
613 for (i = regulators->n_regulators - 1; i >= 0; i--) { in da9063_ldo_lim_event()
614 regl = &regulators->regulator[i]; in da9063_ldo_lim_event()
737 struct da9063_regulators *regulators; in da9063_regulator_probe() local
789 regulators = devm_kzalloc(&pdev->dev, size, GFP_KERNEL); in da9063_regulator_probe()
790 if (!regulators) in da9063_regulator_probe()
793 regulators->n_regulators = n_regulators; in da9063_regulator_probe()
794 platform_set_drvdata(pdev, regulators); in da9063_regulator_probe()
799 while (n < regulators->n_regulators) { in da9063_regulator_probe()
[all …]
Dmc13783-regulator.c409 struct_size(priv, regulators, num_regulators), in mc13783_regulator_probe()
433 id = pdata->regulators[i].id; in mc13783_regulator_probe()
434 init_data = pdata->regulators[i].init_data; in mc13783_regulator_probe()
443 priv->regulators[i] = devm_regulator_register(&pdev->dev, desc, in mc13783_regulator_probe()
445 if (IS_ERR(priv->regulators[i])) { in mc13783_regulator_probe()
448 return PTR_ERR(priv->regulators[i]); in mc13783_regulator_probe()
Dsc2731-regulator.c149 static struct regulator_desc regulators[] = { variable
232 for (i = 0; i < ARRAY_SIZE(regulators); i++) { in sc2731_regulator_probe()
233 rdev = devm_regulator_register(&pdev->dev, &regulators[i], in sc2731_regulator_probe()
237 regulators[i].name); in sc2731_regulator_probe()
Dmc13xxx-regulator-core.c159 struct platform_device *pdev, struct mc13xxx_regulator *regulators, in mc13xxx_parse_regulators_dt() argument
187 if (!regulators[i].desc.name) in mc13xxx_parse_regulators_dt()
190 regulators[i].desc.name)) { in mc13xxx_parse_regulators_dt()
194 &regulators[i].desc); in mc13xxx_parse_regulators_dt()
Dda9062-regulator.c958 struct da9062_regulators *regulators = data; in da9062_ldo_lim_event() local
959 struct da9062 *hw = regulators->regulator[0].hw; in da9062_ldo_lim_event()
971 for (i = regulators->n_regulators - 1; i >= 0; i--) { in da9062_ldo_lim_event()
972 regl = &regulators->regulator[i]; in da9062_ldo_lim_event()
990 struct da9062_regulators *regulators; in da9062_regulator_probe() local
1015 regulators = devm_kzalloc(&pdev->dev, size, GFP_KERNEL); in da9062_regulator_probe()
1016 if (!regulators) in da9062_regulator_probe()
1019 regulators->n_regulators = max_regulators; in da9062_regulator_probe()
1020 platform_set_drvdata(pdev, regulators); in da9062_regulator_probe()
1023 while (n < regulators->n_regulators) { in da9062_regulator_probe()
[all …]
Dltc3676.c79 struct regulator_dev *regulators[LTC3676_NUM_REGULATORS]; member
341 regulator_notifier_call_chain(ltc3676->regulators[i], in ltc3676_isr()
349 regulator_notifier_call_chain(ltc3676->regulators[i], in ltc3676_isr()
396 ltc3676->regulators[i] = devm_regulator_register(dev, desc, in ltc3676_regulator_probe()
398 if (IS_ERR(ltc3676->regulators[i])) { in ltc3676_regulator_probe()
399 ret = PTR_ERR(ltc3676->regulators[i]); in ltc3676_regulator_probe()
Dtps65912-regulator.c80 static const struct regulator_desc regulators[] = { variable
139 for (i = 0; i < ARRAY_SIZE(regulators); i++) { in tps65912_regulator_probe()
140 rdev = devm_regulator_register(&pdev->dev, &regulators[i], in tps65912_regulator_probe()
Dmax8997-regulator.c837 static struct regulator_desc regulators[] = { variable
925 pdata->regulators = rdata; in max8997_pmic_dt_parse_pdata()
927 for (i = 0; i < ARRAY_SIZE(regulators); i++) in max8997_pmic_dt_parse_pdata()
928 if (!of_node_cmp(reg_np->name, regulators[i].name)) in max8997_pmic_dt_parse_pdata()
931 if (i == ARRAY_SIZE(regulators)) { in max8997_pmic_dt_parse_pdata()
940 &regulators[i]); in max8997_pmic_dt_parse_pdata()
1166 int id = pdata->regulators[i].id; in max8997_pmic_probe()
1170 regulators[id].n_voltages = in max8997_pmic_probe()
1173 regulators[id].volt_table = safeoutvolt; in max8997_pmic_probe()
1174 regulators[id].n_voltages = ARRAY_SIZE(safeoutvolt); in max8997_pmic_probe()
[all …]
Dtps65218-regulator.c262 static const struct regulator_desc regulators[] = { variable
333 for (i = 0; i < ARRAY_SIZE(regulators); i++) { in tps65218_regulator_probe()
334 rdev = devm_regulator_register(&pdev->dev, &regulators[i], in tps65218_regulator_probe()
342 ret = regmap_read(tps->regmap, regulators[i].bypass_reg, &val); in tps65218_regulator_probe()
346 tps->strobes[i] = val & regulators[i].bypass_mask; in tps65218_regulator_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()
Das3711-regulator.c189 struct device_node *regulators = in as3711_regulator_parse_dt() local
194 if (!regulators) { in as3711_regulator_parse_dt()
199 ret = of_regulator_match(dev->parent, regulators, in as3711_regulator_parse_dt()
201 of_node_put(regulators); in as3711_regulator_parse_dt()
/linux-4.19.296/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 …]

123