Home
last modified time | relevance | path

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

12345678910>>...20

/Linux-v6.1/Documentation/devicetree/bindings/iio/dac/
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
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>;
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>;
Ddpot-dac.yaml15 divided voltage is provided by a vref regulator.
19 | vref |--' .---.
34 vref-supply:
50 - vref-supply
60 vref-supply = <&reg_3v3>;
Dadi,ad5449.yaml30 VREF-supply: true
50 VREF-supply: true
54 - VREF-supply
65 VREF-supply: false
82 VREF-supply = <&dac_ref>;
/Linux-v6.1/drivers/iio/dac/
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()
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()
[all …]
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 …]
Dlpc18xx_dac.c33 struct regulator *vref; member
64 *val = regulator_get_voltage(dac->vref) / 1000; in lpc18xx_dac_read_raw()
127 dac->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_dac_probe()
128 if (IS_ERR(dac->vref)) in lpc18xx_dac_probe()
129 return dev_err_probe(&pdev->dev, PTR_ERR(dac->vref), in lpc18xx_dac_probe()
138 ret = regulator_enable(dac->vref); in lpc18xx_dac_probe()
164 regulator_disable(dac->vref); in lpc18xx_dac_probe()
177 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()
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()
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()
Dad3552r.c134 /* Internal source with Vref I/O floating */
136 /* Internal source with Vref I/O at 2.5V */
138 /* External source with Vref I/O as input */
216 * 0 -> Internal Vref, vref_io pin floating (default)
217 * 1 -> Internal Vref, vref_io driven by internal vref
218 * 2 or 3 -> External Vref
715 s64 vref, tmp, common, offset, gn, gp; in ad3552r_get_custom_range() local
722 vref = 2500; in ad3552r_get_custom_range()
730 *v_max = vref + tmp; in ad3552r_get_custom_range()
735 *v_min = vref - tmp; in ad3552r_get_custom_range()
[all …]
/Linux-v6.1/drivers/iio/adc/
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()
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()
168 "failed to get vref regulator\n"); in max1241_probe()
170 ret = regulator_enable(adc->vref); in max1241_probe()
176 dev_err(dev, "could not set up vref regulator cleanup action\n"); in max1241_probe()
Dlpc18xx_adc.c42 struct regulator *vref; member
104 *val = regulator_get_voltage(adc->vref) / 1000; in lpc18xx_adc_read_raw()
124 static void lpc18xx_regulator_disable(void *vref) in lpc18xx_regulator_disable() argument
126 regulator_disable(vref); in lpc18xx_regulator_disable()
154 adc->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_adc_probe()
155 if (IS_ERR(adc->vref)) in lpc18xx_adc_probe()
156 return dev_err_probe(&pdev->dev, PTR_ERR(adc->vref), in lpc18xx_adc_probe()
165 ret = regulator_enable(adc->vref); in lpc18xx_adc_probe()
171 ret = devm_add_action_or_reset(&pdev->dev, lpc18xx_regulator_disable, adc->vref); in lpc18xx_adc_probe()
Dmax11205.c34 struct regulator *vref; member
53 reg_mv = regulator_get_voltage(st->vref); in max11205_read_raw()
130 st->vref = devm_regulator_get(&spi->dev, "vref"); in max11205_probe()
131 if (IS_ERR(st->vref)) in max11205_probe()
132 return dev_err_probe(&spi->dev, PTR_ERR(st->vref), in max11205_probe()
133 "Failed to get vref regulator\n"); in max11205_probe()
135 ret = regulator_enable(st->vref); in max11205_probe()
139 ret = devm_add_action_or_reset(&spi->dev, max11205_reg_disable, st->vref); in max11205_probe()
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()
Dmcp3911.c69 struct regulator *vref; member
193 if (adc->vref) { in mcp3911_read_raw()
194 ret = regulator_get_voltage(adc->vref); in mcp3911_read_raw()
197 "failed to get vref voltage: %d\n", in mcp3911_read_raw()
209 * Raw = ((Voltage)/(Vref) * 2^23 * Gain * 1.5 in mcp3911_read_raw()
210 * Voltage = Raw * (Vref)/(2^23 * Gain * 1.5) in mcp3911_read_raw()
369 if (adc->vref) { in mcp3911_config()
403 static void mcp3911_cleanup_regulator(void *vref) in mcp3911_cleanup_regulator() argument
405 regulator_disable(vref); in mcp3911_cleanup_regulator()
438 adc->vref = devm_regulator_get_optional(&adc->spi->dev, "vref"); in mcp3911_probe()
[all …]
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()
191 consumer = priv->vref[chan->channel]; in rcar_gyroadc_read_raw()
226 vref = regulator_get_voltage(consumer); in rcar_gyroadc_read_raw()
227 *val = vref / 1000; in rcar_gyroadc_read_raw()
322 struct regulator *vref; in rcar_gyroadc_parse_subdevs() local
394 vref = devm_regulator_get(dev, "vref"); in rcar_gyroadc_parse_subdevs()
396 if (IS_ERR(vref)) { in rcar_gyroadc_parse_subdevs()
397 dev_dbg(dev, "Channel %i 'vref' supply not connected.\n", in rcar_gyroadc_parse_subdevs()
[all …]
Dfsl-imx25-gcq.c41 struct regulator *vref[4]; member
181 if (priv->vref[refp]) in mx25_gcq_ext_regulator_setup()
184 ret = snprintf(reg_name, sizeof(reg_name), "vref-%s", in mx25_gcq_ext_regulator_setup()
189 priv->vref[refp] = devm_regulator_get_optional(dev, reg_name); 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()
[all …]
Dnpcm_adc.c34 struct regulator *vref; member
174 if (!IS_ERR(info->vref)) { in npcm_adc_read_raw()
175 vref_uv = regulator_get_voltage(info->vref); in npcm_adc_read_raw()
260 info->vref = devm_regulator_get_optional(&pdev->dev, "vref"); in npcm_adc_probe()
261 if (!IS_ERR(info->vref)) { in npcm_adc_probe()
262 ret = regulator_enable(info->vref); in npcm_adc_probe()
275 if (PTR_ERR(info->vref) != -ENODEV) { in npcm_adc_probe()
276 ret = PTR_ERR(info->vref); in npcm_adc_probe()
315 if (!IS_ERR(info->vref)) in npcm_adc_probe()
316 regulator_disable(info->vref); in npcm_adc_probe()
[all …]
Dad799x.c127 struct regulator *vref; member
302 if (st->vref) in ad799x_read_raw()
303 ret = regulator_get_voltage(st->vref); in ad799x_read_raw()
807 st->vref = devm_regulator_get_optional(&client->dev, "vref"); in ad799x_probe()
809 if (IS_ERR(st->vref)) { in ad799x_probe()
810 if (PTR_ERR(st->vref) == -ENODEV) { in ad799x_probe()
811 st->vref = NULL; in ad799x_probe()
814 ret = PTR_ERR(st->vref); in ad799x_probe()
819 if (st->vref) { in ad799x_probe()
827 ret = regulator_enable(st->vref); in ad799x_probe()
[all …]
Dad7949.c70 * @vref: regulator generating Vref
82 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()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/iio/adc/
Dadi,ad7476.yaml56 datasheets. If there is no separate vref-supply, then this is needed
63 vref-supply:
102 # Devices with a vref
115 vref-supply: true
118 vref-supply: false
119 # Devices with a vref where it is not optional
131 - vref-supply
172 vref-supply = <&adc_vref>;
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>;
/Linux-v6.1/drivers/input/touchscreen/
Dads7846.c180 #define ADS_PD10_REF_ON (2 << 0) /* vREF on + penirq */
181 #define ADS_PD10_ALL_ON (3 << 0) /* ADC + vREF on */
186 #define READ_12BIT_DFR(x, adc, vref) (ADS_START | ADS_A2A1A0_d_ ## x \ argument
188 (adc ? ADS_PD10_ADC_ON : 0) | (vref ? ADS_PD10_REF_ON : 0))
190 #define READ_Y(vref) (READ_12BIT_DFR(y, 1, vref)) argument
191 #define READ_Z1(vref) (READ_12BIT_DFR(z1, 1, vref)) argument
192 #define READ_Z2(vref) (READ_12BIT_DFR(z2, 1, vref)) argument
193 #define READ_X(vref) (READ_12BIT_DFR(x, 1, vref)) argument
197 * we leave both ADC and VREF powered
205 /* Order commands in the most optimal way to reduce Vref switching and
[all …]
/Linux-v6.1/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

12345678910>>...20