Home
last modified time | relevance | path

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

12345678910>>...16

/linux/drivers/iio/adc/
H A Dsd_adc_modulator.c30 struct regulator *vref; member
38 if (priv->vref) in iio_sd_mod_enable()
39 return regulator_enable(priv->vref); in iio_sd_mod_enable()
48 if (priv->vref) in iio_sd_mod_disable()
49 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()
125 return dev_err_probe(dev, PTR_ERR(vref), "Failed to get vref\n"); in iio_sd_mod_probe()
[all …]
H 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()
120 dev_err(dev, "could not disable vref regulator.\n"); 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()
146 "failed to get vref regulator\n"); in max1241_probe()
148 ret = regulator_enable(adc->vref); in max1241_probe()
154 dev_err(dev, "could not set up vref regulator cleanup action\n"); in max1241_probe()
H A Dlpc18xx_adc.c41 struct regulator *vref; member
103 *val = regulator_get_voltage(adc->vref) / 1000; in lpc18xx_adc_read_raw()
123 static void lpc18xx_regulator_disable(void *vref) in lpc18xx_regulator_disable() argument
125 regulator_disable(vref); in lpc18xx_regulator_disable()
153 adc->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_adc_probe()
154 if (IS_ERR(adc->vref)) in lpc18xx_adc_probe()
155 return dev_err_probe(&pdev->dev, PTR_ERR(adc->vref), in lpc18xx_adc_probe()
164 ret = regulator_enable(adc->vref); in lpc18xx_adc_probe()
170 ret = devm_add_action_or_reset(&pdev->dev, lpc18xx_regulator_disable, adc->vref); in lpc18xx_adc_probe()
H 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()
130 "Failed to get vref regulator\n"); 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()
H A Dnpcm_adc.c33 struct regulator *vref; member
173 if (!IS_ERR(info->vref)) { in npcm_adc_read_raw()
174 vref_uv = regulator_get_voltage(info->vref); in npcm_adc_read_raw()
255 info->vref = devm_regulator_get_optional(&pdev->dev, "vref"); in npcm_adc_probe()
256 if (!IS_ERR(info->vref)) { in npcm_adc_probe()
257 ret = regulator_enable(info->vref); in npcm_adc_probe()
270 if (PTR_ERR(info->vref) != -ENODEV) in npcm_adc_probe()
271 return PTR_ERR(info->vref); in npcm_adc_probe()
308 if (!IS_ERR(info->vref)) in npcm_adc_probe()
309 regulator_disable(info->vref); in npcm_adc_probe()
[all …]
H A Dad7091r-base.c105 if (st->vref) { in ad7091r_read_raw()
106 ret = regulator_get_voltage(st->vref); in ad7091r_read_raw()
294 regulator_disable(st->vref); in ad7091r_remove()
346 st->vref = devm_regulator_get_optional(dev, "vref"); in ad7091r_probe()
347 if (IS_ERR(st->vref)) { in ad7091r_probe()
348 if (PTR_ERR(st->vref) == -EPROBE_DEFER) in ad7091r_probe()
351 st->vref = NULL; in ad7091r_probe()
352 /* Enable internal vref */ in ad7091r_probe()
359 ret = regulator_enable(st->vref); in ad7091r_probe()
H A Dimx93_adc.c78 struct regulator *vref; member
269 ret = regulator_get_voltage(adc->vref); in imx93_adc_read_raw()
342 adc->vref = devm_regulator_get(dev, "vref"); in imx93_adc_probe()
343 if (IS_ERR(adc->vref)) in imx93_adc_probe()
344 return dev_err_probe(dev, PTR_ERR(adc->vref), in imx93_adc_probe()
347 ret = regulator_enable(adc->vref); in imx93_adc_probe()
403 regulator_disable(adc->vref); in imx93_adc_probe()
425 regulator_disable(adc->vref); in imx93_adc_remove()
435 regulator_disable(adc->vref); in imx93_adc_runtime_suspend()
446 ret = regulator_enable(adc->vref); in imx93_adc_runtime_resume()
[all …]
H A Dimx8qxp-adc.c95 struct regulator *vref; member
248 ret = regulator_get_voltage(adc->vref); in imx8qxp_adc_read_raw()
338 adc->vref = devm_regulator_get(dev, "vref"); in imx8qxp_adc_probe()
339 if (IS_ERR(adc->vref)) in imx8qxp_adc_probe()
340 return dev_err_probe(dev, PTR_ERR(adc->vref), "Failed getting reference voltage\n"); in imx8qxp_adc_probe()
342 ret = regulator_enable(adc->vref); in imx8qxp_adc_probe()
397 regulator_disable(adc->vref); in imx8qxp_adc_probe()
416 regulator_disable(adc->vref); in imx8qxp_adc_remove()
431 regulator_disable(adc->vref); in imx8qxp_adc_runtime_suspend()
442 ret = regulator_enable(adc->vref); in imx8qxp_adc_runtime_resume()
[all …]
H A Dfsl-imx25-gcq.c41 struct regulator *vref[4]; member
180 if (priv->vref[refp]) in mx25_gcq_ext_regulator_setup()
183 ret = snprintf(reg_name, sizeof(reg_name), "vref-%s", in mx25_gcq_ext_regulator_setup()
188 priv->vref[refp] = devm_regulator_get_optional(dev, reg_name); in mx25_gcq_ext_regulator_setup()
189 if (IS_ERR(priv->vref[refp])) in mx25_gcq_ext_regulator_setup()
190 return dev_err_probe(dev, PTR_ERR(priv->vref[refp]), in mx25_gcq_ext_regulator_setup()
241 regulator_get_voltage(priv->vref[refp]); in mx25_gcq_setup_cfgs()
327 if (!priv->vref[i]) in mx25_gcq_probe()
330 ret = regulator_enable(priv->vref[i]); in mx25_gcq_probe()
335 priv->vref[i]); in mx25_gcq_probe()
/linux/Documentation/devicetree/bindings/iio/dac/
H A Dmicrochip,mcp4725.yaml24 For the mcp4726 it will be used as the reference voltage if vref-supply
27 vref-supply:
29 Vref pin is used as a voltage reference when this supply is specified.
31 microchip,vref-buffered:
34 Enable buffering of the external Vref pin. This boolean is not valid
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
H A Dlltc,ltc2632.yaml57 vref-supply:
60 only be set if there is an external reference voltage connected to the VREF
71 vref: regulator-vref {
73 regulator-name = "vref-ltc2632";
87 vref-supply = <&vref>;
H 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>;
H 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>;
H A Dadi,ad5449.yaml30 VREF-supply: true
50 VREF-supply: true
54 - VREF-supply
65 VREF-supply: false
82 VREF-supply = <&dac_ref>;
H A Dst,stm32-dac.yaml39 vref-supply:
40 description: Phandle to the vref input analog reference voltage.
59 - vref-supply
97 vref-supply = <&vref>;
/linux/drivers/iio/dac/
H A Dstm32-dac-core.c25 * @vref: regulator reference
30 struct regulator *vref; member
60 ret = regulator_enable(priv->vref); in stm32_dac_core_hw_start()
62 dev_err(dev, "vref enable failed: %d\n", ret); in stm32_dac_core_hw_start()
75 regulator_disable(priv->vref); in stm32_dac_core_hw_start()
86 regulator_disable(priv->vref); in stm32_dac_core_hw_stop()
120 priv->vref = devm_regulator_get(dev, "vref"); in stm32_dac_probe()
121 if (IS_ERR(priv->vref)) in stm32_dac_probe()
122 return dev_err_probe(dev, PTR_ERR(priv->vref), "vref get failed\n"); in stm32_dac_probe()
132 ret = regulator_get_voltage(priv->vref); in stm32_dac_probe()
[all …]
H A Ddpot-dac.c13 * divided voltage is provided by a vref regulator.
17 * | vref |--' .---.
37 struct regulator *vref; member
69 tmp *= regulator_get_voltage(dac->vref) / 1000; in dpot_dac_read_raw()
83 *val *= regulator_get_voltage(dac->vref) / 1000; in dpot_dac_read_raw()
185 dac->vref = devm_regulator_get(dev, "vref"); in dpot_dac_probe()
186 if (IS_ERR(dac->vref)) in dpot_dac_probe()
187 return dev_err_probe(&pdev->dev, PTR_ERR(dac->vref), in dpot_dac_probe()
188 "failed to get vref regulator\n"); in dpot_dac_probe()
209 ret = regulator_enable(dac->vref); in dpot_dac_probe()
[all …]
H A Dlpc18xx_dac.c32 struct regulator *vref; member
63 *val = regulator_get_voltage(dac->vref) / 1000; in lpc18xx_dac_read_raw()
126 dac->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_dac_probe()
127 if (IS_ERR(dac->vref)) in lpc18xx_dac_probe()
128 return dev_err_probe(&pdev->dev, PTR_ERR(dac->vref), in lpc18xx_dac_probe()
137 ret = regulator_enable(dac->vref); in lpc18xx_dac_probe()
163 regulator_disable(dac->vref); in lpc18xx_dac_probe()
176 regulator_disable(dac->vref); in lpc18xx_dac_remove()
H A Dti-dac082s085.c39 * @vref: regulator generating Vref
50 struct regulator *vref; member
199 ret = regulator_get_voltage(ti_dac->vref); in ti_dac_read_raw()
287 ti_dac->vref = devm_regulator_get(dev, "vref"); in ti_dac_probe()
288 if (IS_ERR(ti_dac->vref)) in ti_dac_probe()
289 return PTR_ERR(ti_dac->vref); in ti_dac_probe()
291 ret = regulator_enable(ti_dac->vref); in ti_dac_probe()
311 regulator_disable(ti_dac->vref); in ti_dac_probe()
322 regulator_disable(ti_dac->vref); in ti_dac_remove()
/linux/Documentation/devicetree/bindings/iio/adc/
H A Drenesas,rzn1-adc.yaml43 adc1-vref-supply:
51 adc2-vref-supply:
59 if ADC1 is used (i.e. adc1-{avdd,vref}-supply present):
68 if ADC2 is used (i.e. adc2-{avdd,vref}-supply present):
86 # At least one of avvd/vref supplies
89 - adc1-vref-supply
92 - adc2-vref-supply
108 adc1-vref-supply = <&adc1_vref>;
H A Dti,adc12138.yaml34 vref-p-supply:
37 vref-n-supply:
40 (Note that this must not go below GND or exceed vref-p)
61 - vref-p-supply
81 vref-p-supply = <&ldo4_reg>;
H A Dmaxim,max1118.yaml28 vref-supply:
40 - vref-supply
43 vref-supply: false
60 vref-supply = <&adc_vref>;
/linux/Documentation/devicetree/bindings/sound/
H A Dnuvoton,nau8325.yaml22 nuvoton,vref-impedance-ohms:
24 The vref impedance to be used in ohms. Middle of voltage enables
25 Tie-Off selection options. Due to the high impedance of the VREF
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>;
/linux/drivers/input/touchscreen/
H A Dads7846.c182 #define ADS_PD10_REF_ON (2 << 0) /* vREF on + penirq */
183 #define ADS_PD10_ALL_ON (3 << 0) /* ADC + vREF on */
188 #define READ_12BIT_DFR(x, adc, vref) (ADS_START | ADS_A2A1A0_d_ ## x \ argument
190 (adc ? ADS_PD10_ADC_ON : 0) | (vref ? ADS_PD10_REF_ON : 0))
192 #define READ_Y(vref) (READ_12BIT_DFR(y, 1, vref)) argument
193 #define READ_Z1(vref) (READ_12BIT_DFR(z1, 1, vref)) argument
194 #define READ_Z2(vref) (READ_12BIT_DFR(z2, 1, vref)) argument
195 #define READ_X(vref) (READ_12BIT_DFR(x, 1, vref)) argument
199 * we leave both ADC and VREF powered
207 /* Order commands in the most optimal way to reduce Vref switching and
[all …]
/linux/sound/soc/codecs/
H A 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>>...16