Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/iio/adc/
Dmax11100.c31 struct regulator *vref_reg; member
87 vref_uv = regulator_get_voltage(state->vref_reg); in max11100_read_raw()
125 state->vref_reg = devm_regulator_get(&spi->dev, "vref"); in max11100_probe()
126 if (IS_ERR(state->vref_reg)) in max11100_probe()
127 return PTR_ERR(state->vref_reg); in max11100_probe()
129 ret = regulator_enable(state->vref_reg); in max11100_probe()
140 regulator_disable(state->vref_reg); in max11100_probe()
151 regulator_disable(state->vref_reg); in max11100_remove()
/kernel/linux/linux-5.10/drivers/iio/dac/
Dad7303.c45 struct regulator *vref_reg; member
107 return regulator_get_voltage(st->vref_reg); in ad7303_get_vref()
229 st->vref_reg = devm_regulator_get_optional(&spi->dev, "REF"); in ad7303_probe()
230 if (IS_ERR(st->vref_reg)) { in ad7303_probe()
231 ret = PTR_ERR(st->vref_reg); in ad7303_probe()
234 st->vref_reg = NULL; in ad7303_probe()
237 if (st->vref_reg) { in ad7303_probe()
238 ret = regulator_enable(st->vref_reg); in ad7303_probe()
258 if (st->vref_reg) in ad7303_probe()
259 regulator_disable(st->vref_reg); in ad7303_probe()
[all …]
Dad5761.c65 struct regulator *vref_reg; member
295 st->vref_reg = devm_regulator_get_optional(&st->spi->dev, "vref"); in ad5761_get_vref()
296 if (PTR_ERR(st->vref_reg) == -ENODEV) { in ad5761_get_vref()
309 if (IS_ERR(st->vref_reg)) { in ad5761_get_vref()
312 return PTR_ERR(st->vref_reg); in ad5761_get_vref()
315 ret = regulator_enable(st->vref_reg); in ad5761_get_vref()
322 ret = regulator_get_voltage(st->vref_reg); in ad5761_get_vref()
342 regulator_disable(st->vref_reg); in ad5761_get_vref()
343 st->vref_reg = NULL; in ad5761_get_vref()
391 if (!IS_ERR_OR_NULL(st->vref_reg)) in ad5761_probe()
[all …]
Dad5764.c55 struct regulator_bulk_data vref_reg[2]; member
218 return regulator_get_voltage(st->vref_reg[channel / 2].consumer); in ad5764_get_channel_vref()
301 st->vref_reg[0].supply = "vrefAB"; in ad5764_probe()
302 st->vref_reg[1].supply = "vrefCD"; in ad5764_probe()
305 ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_probe()
312 ret = regulator_bulk_enable(ARRAY_SIZE(st->vref_reg), in ad5764_probe()
313 st->vref_reg); in ad5764_probe()
331 regulator_bulk_disable(ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_probe()
343 regulator_bulk_disable(ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_remove()
Dmcp4922.c31 struct regulator *vref_reg; member
132 state->vref_reg = devm_regulator_get(&spi->dev, "vref"); in mcp4922_probe()
133 if (IS_ERR(state->vref_reg)) { in mcp4922_probe()
135 return PTR_ERR(state->vref_reg); in mcp4922_probe()
138 ret = regulator_enable(state->vref_reg); in mcp4922_probe()
145 ret = regulator_get_voltage(state->vref_reg); in mcp4922_probe()
171 regulator_disable(state->vref_reg); in mcp4922_probe()
183 regulator_disable(state->vref_reg); in mcp4922_remove()
Dltc1660.c42 struct regulator *vref_reg; member
60 *val = regulator_get_voltage(priv->vref_reg); in ltc1660_read_raw()
174 priv->vref_reg = devm_regulator_get(&spi->dev, "vref"); in ltc1660_probe()
175 if (IS_ERR(priv->vref_reg)) { in ltc1660_probe()
177 return PTR_ERR(priv->vref_reg); in ltc1660_probe()
180 ret = regulator_enable(priv->vref_reg); in ltc1660_probe()
205 regulator_disable(priv->vref_reg); in ltc1660_probe()
216 regulator_disable(priv->vref_reg); in ltc1660_remove()
Dltc2632.c49 struct regulator *vref_reg; member
326 st->vref_reg = devm_regulator_get_optional(&spi->dev, "vref"); in ltc2632_probe()
327 if (PTR_ERR(st->vref_reg) == -ENODEV) { in ltc2632_probe()
329 st->vref_reg = NULL; in ltc2632_probe()
340 } else if (IS_ERR(st->vref_reg)) { in ltc2632_probe()
343 return PTR_ERR(st->vref_reg); in ltc2632_probe()
346 ret = regulator_enable(st->vref_reg); in ltc2632_probe()
353 st->vref_mv = regulator_get_voltage(st->vref_reg) / 1000; in ltc2632_probe()
382 if (st->vref_reg) in ltc2632_remove()
383 regulator_disable(st->vref_reg); in ltc2632_remove()
Dmax5821.c35 struct regulator *vref_reg; member
319 data->vref_reg = devm_regulator_get(&client->dev, "vref"); in max5821_probe()
320 if (IS_ERR(data->vref_reg)) { in max5821_probe()
321 ret = PTR_ERR(data->vref_reg); in max5821_probe()
327 ret = regulator_enable(data->vref_reg); in max5821_probe()
334 ret = regulator_get_voltage(data->vref_reg); in max5821_probe()
352 regulator_disable(data->vref_reg); in max5821_probe()
365 regulator_disable(data->vref_reg); in max5821_remove()
Dmcp4725.c42 struct regulator *vref_reg; member
322 ret = regulator_get_voltage(data->vref_reg); in mcp4725_read_raw()
432 data->vref_reg = devm_regulator_get(&client->dev, "vref"); in mcp4725_probe()
433 if (IS_ERR(data->vref_reg)) { in mcp4725_probe()
434 err = PTR_ERR(data->vref_reg); in mcp4725_probe()
438 err = regulator_enable(data->vref_reg); in mcp4725_probe()
479 if (data->vref_reg) in mcp4725_probe()
480 regulator_disable(data->vref_reg); in mcp4725_probe()
495 if (data->vref_reg) in mcp4725_remove()
496 regulator_disable(data->vref_reg); in mcp4725_remove()
Dad5449.c64 struct regulator_bulk_data vref_reg[AD5449_MAX_VREFS]; member
154 reg = &st->vref_reg[chan->channel]; in ad5449_read_raw()
289 st->vref_reg[i].supply = ad5449_vref_name(st, i); in ad5449_spi_probe()
292 st->vref_reg); in ad5449_spi_probe()
296 ret = regulator_bulk_enable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe()
328 regulator_bulk_disable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe()
340 regulator_bulk_disable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_remove()
Dad5380.c60 struct regulator *vref_reg; member
405 st->vref_reg = devm_regulator_get(dev, "vref"); in ad5380_probe()
406 if (!IS_ERR(st->vref_reg)) { in ad5380_probe()
407 ret = regulator_enable(st->vref_reg); in ad5380_probe()
414 ret = regulator_get_voltage(st->vref_reg); in ad5380_probe()
439 if (!IS_ERR(st->vref_reg)) in ad5380_probe()
440 regulator_disable(st->vref_reg); in ad5380_probe()
456 if (!IS_ERR(st->vref_reg)) { in ad5380_remove()
457 regulator_disable(st->vref_reg); in ad5380_remove()
Dad5360.c77 struct regulator_bulk_data vref_reg[3]; member
189 return regulator_get_voltage(st->vref_reg[i].consumer); in ad5360_get_channel_vref()
493 st->vref_reg[i].supply = ad5360_vref_name[i]; in ad5360_probe()
496 st->vref_reg); in ad5360_probe()
502 ret = regulator_bulk_enable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_probe()
517 regulator_bulk_disable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_probe()
533 regulator_bulk_disable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_remove()
Dad5770r.c136 struct regulator *vref_reg; member
604 regulator_disable(st->vref_reg); in ad5770r_disable_regulator()
631 st->vref_reg = devm_regulator_get_optional(&spi->dev, "vref"); in ad5770r_probe()
632 if (!IS_ERR(st->vref_reg)) { in ad5770r_probe()
633 ret = regulator_enable(st->vref_reg); in ad5770r_probe()
646 ret = regulator_get_voltage(st->vref_reg); in ad5770r_probe()
652 if (PTR_ERR(st->vref_reg) == -ENODEV) { in ad5770r_probe()
656 return PTR_ERR(st->vref_reg); in ad5770r_probe()
Dad5064.c108 struct regulator_bulk_data vref_reg[AD5064_MAX_VREFS]; member
312 return regulator_get_voltage(st->vref_reg[i].consumer); in ad5064_get_vref()
818 st->vref_reg[i].supply = ad5064_vref_name(st, i); in ad5064_request_vref()
822 st->vref_reg); in ad5064_request_vref()
829 st->vref_reg[0].consumer = devm_regulator_get_optional(dev, "vref"); in ad5064_request_vref()
830 if (!IS_ERR(st->vref_reg[0].consumer)) in ad5064_request_vref()
833 ret = PTR_ERR(st->vref_reg[0].consumer); in ad5064_request_vref()
872 ret = regulator_bulk_enable(ad5064_num_vref(st), st->vref_reg); in ad5064_probe()
898 regulator_bulk_disable(ad5064_num_vref(st), st->vref_reg); in ad5064_probe()
911 regulator_bulk_disable(ad5064_num_vref(st), st->vref_reg); in ad5064_remove()
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dimx6sx-sdb.dts63 vref_reg: vrefddr { label
Dimx6sx-sdb-reva.dts78 vref_reg: vrefddr { label
Dimx6qdl-wandboard-revd1.dtsi90 vref_reg: vrefddr { label
Dimx7-tqma7.dtsi78 vref_reg: vrefddr { label
Dimx7d-cl-som-imx7.dts138 vref_reg: vrefddr { label
Dimx7d-zii-rmu2.dts134 vref_reg: vrefddr { label
Dimx6-logicpd-som.dtsi115 vref_reg: vrefddr { label
Dimx6ul-pico.dtsi157 vref_reg: vrefddr { label
Dimx6q-dmo-edmqmx6.dts198 vref_reg: vrefddr { label
Dimx6q-mccmon6.dts180 vref_reg: vrefddr { label
/kernel/linux/linux-5.10/arch/arm64/boot/dts/freescale/
Dimx8mq-sr-som.dtsi89 vref_reg: vrefddr { label

123