Home
last modified time | relevance | path

Searched refs:vref_reg (Results 1 – 25 of 42) sorted by relevance

12

/Linux-v4.19/drivers/iio/adc/
Dmax11100.c33 struct regulator *vref_reg; member
89 vref_uv = regulator_get_voltage(state->vref_reg); in max11100_read_raw()
129 state->vref_reg = devm_regulator_get(&spi->dev, "vref"); in max11100_probe()
130 if (IS_ERR(state->vref_reg)) in max11100_probe()
131 return PTR_ERR(state->vref_reg); in max11100_probe()
133 ret = regulator_enable(state->vref_reg); in max11100_probe()
144 regulator_disable(state->vref_reg); in max11100_probe()
155 regulator_disable(state->vref_reg); in max11100_remove()
/Linux-v4.19/drivers/iio/dac/
Dad5761.c65 struct regulator *vref_reg; member
294 st->vref_reg = devm_regulator_get_optional(&st->spi->dev, "vref"); in ad5761_get_vref()
295 if (PTR_ERR(st->vref_reg) == -ENODEV) { in ad5761_get_vref()
308 if (IS_ERR(st->vref_reg)) { in ad5761_get_vref()
311 return PTR_ERR(st->vref_reg); in ad5761_get_vref()
314 ret = regulator_enable(st->vref_reg); in ad5761_get_vref()
321 ret = regulator_get_voltage(st->vref_reg); in ad5761_get_vref()
341 regulator_disable(st->vref_reg); in ad5761_get_vref()
342 st->vref_reg = NULL; in ad5761_get_vref()
389 if (!IS_ERR_OR_NULL(st->vref_reg)) in ad5761_probe()
[all …]
Dad5764.c56 struct regulator_bulk_data vref_reg[2]; member
218 return regulator_get_voltage(st->vref_reg[channel / 2].consumer); in ad5764_get_channel_vref()
300 st->vref_reg[0].supply = "vrefAB"; in ad5764_probe()
301 st->vref_reg[1].supply = "vrefCD"; in ad5764_probe()
304 ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_probe()
311 ret = regulator_bulk_enable(ARRAY_SIZE(st->vref_reg), in ad5764_probe()
312 st->vref_reg); in ad5764_probe()
330 regulator_bulk_disable(ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_probe()
342 regulator_bulk_disable(ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_remove()
Dmcp4922.c41 struct regulator *vref_reg; member
137 state->vref_reg = devm_regulator_get(&spi->dev, "vref"); in mcp4922_probe()
138 if (IS_ERR(state->vref_reg)) { in mcp4922_probe()
140 return PTR_ERR(state->vref_reg); in mcp4922_probe()
143 ret = regulator_enable(state->vref_reg); in mcp4922_probe()
150 ret = regulator_get_voltage(state->vref_reg); in mcp4922_probe()
177 regulator_disable(state->vref_reg); in mcp4922_probe()
189 regulator_disable(state->vref_reg); in mcp4922_remove()
Dad7303.c43 struct regulator *vref_reg; member
104 return regulator_get_voltage(st->vref_reg); in ad7303_get_vref()
235 st->vref_reg = devm_regulator_get(&spi->dev, "REF"); in ad7303_probe()
236 if (IS_ERR(st->vref_reg)) { in ad7303_probe()
237 ret = PTR_ERR(st->vref_reg); in ad7303_probe()
241 ret = regulator_enable(st->vref_reg); in ad7303_probe()
262 if (st->vref_reg) in ad7303_probe()
263 regulator_disable(st->vref_reg); in ad7303_probe()
276 if (st->vref_reg) in ad7303_remove()
277 regulator_disable(st->vref_reg); in ad7303_remove()
Dltc2632.c51 struct regulator *vref_reg; member
250 st->vref_reg = devm_regulator_get_optional(&spi->dev, "vref"); in ltc2632_probe()
251 if (PTR_ERR(st->vref_reg) == -ENODEV) { in ltc2632_probe()
253 st->vref_reg = NULL; in ltc2632_probe()
264 } else if (IS_ERR(st->vref_reg)) { in ltc2632_probe()
267 return PTR_ERR(st->vref_reg); in ltc2632_probe()
270 ret = regulator_enable(st->vref_reg); in ltc2632_probe()
277 st->vref_mv = regulator_get_voltage(st->vref_reg) / 1000; in ltc2632_probe()
307 if (st->vref_reg) in ltc2632_remove()
308 regulator_disable(st->vref_reg); in ltc2632_remove()
Dmax5821.c38 struct regulator *vref_reg; member
327 data->vref_reg = devm_regulator_get(&client->dev, "vref"); in max5821_probe()
328 if (IS_ERR(data->vref_reg)) { in max5821_probe()
329 ret = PTR_ERR(data->vref_reg); in max5821_probe()
335 ret = regulator_enable(data->vref_reg); in max5821_probe()
342 ret = regulator_get_voltage(data->vref_reg); in max5821_probe()
361 regulator_disable(data->vref_reg); in max5821_probe()
374 regulator_disable(data->vref_reg); in max5821_remove()
Dmcp4725.c45 struct regulator *vref_reg; member
330 ret = regulator_get_voltage(data->vref_reg); in mcp4725_read_raw()
453 data->vref_reg = devm_regulator_get(&client->dev, "vref"); in mcp4725_probe()
454 if (IS_ERR(data->vref_reg)) { in mcp4725_probe()
455 err = PTR_ERR(data->vref_reg); in mcp4725_probe()
459 err = regulator_enable(data->vref_reg); in mcp4725_probe()
501 if (data->vref_reg) in mcp4725_probe()
502 regulator_disable(data->vref_reg); in mcp4725_probe()
517 if (data->vref_reg) in mcp4725_remove()
518 regulator_disable(data->vref_reg); in mcp4725_remove()
Dad5449.c64 struct regulator_bulk_data vref_reg[AD5449_MAX_VREFS]; member
153 reg = &st->vref_reg[chan->channel]; in ad5449_read_raw()
288 st->vref_reg[i].supply = ad5449_vref_name(st, i); in ad5449_spi_probe()
291 st->vref_reg); in ad5449_spi_probe()
295 ret = regulator_bulk_enable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe()
326 regulator_bulk_disable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe()
338 regulator_bulk_disable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_remove()
Dad5380.c60 struct regulator *vref_reg; member
403 st->vref_reg = devm_regulator_get(dev, "vref"); in ad5380_probe()
404 if (!IS_ERR(st->vref_reg)) { in ad5380_probe()
405 ret = regulator_enable(st->vref_reg); in ad5380_probe()
412 ret = regulator_get_voltage(st->vref_reg); in ad5380_probe()
437 if (!IS_ERR(st->vref_reg)) in ad5380_probe()
438 regulator_disable(st->vref_reg); in ad5380_probe()
454 if (!IS_ERR(st->vref_reg)) { in ad5380_remove()
455 regulator_disable(st->vref_reg); in ad5380_remove()
Dad5360.c77 struct regulator_bulk_data vref_reg[3]; member
188 return regulator_get_voltage(st->vref_reg[i].consumer); in ad5360_get_channel_vref()
490 st->vref_reg[i].supply = ad5360_vref_name[i]; in ad5360_probe()
493 st->vref_reg); in ad5360_probe()
499 ret = regulator_bulk_enable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_probe()
514 regulator_bulk_disable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_probe()
530 regulator_bulk_disable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_remove()
Dad5064.c108 struct regulator_bulk_data vref_reg[AD5064_MAX_VREFS]; member
311 return regulator_get_voltage(st->vref_reg[i].consumer); in ad5064_get_vref()
832 st->vref_reg[i].supply = ad5064_vref_name(st, i); in ad5064_probe()
835 st->vref_reg); in ad5064_probe()
847 ret = regulator_bulk_enable(ad5064_num_vref(st), st->vref_reg); in ad5064_probe()
874 regulator_bulk_disable(ad5064_num_vref(st), st->vref_reg); in ad5064_probe()
887 regulator_bulk_disable(ad5064_num_vref(st), st->vref_reg); in ad5064_remove()
/Linux-v4.19/Documentation/devicetree/bindings/regulator/
Dpfuze100.txt93 vref_reg: vrefddr {
182 vref_reg: vrefddr {
277 vref_reg: vrefddr {
/Linux-v4.19/Documentation/devicetree/bindings/iio/adc/
Dmcp320x.txt55 vref-supply = <&vref_reg>;
/Linux-v4.19/arch/arm/boot/dts/
Dimx6sx-sdb.dts67 vref_reg: vrefddr { label
Dimx6sx-sdb-reva.dts81 vref_reg: vrefddr { label
Dimx6qdl-wandboard-revd1.dtsi95 vref_reg: vrefddr { label
Dimx7d-cl-som-imx7.dts131 vref_reg: vrefddr { label
Dimx6sx-sabreauto.dts328 vref_reg: vrefddr { label
Dimx6qdl-var-dart.dtsi162 vref_reg: vrefddr { label
Dimx7d-pico.dtsi157 vref_reg: vrefddr { label
Dimx6q-mccmon6.dts183 vref_reg: vrefddr { label
Dimx6sll-evk.dts195 vref_reg: vrefddr { label
Dimx6q-dmo-edmqmx6.dts203 vref_reg: vrefddr { label
Dimx6q-gw5400-a.dts273 vref_reg: vrefddr { label

12