Home
last modified time | relevance | path

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

12345678910>>...13

/linux/drivers/iio/adc/
A Dmcp3911.c52 struct regulator *vref; member
127 if (adc->vref) { in mcp3911_read_raw()
221 if (adc->vref) { in mcp3911_config()
256 if (IS_ERR(adc->vref)) { in mcp3911_probe()
258 adc->vref = NULL; in mcp3911_probe()
262 PTR_ERR(adc->vref)); in mcp3911_probe()
263 return PTR_ERR(adc->vref); in mcp3911_probe()
315 if (adc->vref) in mcp3911_probe()
316 regulator_disable(adc->vref); in mcp3911_probe()
329 if (adc->vref) in mcp3911_remove()
[all …]
A Dlpc18xx_adc.c43 struct regulator *vref; member
105 *val = regulator_get_voltage(adc->vref) / 1000; in lpc18xx_adc_read_raw()
130 static void lpc18xx_regulator_disable(void *vref) in lpc18xx_regulator_disable() argument
132 regulator_disable(vref); in lpc18xx_regulator_disable()
163 adc->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_adc_probe()
164 if (IS_ERR(adc->vref)) in lpc18xx_adc_probe()
165 return dev_err_probe(&pdev->dev, PTR_ERR(adc->vref), in lpc18xx_adc_probe()
174 ret = regulator_enable(adc->vref); in lpc18xx_adc_probe()
180 ret = devm_add_action_or_reset(&pdev->dev, lpc18xx_regulator_disable, adc->vref); in lpc18xx_adc_probe()
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()
322 struct regulator *vref; in rcar_gyroadc_parse_subdevs() local
396 if (IS_ERR(vref)) { in rcar_gyroadc_parse_subdevs()
399 ret = PTR_ERR(vref); in rcar_gyroadc_parse_subdevs()
403 priv->vref[reg] = vref; in rcar_gyroadc_parse_subdevs()
450 if (!priv->vref[i]) in rcar_gyroadc_deinit_supplies()
453 regulator_disable(priv->vref[i]); in rcar_gyroadc_deinit_supplies()
[all …]
A Dnpcm_adc.c26 struct regulator *vref; member
156 if (!IS_ERR(info->vref)) { in npcm_adc_read_raw()
157 vref_uv = regulator_get_voltage(info->vref); in npcm_adc_read_raw()
238 if (!IS_ERR(info->vref)) { in npcm_adc_probe()
239 ret = regulator_enable(info->vref); in npcm_adc_probe()
252 if (PTR_ERR(info->vref) != -ENODEV) { in npcm_adc_probe()
253 ret = PTR_ERR(info->vref); in npcm_adc_probe()
292 if (!IS_ERR(info->vref)) in npcm_adc_probe()
293 regulator_disable(info->vref); in npcm_adc_probe()
310 if (!IS_ERR(info->vref)) in npcm_adc_remove()
[all …]
A Dfsl-imx25-gcq.c41 struct regulator *vref[4]; member
181 if (priv->vref[refp]) 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()
251 regulator_get_voltage(priv->vref[refp]); in mx25_gcq_setup_cfgs()
332 if (!priv->vref[i]) in mx25_gcq_probe()
335 ret = regulator_enable(priv->vref[i]); in mx25_gcq_probe()
381 if (priv->vref[i]) in mx25_gcq_probe()
382 regulator_disable(priv->vref[i]); in mx25_gcq_probe()
397 if (priv->vref[i]) in mx25_gcq_remove()
[all …]
A Dad799x.c127 struct regulator *vref; member
302 if (st->vref) in ad799x_read_raw()
809 if (IS_ERR(st->vref)) { in ad799x_probe()
811 st->vref = NULL; in ad799x_probe()
819 if (st->vref) { in ad799x_probe()
831 st->vref = NULL; in ad799x_probe()
875 if (st->vref) in ad799x_probe()
891 if (st->vref) in ad799x_remove()
904 if (st->vref) in ad799x_suspend()
923 if (st->vref) { in ad799x_resume()
[all …]
A Dad7091r-base.c46 struct regulator *vref; member
147 if (st->vref) { in ad7091r_read_raw()
148 ret = regulator_get_voltage(st->vref); in ad7091r_read_raw()
207 regulator_disable(st->vref); in ad7091r_remove()
242 st->vref = devm_regulator_get_optional(dev, "vref"); in ad7091r_probe()
243 if (IS_ERR(st->vref)) { in ad7091r_probe()
244 if (PTR_ERR(st->vref) == -EPROBE_DEFER) in ad7091r_probe()
246 st->vref = NULL; in ad7091r_probe()
248 ret = regulator_enable(st->vref); in ad7091r_probe()
A Dmax1241.c26 struct regulator *vref; member
95 vref_uV = regulator_get_voltage(adc->vref); in max1241_read_raw()
130 err = regulator_disable(adc->vref); in max1241_disable_vref_action()
165 adc->vref = devm_regulator_get(dev, "vref"); in max1241_probe()
166 if (IS_ERR(adc->vref)) in max1241_probe()
167 return dev_err_probe(dev, PTR_ERR(adc->vref), in max1241_probe()
170 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 Drockchip_saradc.c51 struct regulator *vref; member
254 regulator_disable(info->vref); in rockchip_saradc_regulator_disable()
314 regulator_unregister_notifier(info->vref, &info->nb); in rockchip_saradc_regulator_unreg_notifier()
393 info->vref = devm_regulator_get(&pdev->dev, "vref"); in rockchip_saradc_probe()
394 if (IS_ERR(info->vref)) in rockchip_saradc_probe()
395 return dev_err_probe(&pdev->dev, PTR_ERR(info->vref), in rockchip_saradc_probe()
411 ret = regulator_enable(info->vref); in rockchip_saradc_probe()
424 ret = regulator_get_voltage(info->vref); in rockchip_saradc_probe()
471 ret = regulator_register_notifier(info->vref, &info->nb); in rockchip_saradc_probe()
492 regulator_disable(info->vref); in rockchip_saradc_suspend()
[all …]
A Dimx8qxp-adc.c93 struct regulator *vref; member
247 vref_uv = regulator_get_voltage(adc->vref); in imx8qxp_adc_read_raw()
333 adc->vref = devm_regulator_get(dev, "vref"); in imx8qxp_adc_probe()
334 if (IS_ERR(adc->vref)) in imx8qxp_adc_probe()
335 return dev_err_probe(dev, PTR_ERR(adc->vref), "Failed getting reference voltage\n"); in imx8qxp_adc_probe()
337 ret = regulator_enable(adc->vref); in imx8qxp_adc_probe()
392 regulator_disable(adc->vref); in imx8qxp_adc_probe()
411 regulator_disable(adc->vref); in imx8qxp_adc_remove()
428 regulator_disable(adc->vref); in imx8qxp_adc_runtime_suspend()
439 ret = regulator_enable(adc->vref); in imx8qxp_adc_runtime_resume()
[all …]
A Dti-tlc4541.c112 int vref; in tlc4541_get_range() local
114 vref = regulator_get_voltage(st->reg); in tlc4541_get_range()
115 if (vref < 0) in tlc4541_get_range()
116 return vref; in tlc4541_get_range()
118 vref /= 1000; in tlc4541_get_range()
120 return vref; in tlc4541_get_range()
/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
107 - # Shared external vref, no internal reference
126 vref-supply: true
132 - vref-supply
133 - # Shared external vref, internal reference available
186 vref-supply: true
209 vref-supply: false
230 vref-supply: false
243 vref-supply = <&dac_vref>;
A Dst,stm32-dac.yaml39 vref-supply:
40 description: Phandle to the vref input analog reference voltage.
55 - vref-supply
93 vref-supply = <&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.c34 struct regulator *vref; member
65 *val = regulator_get_voltage(dac->vref) / 1000; in lpc18xx_dac_read_raw()
128 dac->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_dac_probe()
129 if (IS_ERR(dac->vref)) in lpc18xx_dac_probe()
130 return dev_err_probe(&pdev->dev, PTR_ERR(dac->vref), in lpc18xx_dac_probe()
139 ret = regulator_enable(dac->vref); in lpc18xx_dac_probe()
165 regulator_disable(dac->vref); in lpc18xx_dac_probe()
178 regulator_disable(dac->vref); in lpc18xx_dac_remove()
A Dstm32-dac-core.c28 struct regulator *vref; member
58 ret = regulator_enable(priv->vref); in stm32_dac_core_hw_start()
73 regulator_disable(priv->vref); in stm32_dac_core_hw_start()
84 regulator_disable(priv->vref); in stm32_dac_core_hw_stop()
122 priv->vref = devm_regulator_get(dev, "vref"); in stm32_dac_probe()
123 if (IS_ERR(priv->vref)) in stm32_dac_probe()
124 return dev_err_probe(dev, PTR_ERR(priv->vref), "vref get failed\n"); in stm32_dac_probe()
134 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()
268 ti_dac->vref = devm_regulator_get(dev, "vref"); in ti_dac_probe()
269 if (IS_ERR(ti_dac->vref)) in ti_dac_probe()
270 return dev_err_probe(dev, PTR_ERR(ti_dac->vref), in ti_dac_probe()
273 ret = regulator_enable(ti_dac->vref); in ti_dac_probe()
291 regulator_disable(ti_dac->vref); in ti_dac_probe()
302 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:
103 # Devices with a vref
116 vref-supply: true
119 vref-supply: false
120 # Devices with a vref where it is not optional
132 - vref-supply
171 vref-supply = <&adc_vref>;
A Dmaxim,max1118.yaml28 vref-supply:
38 - vref-supply
41 vref-supply: false
58 vref-supply = <&adc_vref>;
A Dti,adc12138.yaml36 vref-p-supply:
39 vref-n-supply:
42 (Note that this must not go below GND or exceed vref-p)
63 - vref-p-supply
80 vref-p-supply = <&ldo4_reg>;

Completed in 37 milliseconds

12345678910>>...13