Home
last modified time | relevance | path

Searched refs:vref (Results 1 – 25 of 434) sorted by relevance

12345678910>>...18

/linux/drivers/iio/adc/
A Dsd_adc_modulator.c31 struct regulator *vref; member
39 if (priv->vref) in iio_sd_mod_enable()
40 return regulator_enable(priv->vref); in iio_sd_mod_enable()
49 if (priv->vref) in iio_sd_mod_disable()
50 regulator_disable(priv->vref); in iio_sd_mod_disable()
106 struct regulator *vref; in iio_sd_mod_probe() local
122 vref = devm_regulator_get_optional(dev, "vref"); in iio_sd_mod_probe()
123 if (IS_ERR(vref)) { in iio_sd_mod_probe()
124 if (PTR_ERR(vref) != -ENODEV) in iio_sd_mod_probe()
131 ret = regulator_get_voltage(vref); in iio_sd_mod_probe()
[all …]
A Drcar-gyroadc.c68 struct regulator *vref[8]; member
181 unsigned int vref; in rcar_gyroadc_read_raw() local
189 consumer = priv->vref[0]; in rcar_gyroadc_read_raw()
227 *val = vref / 1000; in rcar_gyroadc_read_raw()
321 struct regulator *vref; in rcar_gyroadc_parse_subdevs() local
395 if (IS_ERR(vref)) { in rcar_gyroadc_parse_subdevs()
398 return PTR_ERR(vref); in rcar_gyroadc_parse_subdevs()
401 priv->vref[reg] = vref; in rcar_gyroadc_parse_subdevs()
441 if (!priv->vref[i]) in rcar_gyroadc_deinit_supplies()
444 regulator_disable(priv->vref[i]); in rcar_gyroadc_deinit_supplies()
[all …]
A Dlpc18xx_adc.c42 struct regulator *vref; member
104 *val = regulator_get_voltage(adc->vref) / 1000; in lpc18xx_adc_read_raw()
124 static void lpc18xx_regulator_disable(void *vref) in lpc18xx_regulator_disable() argument
126 regulator_disable(vref); in lpc18xx_regulator_disable()
154 adc->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_adc_probe()
155 if (IS_ERR(adc->vref)) in lpc18xx_adc_probe()
156 return dev_err_probe(&pdev->dev, PTR_ERR(adc->vref), in lpc18xx_adc_probe()
165 ret = regulator_enable(adc->vref); in lpc18xx_adc_probe()
171 ret = devm_add_action_or_reset(&pdev->dev, lpc18xx_regulator_disable, adc->vref); in lpc18xx_adc_probe()
A Dmax11205.c34 struct regulator *vref; member
53 reg_mv = regulator_get_voltage(st->vref); in max11205_read_raw()
127 st->vref = devm_regulator_get(&spi->dev, "vref"); in max11205_probe()
128 if (IS_ERR(st->vref)) in max11205_probe()
129 return dev_err_probe(&spi->dev, PTR_ERR(st->vref), in max11205_probe()
132 ret = regulator_enable(st->vref); in max11205_probe()
136 ret = devm_add_action_or_reset(&spi->dev, max11205_reg_disable, st->vref); in max11205_probe()
A Dnpcm_adc.c34 struct regulator *vref; member
174 if (!IS_ERR(info->vref)) { in npcm_adc_read_raw()
175 vref_uv = regulator_get_voltage(info->vref); in npcm_adc_read_raw()
261 if (!IS_ERR(info->vref)) { in npcm_adc_probe()
262 ret = regulator_enable(info->vref); in npcm_adc_probe()
275 if (PTR_ERR(info->vref) != -ENODEV) { in npcm_adc_probe()
276 ret = PTR_ERR(info->vref); in npcm_adc_probe()
315 if (!IS_ERR(info->vref)) in npcm_adc_probe()
316 regulator_disable(info->vref); in npcm_adc_probe()
333 if (!IS_ERR(info->vref)) in npcm_adc_remove()
[all …]
A Dad799x.c128 struct regulator *vref; member
308 if (st->vref) in ad799x_read_raw()
816 if (IS_ERR(st->vref)) { in ad799x_probe()
818 st->vref = NULL; in ad799x_probe()
826 if (st->vref) { in ad799x_probe()
838 st->vref = NULL; in ad799x_probe()
885 if (st->vref) in ad799x_probe()
901 if (st->vref) in ad799x_remove()
912 if (st->vref) in ad799x_suspend()
931 if (st->vref) { in ad799x_resume()
[all …]
A Dmax1241.c25 struct regulator *vref; member
94 vref_uV = regulator_get_voltage(adc->vref); in max1241_read_raw()
118 err = regulator_disable(adc->vref); in max1241_disable_vref_action()
143 adc->vref = devm_regulator_get(dev, "vref"); in max1241_probe()
144 if (IS_ERR(adc->vref)) in max1241_probe()
145 return dev_err_probe(dev, PTR_ERR(adc->vref), in max1241_probe()
148 ret = regulator_enable(adc->vref); in max1241_probe()
A Dad7949.c82 struct regulator *vref; member
239 ret = regulator_get_voltage(ad7949_adc->vref); in ad7949_spi_read_raw()
368 ad7949_adc->vref = devm_regulator_get_optional(dev, "vrefin"); in ad7949_spi_probe()
369 if (IS_ERR(ad7949_adc->vref)) { in ad7949_spi_probe()
370 ret = PTR_ERR(ad7949_adc->vref); in ad7949_spi_probe()
374 ad7949_adc->vref = devm_regulator_get_optional(dev, "vref"); in ad7949_spi_probe()
375 if (IS_ERR(ad7949_adc->vref)) { in ad7949_spi_probe()
376 ret = PTR_ERR(ad7949_adc->vref); in ad7949_spi_probe()
387 ret = regulator_enable(ad7949_adc->vref); in ad7949_spi_probe()
394 ad7949_adc->vref); in ad7949_spi_probe()
A Dimx93_adc.c76 struct regulator *vref; member
259 ret = regulator_get_voltage(adc->vref); in imx93_adc_read_raw()
333 adc->vref = devm_regulator_get(dev, "vref"); in imx93_adc_probe()
334 if (IS_ERR(adc->vref)) in imx93_adc_probe()
335 return dev_err_probe(dev, PTR_ERR(adc->vref), in imx93_adc_probe()
338 ret = regulator_enable(adc->vref); in imx93_adc_probe()
394 regulator_disable(adc->vref); in imx93_adc_probe()
416 regulator_disable(adc->vref); in imx93_adc_remove()
426 regulator_disable(adc->vref); in imx93_adc_runtime_suspend()
437 ret = regulator_enable(adc->vref); in imx93_adc_runtime_resume()
[all …]
A Dfsl-imx25-gcq.c42 struct regulator *vref[4]; member
181 if (priv->vref[refp]) in mx25_gcq_ext_regulator_setup()
189 priv->vref[refp] = devm_regulator_get_optional(dev, reg_name); in mx25_gcq_ext_regulator_setup()
190 if (IS_ERR(priv->vref[refp])) in mx25_gcq_ext_regulator_setup()
191 return dev_err_probe(dev, PTR_ERR(priv->vref[refp]), in mx25_gcq_ext_regulator_setup()
242 regulator_get_voltage(priv->vref[refp]); in mx25_gcq_setup_cfgs()
328 if (!priv->vref[i]) in mx25_gcq_probe()
331 ret = regulator_enable(priv->vref[i]); in mx25_gcq_probe()
336 priv->vref[i]); in mx25_gcq_probe()
A Dimx8qxp-adc.c96 struct regulator *vref; member
250 ret = regulator_get_voltage(adc->vref); in imx8qxp_adc_read_raw()
343 adc->vref = devm_regulator_get(dev, "vref"); in imx8qxp_adc_probe()
344 if (IS_ERR(adc->vref)) in imx8qxp_adc_probe()
345 return dev_err_probe(dev, PTR_ERR(adc->vref), "Failed getting reference voltage\n"); in imx8qxp_adc_probe()
347 ret = regulator_enable(adc->vref); in imx8qxp_adc_probe()
402 regulator_disable(adc->vref); in imx8qxp_adc_probe()
421 regulator_disable(adc->vref); in imx8qxp_adc_remove()
436 regulator_disable(adc->vref); in imx8qxp_adc_runtime_suspend()
447 ret = regulator_enable(adc->vref); in imx8qxp_adc_runtime_resume()
[all …]
/linux/Documentation/devicetree/bindings/iio/dac/
A Dmicrochip,mcp4725.yaml24 For the mcp4726 it will be used as the reference voltage if vref-supply
27 vref-supply:
31 microchip,vref-buffered:
35 without the vref-supply. Quoting the datasheet: This is offered in
48 vref-supply: false
62 - vref-supply
67 - vref-supply
70 microchip,vref-buffered: false
A Dlltc,ltc2632.yaml44 vref-supply:
58 vref: regulator-vref {
60 regulator-name = "vref-ltc2632";
74 vref-supply = <&vref>;
A Ddpot-dac.yaml15 divided voltage is provided by a vref regulator.
19 | vref |--' .---.
34 vref-supply:
50 - vref-supply
60 vref-supply = <&reg_3v3>;
A Dadi,ad5064.yaml96 vref-supply: true
104 - # Shared external vref, no internal reference
123 vref-supply: true
129 - vref-supply
130 - # Shared external vref, internal reference available
183 vref-supply: true
206 vref-supply: false
227 vref-supply: false
242 vref-supply = <&dac_vref>;
/linux/drivers/iio/dac/
A Ddpot-dac.c38 struct regulator *vref; member
70 tmp *= regulator_get_voltage(dac->vref) / 1000; in dpot_dac_read_raw()
84 *val *= regulator_get_voltage(dac->vref) / 1000; in dpot_dac_read_raw()
186 dac->vref = devm_regulator_get(dev, "vref"); in dpot_dac_probe()
187 if (IS_ERR(dac->vref)) in dpot_dac_probe()
188 return dev_err_probe(&pdev->dev, PTR_ERR(dac->vref), in dpot_dac_probe()
210 ret = regulator_enable(dac->vref); in dpot_dac_probe()
225 regulator_disable(dac->vref); in dpot_dac_probe()
235 regulator_disable(dac->vref); in dpot_dac_remove()
A Dlpc18xx_dac.c33 struct regulator *vref; member
64 *val = regulator_get_voltage(dac->vref) / 1000; in lpc18xx_dac_read_raw()
127 dac->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_dac_probe()
128 if (IS_ERR(dac->vref)) in lpc18xx_dac_probe()
129 return dev_err_probe(&pdev->dev, PTR_ERR(dac->vref), in lpc18xx_dac_probe()
138 ret = regulator_enable(dac->vref); in lpc18xx_dac_probe()
164 regulator_disable(dac->vref); in lpc18xx_dac_probe()
177 regulator_disable(dac->vref); in lpc18xx_dac_remove()
A Dstm32-dac-core.c31 struct regulator *vref; member
61 ret = regulator_enable(priv->vref); in stm32_dac_core_hw_start()
76 regulator_disable(priv->vref); in stm32_dac_core_hw_start()
87 regulator_disable(priv->vref); in stm32_dac_core_hw_stop()
121 priv->vref = devm_regulator_get(dev, "vref"); in stm32_dac_probe()
122 if (IS_ERR(priv->vref)) in stm32_dac_probe()
123 return dev_err_probe(dev, PTR_ERR(priv->vref), "vref get failed\n"); in stm32_dac_probe()
133 ret = regulator_get_voltage(priv->vref); in stm32_dac_probe()
A Dti-dac7311.c49 struct regulator *vref; member
179 ret = regulator_get_voltage(ti_dac->vref); in ti_dac_read_raw()
270 ti_dac->vref = devm_regulator_get(dev, "vref"); in ti_dac_probe()
271 if (IS_ERR(ti_dac->vref)) in ti_dac_probe()
272 return dev_err_probe(dev, PTR_ERR(ti_dac->vref), in ti_dac_probe()
275 ret = regulator_enable(ti_dac->vref); in ti_dac_probe()
293 regulator_disable(ti_dac->vref); in ti_dac_probe()
304 regulator_disable(ti_dac->vref); in ti_dac_remove()
A Dti-dac082s085.c51 struct regulator *vref; member
200 ret = regulator_get_voltage(ti_dac->vref); in ti_dac_read_raw()
288 ti_dac->vref = devm_regulator_get(dev, "vref"); in ti_dac_probe()
289 if (IS_ERR(ti_dac->vref)) in ti_dac_probe()
290 return PTR_ERR(ti_dac->vref); in ti_dac_probe()
292 ret = regulator_enable(ti_dac->vref); in ti_dac_probe()
312 regulator_disable(ti_dac->vref); in ti_dac_probe()
323 regulator_disable(ti_dac->vref); in ti_dac_remove()
/linux/Documentation/devicetree/bindings/iio/adc/
A Dadi,ad7476.yaml56 datasheets. If there is no separate vref-supply, then this is needed
63 vref-supply:
102 # Devices with a vref
115 vref-supply: true
118 vref-supply: false
119 # Devices with a vref where it is not optional
131 - vref-supply
172 vref-supply = <&adc_vref>;
A Dmaxim,max1118.yaml28 vref-supply:
40 - vref-supply
43 vref-supply: false
60 vref-supply = <&adc_vref>;
A Dmicrochip,mcp3201.yaml38 vref-supply:
51 - vref-supply
67 vref-supply = <&vref_reg>;
75 vref-supply = <&vref_reg>;
A Dsigma-delta-modulator.yaml27 vref-supply:
28 description: Phandle to the vref input analog reference voltage.
31 vref-supply: [ '#io-backend-cells' ]
47 vref-supply = <&vdd_adc>;
/linux/Documentation/devicetree/bindings/sound/
A Dnuvoton,nau8325.yaml22 nuvoton,vref-impedance-ohms:
24 The vref impedance to be used in ohms. Middle of voltage enables
30 nuvoton,dac-vref-microvolt:
32 The DAC vref to be used in voltage. DAC reference voltage setting. Can
75 nuvoton,vref-impedance-ohms = <125000>;
76 nuvoton,dac-vref-microvolt = <2880000>;

Completed in 40 milliseconds

12345678910>>...18