/openbmc/linux/drivers/iio/dac/ |
H A D | ad5761.c | 56 * @vref_reg: reference voltage regulator 65 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() [all …]
|
H A D | ad5764.c | 47 * @vref_reg: vref supply regulators 55 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()
|
H A D | ad7303.c | 32 * @vref_reg: reference to VREF regulator 43 struct regulator *vref_reg; member 105 return regulator_get_voltage(st->vref_reg); in ad7303_get_vref() 235 st->vref_reg = devm_regulator_get_optional(&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() 240 st->vref_reg = NULL; in ad7303_probe() 243 if (st->vref_reg) { in ad7303_probe() 244 ret = regulator_enable(st->vref_reg); in ad7303_probe() 249 st->vref_reg); in ad7303_probe()
|
H A D | mcp4922.c | 33 struct regulator *vref_reg; member 135 state->vref_reg = devm_regulator_get(&spi->dev, "vref"); in mcp4922_probe() 136 if (IS_ERR(state->vref_reg)) in mcp4922_probe() 137 return dev_err_probe(&spi->dev, PTR_ERR(state->vref_reg), in mcp4922_probe() 140 ret = regulator_enable(state->vref_reg); in mcp4922_probe() 147 ret = regulator_get_voltage(state->vref_reg); in mcp4922_probe() 176 regulator_disable(state->vref_reg); in mcp4922_probe() 188 regulator_disable(state->vref_reg); in mcp4922_remove()
|
H A D | ltc1660.c | 42 struct regulator *vref_reg; member 60 *val = regulator_get_voltage(priv->vref_reg); in ltc1660_read_raw() 175 priv->vref_reg = devm_regulator_get(&spi->dev, "vref"); in ltc1660_probe() 176 if (IS_ERR(priv->vref_reg)) in ltc1660_probe() 177 return dev_err_probe(&spi->dev, 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()
|
H A D | ltc2632.c | 44 * @vref_reg: regulator for the reference voltage 50 struct regulator *vref_reg; member 327 st->vref_reg = devm_regulator_get_optional(&spi->dev, "vref"); in ltc2632_probe() 328 if (PTR_ERR(st->vref_reg) == -ENODEV) { in ltc2632_probe() 330 st->vref_reg = NULL; in ltc2632_probe() 341 } else if (IS_ERR(st->vref_reg)) { in ltc2632_probe() 344 return PTR_ERR(st->vref_reg); in ltc2632_probe() 347 ret = regulator_enable(st->vref_reg); in ltc2632_probe() 354 st->vref_mv = regulator_get_voltage(st->vref_reg) / 1000; in ltc2632_probe() 382 if (st->vref_reg) in ltc2632_remove() [all …]
|
H A D | ad5449.c | 55 * @vref_reg: vref supply regulators 64 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()
|
H A D | mcp4725.c | 42 struct regulator *vref_reg; member 335 ret = regulator_get_voltage(data->vref_reg); in mcp4725_read_raw() 445 data->vref_reg = devm_regulator_get(&client->dev, "vref"); in mcp4725_probe() 446 if (IS_ERR(data->vref_reg)) { in mcp4725_probe() 447 err = PTR_ERR(data->vref_reg); in mcp4725_probe() 451 err = regulator_enable(data->vref_reg); in mcp4725_probe() 492 if (data->vref_reg) in mcp4725_probe() 493 regulator_disable(data->vref_reg); in mcp4725_probe() 508 if (data->vref_reg) in mcp4725_remove() 509 regulator_disable(data->vref_reg); in mcp4725_remove()
|
H A D | max5821.c | 35 struct regulator *vref_reg; member 324 data->vref_reg = devm_regulator_get(&client->dev, "vref"); in max5821_probe() 325 if (IS_ERR(data->vref_reg)) in max5821_probe() 326 return dev_err_probe(&client->dev, PTR_ERR(data->vref_reg), in max5821_probe() 329 ret = regulator_enable(data->vref_reg); in max5821_probe() 337 data->vref_reg); in max5821_probe() 344 ret = regulator_get_voltage(data->vref_reg); in max5821_probe()
|
H A D | ad5380.c | 50 * @vref_reg: vref supply regulator 58 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()
|
H A D | ad5360.c | 68 * @vref_reg: vref supply regulators 77 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()
|
H A D | ad5770r.c | 124 * @vref_reg: fixed regulator for reference configuration 136 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()
|
H A D | ltc2688.c | 963 struct regulator *vref_reg; in ltc2688_probe() local 989 vref_reg = devm_regulator_get_optional(dev, "vref"); in ltc2688_probe() 990 if (IS_ERR(vref_reg)) { in ltc2688_probe() 991 if (PTR_ERR(vref_reg) != -ENODEV) in ltc2688_probe() 992 return dev_err_probe(dev, PTR_ERR(vref_reg), in ltc2688_probe() 995 vref_reg = NULL; in ltc2688_probe() 999 ret = regulator_enable(vref_reg); in ltc2688_probe() 1005 vref_reg); in ltc2688_probe() 1009 ret = regulator_get_voltage(vref_reg); in ltc2688_probe() 1016 ret = ltc2688_setup(st, vref_reg); in ltc2688_probe()
|
H A D | ad5064.c | 94 * @vref_reg: vref supply regulators 108 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() 850 regulator_bulk_disable(ad5064_num_vref(st), st->vref_reg); in ad5064_bulk_reg_disable() 878 ret = regulator_bulk_enable(ad5064_num_vref(st), st->vref_reg); in ad5064_probe()
|
/openbmc/linux/drivers/iio/adc/ |
H A D | max11100.c | 32 struct regulator *vref_reg; member 88 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() 138 state->vref_reg); in max11100_probe()
|
H A D | ti-ads7924.c | 135 struct regulator *vref_reg; member 238 vref_uv = regulator_get_voltage(data->vref_reg); in ads7924_read_raw() 393 data->vref_reg = devm_regulator_get(dev, "vref"); in ads7924_probe() 394 if (IS_ERR(data->vref_reg)) in ads7924_probe() 395 return dev_err_probe(dev, PTR_ERR(data->vref_reg), in ads7924_probe() 398 ret = regulator_enable(data->vref_reg); in ads7924_probe() 403 ret = devm_add_action_or_reset(dev, ads7924_reg_disable, data->vref_reg); in ads7924_probe()
|
H A D | ti-tsc2046.c | 144 struct regulator *vref_reg; member 260 if (!priv->vref_reg) in tsc2046_adc_get_cmd() 753 regulator_disable(priv->vref_reg); in tsc2046_adc_regulator_disable() 761 priv->vref_reg = devm_regulator_get_optional(dev, "vref"); in tsc2046_adc_configure_regulator() 762 if (IS_ERR(priv->vref_reg)) { in tsc2046_adc_configure_regulator() 764 if (PTR_ERR(priv->vref_reg) != -ENODEV) in tsc2046_adc_configure_regulator() 765 return PTR_ERR(priv->vref_reg); in tsc2046_adc_configure_regulator() 766 priv->vref_reg = NULL; in tsc2046_adc_configure_regulator() 768 if (!priv->vref_reg) { in tsc2046_adc_configure_regulator() 774 ret = regulator_enable(priv->vref_reg); in tsc2046_adc_configure_regulator() [all …]
|
H A D | ti-ads131e08.c | 95 struct regulator *vref_reg; member 377 if (!st->vref_reg) { in ads131e08_config_reference_voltage() 520 if (st->vref_reg) { in ads131e08_read_raw() 521 ret = regulator_get_voltage(st->vref_reg); in ads131e08_read_raw() 797 regulator_disable(st->vref_reg); in ads131e08_regulator_disable() 875 st->vref_reg = devm_regulator_get_optional(&spi->dev, "vref"); in ads131e08_probe() 876 if (!IS_ERR(st->vref_reg)) { in ads131e08_probe() 877 ret = regulator_enable(st->vref_reg); in ads131e08_probe() 888 if (PTR_ERR(st->vref_reg) != -ENODEV) in ads131e08_probe() 889 return PTR_ERR(st->vref_reg); in ads131e08_probe() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | microchip,mcp3201.yaml | 67 vref-supply = <&vref_reg>; 75 vref-supply = <&vref_reg>;
|
H A D | microchip,mcp3911.yaml | 79 vref-supply = <&vref_reg>;
|
/openbmc/linux/Documentation/devicetree/bindings/iio/dac/ |
H A D | lltc,ltc1660.yaml | 49 vref-supply = <&vref_reg>;
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | imx6sx-sdb.dts | 67 vref_reg: vrefddr { label
|
/openbmc/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6sx-sdb.dts | 63 vref_reg: vrefddr { label
|
H A D | imx6sx-sdb-reva.dts | 78 vref_reg: vrefddr { label
|
H A D | imx6qdl-wandboard-revd1.dtsi | 90 vref_reg: vrefddr { label
|