Home
last modified time | relevance | path

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

1234

/drivers/regulator/
DKconfig9 and current regulators within the Linux kernel. It's intended to
16 to both voltage regulators (where voltage output is controllable) and
21 regulators.
36 This driver provides support for fixed voltage regulators,
38 managed regulators and simple non-configurable regulators.
60 tristate "Marvell 88PG86X voltage regulators"
64 This driver supports Marvell 88PG867 and 88PG868 voltage regulators.
69 tristate "Marvell 88PM800 Power regulators"
79 tristate "Marvell 88PM8607 Power regulators"
99 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()
Ds5m8767.c384 static struct regulator_desc regulators[] = { variable
560 pdata->regulators = rdata; in s5m8767_pmic_dt_parse_pdata()
563 for (i = 0; i < ARRAY_SIZE(regulators); i++) in s5m8767_pmic_dt_parse_pdata()
564 if (of_node_name_eq(reg_np, regulators[i].name)) in s5m8767_pmic_dt_parse_pdata()
567 if (i == ARRAY_SIZE(regulators)) { in s5m8767_pmic_dt_parse_pdata()
591 &regulators[i]); in s5m8767_pmic_dt_parse_pdata()
926 unsigned int id = pdata->regulators[i].id; in s5m8767_pmic_probe()
930 BUILD_BUG_ON(ARRAY_SIZE(regulators) != ARRAY_SIZE(reg_voltage_map)); in s5m8767_pmic_probe()
931 if (WARN_ON_ONCE(id >= ARRAY_SIZE(regulators))) in s5m8767_pmic_probe()
936 regulators[id].n_voltages = in s5m8767_pmic_probe()
[all …]
Dwm8400-regulator.c115 static struct regulator_desc regulators[] = { variable
204 struct wm8400 *wm8400 = container_of(pdev, struct wm8400, regulators[pdev->id]); in wm8400_regulator_probe()
213 rdev = devm_regulator_register(&pdev->dev, &regulators[pdev->id], in wm8400_regulator_probe()
246 if (wm8400->regulators[reg].name) in wm8400_register_regulator()
251 wm8400->regulators[reg].name = "wm8400-regulator"; in wm8400_register_regulator()
252 wm8400->regulators[reg].id = reg; in wm8400_register_regulator()
253 wm8400->regulators[reg].dev.parent = dev; in wm8400_register_regulator()
254 wm8400->regulators[reg].dev.platform_data = initdata; in wm8400_register_regulator()
256 return platform_device_register(&wm8400->regulators[reg]); in wm8400_register_regulator()
Daxp20x-regulator.c1072 struct device_node *np, *regulators; in axp20x_regulator_parse_dt() local
1080 regulators = of_get_child_by_name(np, "regulators"); in axp20x_regulator_parse_dt()
1081 if (!regulators) { in axp20x_regulator_parse_dt()
1084 of_property_read_u32(regulators, "x-powers,dcdc-freq", &dcdcfreq); in axp20x_regulator_parse_dt()
1089 of_node_put(regulators); in axp20x_regulator_parse_dt()
1210 const struct regulator_desc *regulators; in axp20x_regulator_probe() local
1225 regulators = axp20x_regulators; in axp20x_regulator_probe()
1230 regulators = axp22x_regulators; in axp20x_regulator_probe()
1236 regulators = axp803_regulators; in axp20x_regulator_probe()
1242 regulators = axp806_regulators; in axp20x_regulator_probe()
[all …]
Dmax8998.c512 static const struct regulator_desc regulators[] = { variable
598 pdata->regulators = rdata; in max8998_pmic_dt_parse_pdata()
599 for (i = 0; i < ARRAY_SIZE(regulators); ++i) { in max8998_pmic_dt_parse_pdata()
601 regulators[i].name); in max8998_pmic_dt_parse_pdata()
605 rdata->id = regulators[i].id; in max8998_pmic_dt_parse_pdata()
608 &regulators[i]); in max8998_pmic_dt_parse_pdata()
612 pdata->num_regulators = rdata - pdata->regulators; in max8998_pmic_dt_parse_pdata()
733 while (regulators[index].min_uV + in max8998_pmic_probe()
734 regulators[index].uV_step * i in max8998_pmic_probe()
763 while (regulators[index].min_uV + in max8998_pmic_probe()
[all …]
Drn5t618-regulator.c104 const struct regulator_desc *regulators; in rn5t618_regulator_probe() local
110 regulators = rn5t567_regulators; in rn5t618_regulator_probe()
114 regulators = rn5t618_regulators; in rn5t618_regulator_probe()
118 regulators = rc5t619_regulators; in rn5t618_regulator_probe()
130 &regulators[i], in rn5t618_regulator_probe()
134 regulators[i].name); in rn5t618_regulator_probe()
Dlp873x-regulator.c55 static const struct lp873x_regulator regulators[]; variable
102 ret = regmap_update_bits(lp873->regmap, regulators[id].ctrl2_reg, in lp873x_buck_set_ramp_delay()
141 static const struct lp873x_regulator regulators[] = { variable
176 for (i = 0; i < ARRAY_SIZE(regulators); i++) { in lp873x_regulator_probe()
177 rdev = devm_regulator_register(&pdev->dev, &regulators[i].desc, in lp873x_regulator_probe()
Dhi655x-regulator.c150 static const struct hi655x_regulator regulators[] = { variable
184 for (i = 0; i < ARRAY_SIZE(regulators); i++) { in hi655x_regulator_probe()
185 config.driver_data = (void *) &regulators[i]; in hi655x_regulator_probe()
188 &regulators[i].rdesc, in hi655x_regulator_probe()
192 regulators[i].rdesc.name); in hi655x_regulator_probe()
Dda9063-regulator.c690 struct da9063_regulators *regulators = data; in da9063_ldo_lim_event() local
691 struct da9063 *hw = regulators->regulator[0].hw; in da9063_ldo_lim_event()
699 for (i = regulators->n_regulators - 1; i >= 0; i--) { in da9063_ldo_lim_event()
700 regl = &regulators->regulator[i]; in da9063_ldo_lim_event()
813 struct da9063_regulators *regulators; in da9063_regulator_probe() local
858 regulators = devm_kzalloc(&pdev->dev, struct_size(regulators, in da9063_regulator_probe()
860 if (!regulators) in da9063_regulator_probe()
863 regulators->n_regulators = n_regulators; in da9063_regulator_probe()
864 platform_set_drvdata(pdev, regulators); in da9063_regulator_probe()
869 while (n < regulators->n_regulators) { in da9063_regulator_probe()
[all …]
Dda9062-regulator.c891 struct da9062_regulators *regulators = data; in da9062_ldo_lim_event() local
892 struct da9062 *hw = regulators->regulator[0].hw; in da9062_ldo_lim_event()
904 for (i = regulators->n_regulators - 1; i >= 0; i--) { in da9062_ldo_lim_event()
905 regl = &regulators->regulator[i]; in da9062_ldo_lim_event()
923 struct da9062_regulators *regulators; in da9062_regulator_probe() local
945 regulators = devm_kzalloc(&pdev->dev, struct_size(regulators, regulator, in da9062_regulator_probe()
947 if (!regulators) in da9062_regulator_probe()
950 regulators->n_regulators = max_regulators; in da9062_regulator_probe()
951 platform_set_drvdata(pdev, regulators); in da9062_regulator_probe()
953 for (n = 0; n < regulators->n_regulators; n++) { in da9062_regulator_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()
/drivers/misc/lis3lv02d/
Dlis3lv02d_i2c.c35 ret = regulator_bulk_disable(ARRAY_SIZE(lis3->regulators), in lis3_reg_ctrl()
36 lis3->regulators); in lis3_reg_ctrl()
38 ret = regulator_bulk_enable(ARRAY_SIZE(lis3->regulators), in lis3_reg_ctrl()
39 lis3->regulators); in lis3_reg_ctrl()
141 lis3_dev.regulators[0].supply = reg_vdd; in lis3lv02d_i2c_probe()
142 lis3_dev.regulators[1].supply = reg_vdd_io; in lis3lv02d_i2c_probe()
144 ARRAY_SIZE(lis3_dev.regulators), in lis3lv02d_i2c_probe()
145 lis3_dev.regulators); in lis3lv02d_i2c_probe()
172 regulator_bulk_free(ARRAY_SIZE(lis3_dev.regulators), in lis3lv02d_i2c_probe()
173 lis3_dev.regulators); in lis3lv02d_i2c_probe()
[all …]
/drivers/input/keyboard/
Dtm2-touchkey.c51 struct regulator_bulk_data regulators[3]; member
115 error = regulator_bulk_enable(ARRAY_SIZE(touchkey->regulators), in tm2_touchkey_power_enable()
116 touchkey->regulators); in tm2_touchkey_power_enable()
130 regulator_bulk_disable(ARRAY_SIZE(touchkey->regulators), in tm2_touchkey_power_disable()
131 touchkey->regulators); in tm2_touchkey_power_disable()
205 touchkey->regulators[0].supply = "vcc"; in tm2_touchkey_probe()
206 touchkey->regulators[1].supply = "vdd"; in tm2_touchkey_probe()
207 touchkey->regulators[2].supply = "vddio"; in tm2_touchkey_probe()
209 ARRAY_SIZE(touchkey->regulators), in tm2_touchkey_probe()
210 touchkey->regulators); in tm2_touchkey_probe()
[all …]
/drivers/gpu/drm/panel/
Dpanel-samsung-db7430.c66 struct regulator_bulk_data regulators[2]; member
99 ret = regulator_bulk_enable(ARRAY_SIZE(db->regulators), in db7430_power_on()
100 db->regulators); in db7430_power_on()
172 return regulator_bulk_disable(ARRAY_SIZE(db->regulators), in db7430_power_off()
173 db->regulators); in db7430_power_off()
283 db->regulators[0].supply = "vci"; in db7430_probe()
284 db->regulators[1].supply = "vccio"; in db7430_probe()
286 ARRAY_SIZE(db->regulators), in db7430_probe()
287 db->regulators); in db7430_probe()
Dpanel-widechips-ws2401.c75 struct regulator_bulk_data regulators[2]; member
134 ret = regulator_bulk_enable(ARRAY_SIZE(ws->regulators), in ws2401_power_on()
135 ws->regulators); in ws2401_power_on()
227 return regulator_bulk_disable(ARRAY_SIZE(ws->regulators), in ws2401_power_off()
228 ws->regulators); in ws2401_power_off()
359 ws->regulators[0].supply = "vci"; in ws2401_probe()
360 ws->regulators[1].supply = "vccio"; in ws2401_probe()
362 ARRAY_SIZE(ws->regulators), in ws2401_probe()
363 ws->regulators); in ws2401_probe()
/drivers/input/touchscreen/
Dcy8ctma140.c49 struct regulator_bulk_data regulators[2]; member
175 error = regulator_bulk_enable(ARRAY_SIZE(ts->regulators), in cy8ctma140_power_up()
176 ts->regulators); in cy8ctma140_power_up()
189 regulator_bulk_disable(ARRAY_SIZE(ts->regulators), in cy8ctma140_power_down()
190 ts->regulators); in cy8ctma140_power_down()
258 ts->regulators[0].supply = "vcpin"; in cy8ctma140_probe()
259 ts->regulators[1].supply = "vdd"; in cy8ctma140_probe()
260 error = devm_regulator_bulk_get(dev, ARRAY_SIZE(ts->regulators), in cy8ctma140_probe()
261 ts->regulators); in cy8ctma140_probe()
Ds6sy761.c103 struct regulator_bulk_data regulators[2]; member
300 ret = regulator_bulk_enable(ARRAY_SIZE(sdata->regulators), in s6sy761_power_on()
301 sdata->regulators); in s6sy761_power_on()
388 regulator_bulk_disable(ARRAY_SIZE(sdata->regulators), in s6sy761_power_off()
389 sdata->regulators); in s6sy761_power_off()
411 sdata->regulators[S6SY761_REGULATOR_VDD].supply = "vdd"; in s6sy761_probe()
412 sdata->regulators[S6SY761_REGULATOR_AVDD].supply = "avdd"; in s6sy761_probe()
414 ARRAY_SIZE(sdata->regulators), in s6sy761_probe()
415 sdata->regulators); in s6sy761_probe()
Dsilead.c70 struct regulator_bulk_data regulators[2]; member
494 regulator_bulk_disable(ARRAY_SIZE(data->regulators), data->regulators); in silead_disable_regulator()
529 data->regulators[0].supply = "vddio"; in silead_ts_probe()
530 data->regulators[1].supply = "avdd"; in silead_ts_probe()
531 error = devm_regulator_bulk_get(dev, ARRAY_SIZE(data->regulators), in silead_ts_probe()
532 data->regulators); in silead_ts_probe()
540 error = regulator_bulk_enable(ARRAY_SIZE(data->regulators), in silead_ts_probe()
541 data->regulators); in silead_ts_probe()
/drivers/gpu/drm/panfrost/
Dpanfrost_device.c88 pfdev->regulators = devm_kcalloc(pfdev->dev, pfdev->comp->num_supplies, in panfrost_regulator_init()
89 sizeof(*pfdev->regulators), in panfrost_regulator_init()
91 if (!pfdev->regulators) in panfrost_regulator_init()
95 pfdev->regulators[i].supply = pfdev->comp->supply_names[i]; in panfrost_regulator_init()
99 pfdev->regulators); in panfrost_regulator_init()
108 pfdev->regulators); in panfrost_regulator_init()
119 if (!pfdev->regulators) in panfrost_regulator_fini()
122 regulator_bulk_disable(pfdev->comp->num_supplies, pfdev->regulators); in panfrost_regulator_fini()
/drivers/video/fbdev/
Dsimplefb.c188 struct regulator **regulators; member
340 par->regulators = devm_kcalloc(&pdev->dev, count, in simplefb_regulators_get()
342 if (!par->regulators) in simplefb_regulators_get()
363 par->regulators[i++] = regulator; in simplefb_regulators_get()
377 ret = regulator_enable(par->regulators[i]); in simplefb_regulators_enable()
382 devm_regulator_put(par->regulators[i]); in simplefb_regulators_enable()
383 par->regulators[i] = NULL; in simplefb_regulators_enable()
393 if (!par->regulators || !par->regulators_enabled) in simplefb_regulators_destroy()
397 if (par->regulators[i]) in simplefb_regulators_destroy()
398 regulator_disable(par->regulators[i]); in simplefb_regulators_destroy()
/drivers/iio/accel/
Dbma400_core.c57 struct regulator_bulk_data regulators[BMA400_NUM_REGULATORS]; member
581 data->regulators[BMA400_VDD_REGULATOR].supply = "vdd"; in bma400_init()
582 data->regulators[BMA400_VDDIO_REGULATOR].supply = "vddio"; in bma400_init()
584 ARRAY_SIZE(data->regulators), in bma400_init()
585 data->regulators); in bma400_init()
594 ret = regulator_bulk_enable(ARRAY_SIZE(data->regulators), in bma400_init()
595 data->regulators); in bma400_init()
644 regulator_bulk_disable(ARRAY_SIZE(data->regulators), in bma400_init()
645 data->regulators); in bma400_init()
841 regulator_bulk_disable(ARRAY_SIZE(data->regulators), in bma400_remove()
[all …]
/drivers/mfd/
Drohm-bd9576.c140 struct mfd_cell *regulators; in bd957x_i2c_probe() local
142 regulators = &bd9576_mfd_cells[BD957X_REGULATOR_CELL]; in bd957x_i2c_probe()
143 regulators->resources = bd9576_regulator_irqs; in bd957x_i2c_probe()
144 regulators->num_resources = ARRAY_SIZE(bd9576_regulator_irqs); in bd957x_i2c_probe()
/drivers/gpu/drm/tiny/
Dsimpledrm.c210 struct regulator **regulators; member
362 if (sdev->regulators[i]) { in simpledrm_device_release_regulators()
363 regulator_disable(sdev->regulators[i]); in simpledrm_device_release_regulators()
364 regulator_put(sdev->regulators[i]); in simpledrm_device_release_regulators()
393 sdev->regulators = drmm_kzalloc(dev, in simpledrm_device_init_regulators()
394 count * sizeof(sdev->regulators[0]), in simpledrm_device_init_regulators()
396 if (!sdev->regulators) in simpledrm_device_init_regulators()
427 sdev->regulators[i++] = regulator; in simpledrm_device_init_regulators()
438 if (sdev->regulators[i]) { in simpledrm_device_init_regulators()
439 regulator_disable(sdev->regulators[i]); in simpledrm_device_init_regulators()
[all …]
/drivers/opp/
Dcore.c245 if (!opp_table->regulators) in dev_pm_opp_get_max_volt_latency()
278 reg = opp_table->regulators[i]; in dev_pm_opp_get_max_volt_latency()
756 struct regulator *reg = opp_table->regulators[0]; in _generic_set_opp_regulator()
857 data->regulators = opp_table->regulators; in _set_opp_custom()
986 if (opp_table->regulators) in _disable_opp_table()
987 regulator_disable(opp_table->regulators[0]); in _disable_opp_table()
1043 } else if (opp_table->regulators) { in _set_opp()
1613 if (!opp_table->regulators) in _opp_supported_by_regulators()
1617 reg = opp_table->regulators[i]; in _opp_supported_by_regulators()
1986 if (opp_table->regulators) in dev_pm_opp_set_regulators()
[all …]

1234