Home
last modified time | relevance | path

Searched full:vref (Results 1 – 25 of 410) sorted by relevance

12345678910>>...17

/Linux-v5.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;
Dlltc,ltc2632.yaml44 vref-supply:
47 only be set if there is an external reference voltage connected to the VREF
58 vref: regulator-vref {
60 regulator-name = "vref-ltc2632";
74 vref-supply = <&vref>;
Dad5592r.txt49 - vref-supply: Phandle to the external reference voltage supply. This should
50 only be set if there is an external reference voltage connected to the VREF
62 vref: regulator-vref {
64 regulator-name = "vref-ad559x";
80 vref-supply = <&vref>; /* optional */
Dst,stm32-dac.yaml39 vref-supply:
40 description: Phandle to the vref input analog reference voltage.
55 - vref-supply
93 vref-supply = <&vref>;
/Linux-v5.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()
204 devm_regulator_get_optional(&pdev->dev, "vref-ext"); in mx25_gcq_setup_cfgs()
205 priv->vref[MX25_ADC_REFP_XP] = in mx25_gcq_setup_cfgs()
206 devm_regulator_get_optional(&pdev->dev, "vref-xp"); in mx25_gcq_setup_cfgs()
207 priv->vref[MX25_ADC_REFP_YP] = in mx25_gcq_setup_cfgs()
208 devm_regulator_get_optional(&pdev->dev, "vref-yp"); in mx25_gcq_setup_cfgs()
236 if (IS_ERR(priv->vref[refp])) { in mx25_gcq_setup_cfgs()
237 dev_err(dev, "Error, trying to use external voltage reference without a vref-%s regulator.", in mx25_gcq_setup_cfgs()
[all …]
Dmcp3911.c52 struct regulator *vref; member
127 if (adc->vref) { in mcp3911_read_raw()
128 ret = regulator_get_voltage(adc->vref); in mcp3911_read_raw()
131 "failed to get vref voltage: %d\n", in mcp3911_read_raw()
221 if (adc->vref) { in mcp3911_config()
255 adc->vref = devm_regulator_get_optional(&adc->spi->dev, "vref"); in mcp3911_probe()
256 if (IS_ERR(adc->vref)) { in mcp3911_probe()
257 if (PTR_ERR(adc->vref) == -ENODEV) { in mcp3911_probe()
258 adc->vref = NULL; in mcp3911_probe()
262 PTR_ERR(adc->vref)); in mcp3911_probe()
[all …]
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()
132 dev_err(dev, "could not disable vref regulator.\n"); 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()
170 dev_err(dev, "failed to get vref regulator\n"); in max1241_probe()
171 return PTR_ERR(adc->vref); in max1241_probe()
174 ret = regulator_enable(adc->vref); in max1241_probe()
180 dev_err(dev, "could not set up vref regulator cleanup action\n"); in max1241_probe()
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 …]
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()
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()
402 dev_dbg(dev, "Channel %i 'vref' supply not connected.\n", 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()
Dad7949.c41 * @vref: regulator generating Vref
51 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()
382 dev_err(&pdev->dev, "failed to enable vref regulator\n"); in rockchip_saradc_probe()
444 regulator_disable(info->vref); in rockchip_saradc_suspend()
[all …]
Dad7124.c154 struct regulator *vref[4]; member
422 unsigned int res, gain, full_scale, vref; in ad7124_write_raw() local
439 vref = st->channel_config[chan->address].vref_mv * 1000000LL; in ad7124_write_raw()
440 res = DIV_ROUND_CLOSEST(vref, full_scale); in ad7124_write_raw()
559 if (IS_ERR(st->vref[refsel])) { in ad7124_init_channel_vref()
563 return PTR_ERR(st->vref[refsel]); in ad7124_init_channel_vref()
566 regulator_get_voltage(st->vref[refsel]); in ad7124_init_channel_vref()
741 for (i = 0; i < ARRAY_SIZE(st->vref); i++) { in ad7124_probe()
745 st->vref[i] = devm_regulator_get_optional(&spi->dev, in ad7124_probe()
747 if (PTR_ERR(st->vref[i]) == -ENODEV) in ad7124_probe()
[all …]
/Linux-v5.10/drivers/iio/dac/
Ddpot-dac.c13 * divided voltage is provided by a vref regulator.
17 * | vref |--' .---.
38 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()
189 "failed to get vref regulator\n"); in dpot_dac_probe()
210 ret = regulator_enable(dac->vref); in dpot_dac_probe()
[all …]
Dstm32-dac-core.c23 * @vref: regulator reference
28 struct regulator *vref; member
58 ret = regulator_enable(priv->vref); in stm32_dac_core_hw_start()
60 dev_err(dev, "vref enable failed: %d\n", ret); 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()
130 dev_err(dev, "vref get failed, %d\n", ret); in stm32_dac_probe()
[all …]
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()
Dti-dac7311.c39 * @vref: regulator generating Vref
49 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.c40 * @vref: regulator generating Vref
51 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-v5.10/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-v5.10/Documentation/devicetree/bindings/hwmon/
Dads7828.txt13 - vref-supply
16 on the "external vref" pin.
23 vref-supply = <&vref>;
/Linux-v5.10/Documentation/devicetree/bindings/iio/adc/
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>;
Dmaxim,max1118.yaml28 vref-supply:
38 - vref-supply
41 vref-supply: false
58 vref-supply = <&adc_vref>;
/Linux-v5.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";
/Linux-v5.10/sound/soc/codecs/
Dinno_rk3036.c128 SND_SOC_DAPM_SUPPLY_S("DACL VREF", 2, INNO_R04,
130 SND_SOC_DAPM_SUPPLY_S("DACR VREF", 2, INNO_R04,
132 SND_SOC_DAPM_SUPPLY_S("DACL HiLo VREF", 3, INNO_R06,
134 SND_SOC_DAPM_SUPPLY_S("DACR HiLo VREF", 3, INNO_R06,
170 {"DACL VREF", NULL, "DAC PWR"},
171 {"DACR VREF", NULL, "DAC PWR"},
172 {"DACL HiLo VREF", NULL, "DAC PWR"},
173 {"DACR HiLo VREF", NULL, "DAC PWR"},
177 {"DACL", NULL, "DACL VREF"},
178 {"DACL", NULL, "DACL HiLo VREF"},
[all …]

12345678910>>...17