Home
last modified time | relevance | path

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

12345678910

/kernel/linux/linux-5.10/drivers/iio/adc/
Dfsl-imx25-gcq.c41 struct regulator *vref[4]; member
202 priv->vref[MX25_ADC_REFP_INT] = NULL; in mx25_gcq_setup_cfgs()
203 priv->vref[MX25_ADC_REFP_EXT] = in mx25_gcq_setup_cfgs()
205 priv->vref[MX25_ADC_REFP_XP] = in mx25_gcq_setup_cfgs()
207 priv->vref[MX25_ADC_REFP_YP] = in mx25_gcq_setup_cfgs()
236 if (IS_ERR(priv->vref[refp])) { in mx25_gcq_setup_cfgs()
240 return PTR_ERR(priv->vref[refp]); in mx25_gcq_setup_cfgs()
243 regulator_get_voltage(priv->vref[refp]); in mx25_gcq_setup_cfgs()
291 if (!IS_ERR_OR_NULL(priv->vref[i])) in mx25_gcq_setup_cfgs()
292 devm_regulator_put(priv->vref[i]); in mx25_gcq_setup_cfgs()
[all …]
Dmcp3911.c52 struct regulator *vref; member
129 if (adc->vref) { in mcp3911_read_raw()
130 ret = regulator_get_voltage(adc->vref); in mcp3911_read_raw()
230 if (adc->vref) { in mcp3911_config()
264 adc->vref = devm_regulator_get_optional(&adc->spi->dev, "vref"); in mcp3911_probe()
265 if (IS_ERR(adc->vref)) { in mcp3911_probe()
266 if (PTR_ERR(adc->vref) == -ENODEV) { in mcp3911_probe()
267 adc->vref = NULL; in mcp3911_probe()
271 PTR_ERR(adc->vref)); in mcp3911_probe()
272 return PTR_ERR(adc->vref); in mcp3911_probe()
[all …]
Dnpcm_adc.c26 struct regulator *vref; member
147 if (!IS_ERR(info->vref)) { in npcm_adc_read_raw()
148 vref_uv = regulator_get_voltage(info->vref); in npcm_adc_read_raw()
226 info->vref = devm_regulator_get_optional(&pdev->dev, "vref"); in npcm_adc_probe()
227 if (!IS_ERR(info->vref)) { in npcm_adc_probe()
228 ret = regulator_enable(info->vref); in npcm_adc_probe()
241 if (PTR_ERR(info->vref) != -ENODEV) { in npcm_adc_probe()
242 ret = PTR_ERR(info->vref); in npcm_adc_probe()
281 if (!IS_ERR(info->vref)) in npcm_adc_probe()
282 regulator_disable(info->vref); in npcm_adc_probe()
[all …]
Drcar-gyroadc.c68 struct regulator *vref[8]; member
186 unsigned int vref; in rcar_gyroadc_read_raw() local
194 consumer = priv->vref[0]; in rcar_gyroadc_read_raw()
196 consumer = priv->vref[chan->channel]; in rcar_gyroadc_read_raw()
231 vref = regulator_get_voltage(consumer); in rcar_gyroadc_read_raw()
232 *val = vref / 1000; in rcar_gyroadc_read_raw()
327 struct regulator *vref; in rcar_gyroadc_parse_subdevs() local
399 vref = devm_regulator_get(dev, "vref"); in rcar_gyroadc_parse_subdevs()
401 if (IS_ERR(vref)) { in rcar_gyroadc_parse_subdevs()
404 ret = PTR_ERR(vref); in rcar_gyroadc_parse_subdevs()
[all …]
Dlpc18xx_adc.c43 struct regulator *vref; member
105 *val = regulator_get_voltage(adc->vref) / 1000; in lpc18xx_adc_read_raw()
148 adc->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_adc_probe()
149 if (IS_ERR(adc->vref)) { in lpc18xx_adc_probe()
151 return PTR_ERR(adc->vref); in lpc18xx_adc_probe()
160 ret = regulator_enable(adc->vref); in lpc18xx_adc_probe()
188 regulator_disable(adc->vref); in lpc18xx_adc_probe()
201 regulator_disable(adc->vref); in lpc18xx_adc_remove()
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()
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()
168 adc->vref = devm_regulator_get(dev, "vref"); in max1241_probe()
169 if (IS_ERR(adc->vref)) { in max1241_probe()
171 return PTR_ERR(adc->vref); in max1241_probe()
174 ret = regulator_enable(adc->vref); in max1241_probe()
Dad7949.c51 struct regulator *vref; member
181 ret = regulator_get_voltage(ad7949_adc->vref); in ad7949_spi_read_raw()
260 ad7949_adc->vref = devm_regulator_get(dev, "vref"); in ad7949_spi_probe()
261 if (IS_ERR(ad7949_adc->vref)) { in ad7949_spi_probe()
263 return PTR_ERR(ad7949_adc->vref); in ad7949_spi_probe()
266 ret = regulator_enable(ad7949_adc->vref); in ad7949_spi_probe()
290 regulator_disable(ad7949_adc->vref); in ad7949_spi_probe()
302 regulator_disable(ad7949_adc->vref); in ad7949_spi_remove()
Drockchip_saradc.c51 struct regulator *vref; member
108 ret = regulator_get_voltage(info->vref); in rockchip_saradc_read_raw()
238 regulator_disable(info->vref); in rockchip_saradc_regulator_disable()
360 info->vref = devm_regulator_get(&pdev->dev, "vref"); in rockchip_saradc_probe()
361 if (IS_ERR(info->vref)) { in rockchip_saradc_probe()
363 PTR_ERR(info->vref)); in rockchip_saradc_probe()
364 return PTR_ERR(info->vref); in rockchip_saradc_probe()
380 ret = regulator_enable(info->vref); in rockchip_saradc_probe()
444 regulator_disable(info->vref); in rockchip_saradc_suspend()
455 ret = regulator_enable(info->vref); in rockchip_saradc_resume()
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()
Dad7124.c154 struct regulator *vref[4]; member
421 unsigned int res, gain, full_scale, vref; in ad7124_write_raw() local
438 vref = st->channel_config[chan->address].vref_mv * 1000000LL; in ad7124_write_raw()
439 res = DIV_ROUND_CLOSEST(vref, full_scale); in ad7124_write_raw()
558 if (IS_ERR(st->vref[refsel])) { in ad7124_init_channel_vref()
562 return PTR_ERR(st->vref[refsel]); in ad7124_init_channel_vref()
565 regulator_get_voltage(st->vref[refsel]); in ad7124_init_channel_vref()
752 for (i = 0; i < ARRAY_SIZE(st->vref); i++) { in ad7124_probe()
756 st->vref[i] = devm_regulator_get_optional(&spi->dev, in ad7124_probe()
758 if (PTR_ERR(st->vref[i]) == -ENODEV) in ad7124_probe()
[all …]
Dad7923.c243 int vref; in ad7923_get_range() local
245 vref = regulator_get_voltage(st->reg); in ad7923_get_range()
246 if (vref < 0) in ad7923_get_range()
247 return vref; in ad7923_get_range()
249 vref /= 1000; in ad7923_get_range()
252 vref *= 2; in ad7923_get_range()
254 return vref; in ad7923_get_range()
/kernel/linux/linux-5.10/drivers/iio/dac/
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()
Dlpc18xx_dac.c34 struct regulator *vref; member
65 *val = regulator_get_voltage(dac->vref) / 1000; in lpc18xx_dac_read_raw()
129 dac->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_dac_probe()
130 if (IS_ERR(dac->vref)) { in lpc18xx_dac_probe()
132 return PTR_ERR(dac->vref); in lpc18xx_dac_probe()
141 ret = regulator_enable(dac->vref); in lpc18xx_dac_probe()
167 regulator_disable(dac->vref); in lpc18xx_dac_probe()
180 regulator_disable(dac->vref); in lpc18xx_dac_remove()
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()
127 priv->vref = devm_regulator_get(dev, "vref"); in stm32_dac_probe()
128 if (IS_ERR(priv->vref)) { in stm32_dac_probe()
129 ret = PTR_ERR(priv->vref); in stm32_dac_probe()
142 ret = regulator_get_voltage(priv->vref); in stm32_dac_probe()
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()
271 return PTR_ERR(ti_dac->vref); in ti_dac_probe()
274 ret = regulator_enable(ti_dac->vref); in ti_dac_probe()
292 regulator_disable(ti_dac->vref); in ti_dac_probe()
303 regulator_disable(ti_dac->vref); in ti_dac_remove()
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()
Dti-dac5571.c47 struct regulator *vref; member
251 ret = regulator_get_voltage(data->vref); in dac5571_read_raw()
333 data->vref = devm_regulator_get(dev, "vref"); in dac5571_probe()
334 if (IS_ERR(data->vref)) in dac5571_probe()
335 return PTR_ERR(data->vref); in dac5571_probe()
337 ret = regulator_enable(data->vref); in dac5571_probe()
372 regulator_disable(data->vref); in dac5571_probe()
382 regulator_disable(data->vref); in dac5571_remove()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/dac/
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 */
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/hwmon/
Dads7828.txt13 - vref-supply
16 on the "external vref" pin.
23 vref-supply = <&vref>;
/kernel/linux/linux-5.10/arch/arm64/boot/dts/freescale/
Dimx8mq-nitrogen.dts37 reg_vref_0v9: regulator-vref-0v9 {
39 regulator-name = "vref-0v9";
44 reg_vref_1v8: regulator-vref-1v8 {
46 regulator-name = "vref-1v8";
51 reg_vref_2v5: regulator-vref-2v5 {
53 regulator-name = "vref-2v5";
58 reg_vref_3v3: regulator-vref-3v3 {
60 regulator-name = "vref-3v3";
65 reg_vref_5v: regulator-vref-5v {
67 regulator-name = "vref-5v";

12345678910