Home
last modified time | relevance | path

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

1234567

/Linux-v4.19/drivers/iio/adc/
Dfsl-imx25-gcq.c44 struct regulator *vref[4]; member
196 priv->vref[MX25_ADC_REFP_INT] = NULL; in mx25_gcq_setup_cfgs()
197 priv->vref[MX25_ADC_REFP_EXT] = in mx25_gcq_setup_cfgs()
199 priv->vref[MX25_ADC_REFP_XP] = in mx25_gcq_setup_cfgs()
201 priv->vref[MX25_ADC_REFP_YP] = in mx25_gcq_setup_cfgs()
228 if (IS_ERR(priv->vref[refp])) { in mx25_gcq_setup_cfgs()
231 return PTR_ERR(priv->vref[refp]); in mx25_gcq_setup_cfgs()
234 regulator_get_voltage(priv->vref[refp]); in mx25_gcq_setup_cfgs()
279 if (!IS_ERR_OR_NULL(priv->vref[i])) in mx25_gcq_setup_cfgs()
280 devm_regulator_put(priv->vref[i]); in mx25_gcq_setup_cfgs()
[all …]
Drcar-gyroadc.c77 struct regulator *vref[8]; member
195 unsigned int vref; in rcar_gyroadc_read_raw() local
203 consumer = priv->vref[0]; in rcar_gyroadc_read_raw()
205 consumer = priv->vref[chan->channel]; in rcar_gyroadc_read_raw()
240 vref = regulator_get_voltage(consumer); in rcar_gyroadc_read_raw()
241 *val = vref / 1000; in rcar_gyroadc_read_raw()
336 struct regulator *vref; in rcar_gyroadc_parse_subdevs() local
408 vref = devm_regulator_get(dev, "vref"); in rcar_gyroadc_parse_subdevs()
410 if (IS_ERR(vref)) { in rcar_gyroadc_parse_subdevs()
413 return PTR_ERR(vref); in rcar_gyroadc_parse_subdevs()
[all …]
Dlpc18xx_adc.c46 struct regulator *vref; member
108 *val = regulator_get_voltage(adc->vref) / 1000; in lpc18xx_adc_read_raw()
153 adc->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_adc_probe()
154 if (IS_ERR(adc->vref)) { in lpc18xx_adc_probe()
156 return PTR_ERR(adc->vref); in lpc18xx_adc_probe()
166 ret = regulator_enable(adc->vref); in lpc18xx_adc_probe()
194 regulator_disable(adc->vref); in lpc18xx_adc_probe()
207 regulator_disable(adc->vref); in lpc18xx_adc_remove()
Drockchip_saradc.c57 struct regulator *vref; member
96 ret = regulator_get_voltage(info->vref); in rockchip_saradc_read_raw()
280 info->vref = devm_regulator_get(&pdev->dev, "vref"); in rockchip_saradc_probe()
281 if (IS_ERR(info->vref)) { in rockchip_saradc_probe()
283 PTR_ERR(info->vref)); in rockchip_saradc_probe()
284 return PTR_ERR(info->vref); in rockchip_saradc_probe()
300 ret = regulator_enable(info->vref); in rockchip_saradc_probe()
340 regulator_disable(info->vref); in rockchip_saradc_probe()
352 regulator_disable(info->vref); in rockchip_saradc_remove()
365 regulator_disable(info->vref); in rockchip_saradc_suspend()
[all …]
Dimx7d_adc.c121 struct regulator *vref; member
327 info->vref_uv = regulator_get_voltage(info->vref); in imx7d_adc_read_raw()
475 info->vref = devm_regulator_get(&pdev->dev, "vref"); in imx7d_adc_probe()
476 if (IS_ERR(info->vref)) { in imx7d_adc_probe()
477 ret = PTR_ERR(info->vref); in imx7d_adc_probe()
483 ret = regulator_enable(info->vref); in imx7d_adc_probe()
532 regulator_disable(info->vref); in imx7d_adc_probe()
547 regulator_disable(info->vref); in imx7d_adc_remove()
560 regulator_disable(info->vref); in imx7d_adc_suspend()
571 ret = regulator_enable(info->vref); in imx7d_adc_resume()
[all …]
Dti-tlc4541.c114 int vref; in tlc4541_get_range() local
116 vref = regulator_get_voltage(st->reg); in tlc4541_get_range()
117 if (vref < 0) in tlc4541_get_range()
118 return vref; in tlc4541_get_range()
120 vref /= 1000; in tlc4541_get_range()
122 return vref; in tlc4541_get_range()
Dad7923.c211 int vref; in ad7923_get_range() local
213 vref = regulator_get_voltage(st->reg); in ad7923_get_range()
214 if (vref < 0) in ad7923_get_range()
215 return vref; in ad7923_get_range()
217 vref /= 1000; in ad7923_get_range()
220 vref *= 2; in ad7923_get_range()
222 return vref; in ad7923_get_range()
Dti-ads7950.c317 int vref; in ti_ads7950_get_range() local
320 vref = st->vref_mv; in ti_ads7950_get_range()
322 vref = regulator_get_voltage(st->reg); in ti_ads7950_get_range()
323 if (vref < 0) in ti_ads7950_get_range()
324 return vref; in ti_ads7950_get_range()
326 vref /= 1000; in ti_ads7950_get_range()
330 vref *= 2; in ti_ads7950_get_range()
332 return vref; in ti_ads7950_get_range()
Dstm32-adc-core.c94 struct regulator *vref; member
406 priv->vref = devm_regulator_get(&pdev->dev, "vref"); in stm32_adc_probe()
407 if (IS_ERR(priv->vref)) { in stm32_adc_probe()
408 ret = PTR_ERR(priv->vref); in stm32_adc_probe()
413 ret = regulator_enable(priv->vref); in stm32_adc_probe()
419 ret = regulator_get_voltage(priv->vref); in stm32_adc_probe()
495 regulator_disable(priv->vref); in stm32_adc_probe()
511 regulator_disable(priv->vref); in stm32_adc_remove()
/Linux-v4.19/drivers/iio/dac/
Ddpot-dac.c41 struct regulator *vref; member
73 tmp *= regulator_get_voltage(dac->vref) / 1000; in dpot_dac_read_raw()
86 *val *= regulator_get_voltage(dac->vref) / 1000; in dpot_dac_read_raw()
189 dac->vref = devm_regulator_get(dev, "vref"); in dpot_dac_probe()
190 if (IS_ERR(dac->vref)) { in dpot_dac_probe()
191 if (PTR_ERR(dac->vref) != -EPROBE_DEFER) in dpot_dac_probe()
193 return PTR_ERR(dac->vref); in dpot_dac_probe()
217 ret = regulator_enable(dac->vref); in dpot_dac_probe()
232 regulator_disable(dac->vref); in dpot_dac_probe()
242 regulator_disable(dac->vref); in dpot_dac_remove()
Dstm32-dac-core.c29 struct regulator *vref; member
82 priv->vref = devm_regulator_get(dev, "vref"); in stm32_dac_probe()
83 if (IS_ERR(priv->vref)) { in stm32_dac_probe()
84 ret = PTR_ERR(priv->vref); in stm32_dac_probe()
89 ret = regulator_enable(priv->vref); in stm32_dac_probe()
95 ret = regulator_get_voltage(priv->vref); in stm32_dac_probe()
147 regulator_disable(priv->vref); in stm32_dac_probe()
159 regulator_disable(priv->vref); in stm32_dac_remove()
Dlpc18xx_dac.c37 struct regulator *vref; member
68 *val = regulator_get_voltage(dac->vref) / 1000; in lpc18xx_dac_read_raw()
134 dac->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_dac_probe()
135 if (IS_ERR(dac->vref)) { in lpc18xx_dac_probe()
137 return PTR_ERR(dac->vref); in lpc18xx_dac_probe()
147 ret = regulator_enable(dac->vref); in lpc18xx_dac_probe()
173 regulator_disable(dac->vref); in lpc18xx_dac_probe()
186 regulator_disable(dac->vref); in lpc18xx_dac_remove()
Dti-dac082s085.c53 struct regulator *vref; member
202 ret = regulator_get_voltage(ti_dac->vref); in ti_dac_read_raw()
291 ti_dac->vref = devm_regulator_get(dev, "vref"); in ti_dac_probe()
292 if (IS_ERR(ti_dac->vref)) in ti_dac_probe()
293 return PTR_ERR(ti_dac->vref); in ti_dac_probe()
295 ret = regulator_enable(ti_dac->vref); in ti_dac_probe()
315 regulator_disable(ti_dac->vref); in ti_dac_probe()
326 regulator_disable(ti_dac->vref); in ti_dac_remove()
Dti-dac5571.c51 struct regulator *vref; member
254 ret = regulator_get_voltage(data->vref); in dac5571_read_raw()
338 data->vref = devm_regulator_get(dev, "vref"); in dac5571_probe()
339 if (IS_ERR(data->vref)) in dac5571_probe()
340 return PTR_ERR(data->vref); in dac5571_probe()
342 ret = regulator_enable(data->vref); in dac5571_probe()
376 regulator_disable(data->vref); in dac5571_probe()
386 regulator_disable(data->vref); in dac5571_remove()
/Linux-v4.19/Documentation/devicetree/bindings/iio/dac/
Dltc2632.txt16 - vref-supply: Phandle to the external reference voltage supply. This should
22 vref: regulator-vref {
24 regulator-name = "vref-ltc2632";
35 vref-supply = <&vref>; /* optional */
Dmcp4725.txt8 mcp4726 if there is no vref-supply specified.
11 - vref-supply: Optional phandle to the Vref power supply. Vref pin is
13 - microchip,vref-buffered: Boolean to enable buffering of the external
14 Vref pin. This boolean is not valid without the vref-supply. Quoting
33 vref-supply = <&vdac_vref>;
34 microchip,vref-buffered;
Ddpot-dac.txt5 divided voltage is provided by a vref regulator.
9 | vref |--' .---.
22 - vref-supply: The regulator supplying the voltage divider.
38 vref-supply = <&reg_3v3>;
Dmax5821.txt6 - vref-supply: Phandle to the vref power supply
13 vref-supply = <&reg_max5821>;
Dti-dac082s085.txt14 - vref-supply: Phandle to the external reference voltage supply.
20 vref_2v5_reg: regulator-vref {
33 vref-supply = <&vref_2v5_reg>;
Dad5592r.txt49 - vref-supply: Phandle to the external reference voltage supply. This should
62 vref: regulator-vref {
64 regulator-name = "vref-ad559x";
80 vref-supply = <&vref>; /* optional */
/Linux-v4.19/Documentation/devicetree/bindings/hwmon/
Dads7828.txt13 - vref-supply
16 on the "external vref" pin.
23 vref-supply = <&vref>;
/Linux-v4.19/Documentation/devicetree/bindings/iio/adc/
Dti-adc12138.txt13 - vref-p-supply: The regulator supply for positive analog voltage reference
16 - vref-n-supply: The regulator supply for negative analog voltage reference
17 (Note that this must not go below GND or exceed vref-p)
34 vref-p-supply = <&ldo4_reg>;
Dltc2497.txt6 - vref-supply: The regulator supply for ADC reference voltage
12 vref-supply = <&ltc2497_reg>;
/Linux-v4.19/Documentation/devicetree/bindings/input/touchscreen/
Dads7846.txt28 ti,vref-delay-usecs vref supply delay in usecs, 0 for
29 external vref (u16).
30 ti,vref-mv The VREF voltage, in millivolts (u16).
33 ti,keep-vref-on set to keep vref on for differential
/Linux-v4.19/drivers/hwmon/
Dadc128d818.c71 int vref; /* Reference voltage in mV */ member
167 val = DIV_ROUND_CLOSEST(data->in[index][nr] * data->vref, 4095); in adc128_show_in()
471 int err, vref; in adc128_probe() local
484 vref = regulator_get_voltage(regulator); in adc128_probe()
485 if (vref < 0) { in adc128_probe()
486 err = vref; in adc128_probe()
489 data->vref = DIV_ROUND_CLOSEST(vref, 1000); in adc128_probe()
491 data->vref = 2560; /* 2.56V, in mV */ in adc128_probe()

1234567