Home
last modified time | relevance | path

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

12345678910>>...18

/Linux-v5.15/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
107 - # Shared external vref, no internal reference
126 vref-supply: true
132 - vref-supply
133 - # Shared external vref, internal reference available
186 vref-supply: true
209 vref-supply: false
230 vref-supply: false
243 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.yaml32 VREF-supply: true
53 VREF-supply: true
57 - VREF-supply
68 VREF-supply: false
83 VREF-supply = <&dac_ref>;
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.15/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(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(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(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()
166 adc->vref = devm_regulator_get(dev, "vref"); in max1241_probe()
167 if (IS_ERR(adc->vref)) { in max1241_probe()
168 dev_err(dev, "failed to get vref regulator\n"); in max1241_probe()
169 return PTR_ERR(adc->vref); in max1241_probe()
172 ret = regulator_enable(adc->vref); in max1241_probe()
178 dev_err(dev, "could not set up vref regulator cleanup action\n"); in max1241_probe()
Dnpcm_adc.c26 struct regulator *vref; member
156 if (!IS_ERR(info->vref)) { in npcm_adc_read_raw()
157 vref_uv = regulator_get_voltage(info->vref); in npcm_adc_read_raw()
237 info->vref = devm_regulator_get_optional(&pdev->dev, "vref"); in npcm_adc_probe()
238 if (!IS_ERR(info->vref)) { in npcm_adc_probe()
239 ret = regulator_enable(info->vref); in npcm_adc_probe()
252 if (PTR_ERR(info->vref) != -ENODEV) { in npcm_adc_probe()
253 ret = PTR_ERR(info->vref); in npcm_adc_probe()
292 if (!IS_ERR(info->vref)) in npcm_adc_probe()
293 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
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 …]
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
254 regulator_disable(info->vref); in rockchip_saradc_regulator_disable()
314 regulator_unregister_notifier(info->vref, &info->nb); in rockchip_saradc_regulator_unreg_notifier()
396 info->vref = devm_regulator_get(&pdev->dev, "vref"); in rockchip_saradc_probe()
397 if (IS_ERR(info->vref)) { in rockchip_saradc_probe()
399 PTR_ERR(info->vref)); in rockchip_saradc_probe()
400 return PTR_ERR(info->vref); in rockchip_saradc_probe()
416 ret = regulator_enable(info->vref); in rockchip_saradc_probe()
418 dev_err(&pdev->dev, "failed to enable vref regulator\n"); in rockchip_saradc_probe()
429 ret = regulator_get_voltage(info->vref); in rockchip_saradc_probe()
[all …]
/Linux-v5.15/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.15/Documentation/devicetree/bindings/iio/adc/
Dadi,ad7476.yaml56 datasheets. If there is no separate vref-supply, then this is needed
63 vref-supply:
103 # Devices with a vref
116 vref-supply: true
119 vref-supply: false
120 # Devices with a vref where it is not optional
132 - vref-supply
171 vref-supply = <&adc_vref>;
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.15/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.15/drivers/input/touchscreen/
Dads7846.c179 #define ADS_PD10_REF_ON (2 << 0) /* vREF on + penirq */
180 #define ADS_PD10_ALL_ON (3 << 0) /* ADC + vREF on */
185 #define READ_12BIT_DFR(x, adc, vref) (ADS_START | ADS_A2A1A0_d_ ## x \ argument
187 (adc ? ADS_PD10_ADC_ON : 0) | (vref ? ADS_PD10_REF_ON : 0))
189 #define READ_Y(vref) (READ_12BIT_DFR(y, 1, vref)) argument
190 #define READ_Z1(vref) (READ_12BIT_DFR(z1, 1, vref)) argument
191 #define READ_Z2(vref) (READ_12BIT_DFR(z2, 1, vref)) argument
192 #define READ_X(vref) (READ_12BIT_DFR(x, 1, vref)) argument
196 * we leave both ADC and VREF powered
204 /* Order commands in the most optimal way to reduce Vref switching and
[all …]

12345678910>>...18