/Linux-v4.19/drivers/iio/adc/ |
D | fsl-imx25-gcq.c | 44 struct regulator *vref[4]; member 196 priv->vref[MX25_ADC_REFP_INT] = NULL; in mx25_gcq_setup_cfgs() 197 priv->vref[MX25_ADC_REFP_EXT] = in mx25_gcq_setup_cfgs() 199 priv->vref[MX25_ADC_REFP_XP] = in mx25_gcq_setup_cfgs() 201 priv->vref[MX25_ADC_REFP_YP] = in mx25_gcq_setup_cfgs() 228 if (IS_ERR(priv->vref[refp])) { in mx25_gcq_setup_cfgs() 231 return PTR_ERR(priv->vref[refp]); in mx25_gcq_setup_cfgs() 234 regulator_get_voltage(priv->vref[refp]); in mx25_gcq_setup_cfgs() 279 if (!IS_ERR_OR_NULL(priv->vref[i])) in mx25_gcq_setup_cfgs() 280 devm_regulator_put(priv->vref[i]); in mx25_gcq_setup_cfgs() [all …]
|
D | rcar-gyroadc.c | 77 struct regulator *vref[8]; member 195 unsigned int vref; in rcar_gyroadc_read_raw() local 203 consumer = priv->vref[0]; in rcar_gyroadc_read_raw() 205 consumer = priv->vref[chan->channel]; in rcar_gyroadc_read_raw() 240 vref = regulator_get_voltage(consumer); in rcar_gyroadc_read_raw() 241 *val = vref / 1000; in rcar_gyroadc_read_raw() 336 struct regulator *vref; in rcar_gyroadc_parse_subdevs() local 408 vref = devm_regulator_get(dev, "vref"); in rcar_gyroadc_parse_subdevs() 410 if (IS_ERR(vref)) { in rcar_gyroadc_parse_subdevs() 413 return PTR_ERR(vref); in rcar_gyroadc_parse_subdevs() [all …]
|
D | lpc18xx_adc.c | 46 struct regulator *vref; member 108 *val = regulator_get_voltage(adc->vref) / 1000; in lpc18xx_adc_read_raw() 153 adc->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_adc_probe() 154 if (IS_ERR(adc->vref)) { in lpc18xx_adc_probe() 156 return PTR_ERR(adc->vref); in lpc18xx_adc_probe() 166 ret = regulator_enable(adc->vref); in lpc18xx_adc_probe() 194 regulator_disable(adc->vref); in lpc18xx_adc_probe() 207 regulator_disable(adc->vref); in lpc18xx_adc_remove()
|
D | rockchip_saradc.c | 57 struct regulator *vref; member 96 ret = regulator_get_voltage(info->vref); in rockchip_saradc_read_raw() 280 info->vref = devm_regulator_get(&pdev->dev, "vref"); in rockchip_saradc_probe() 281 if (IS_ERR(info->vref)) { in rockchip_saradc_probe() 283 PTR_ERR(info->vref)); in rockchip_saradc_probe() 284 return PTR_ERR(info->vref); in rockchip_saradc_probe() 300 ret = regulator_enable(info->vref); in rockchip_saradc_probe() 340 regulator_disable(info->vref); in rockchip_saradc_probe() 352 regulator_disable(info->vref); in rockchip_saradc_remove() 365 regulator_disable(info->vref); in rockchip_saradc_suspend() [all …]
|
D | imx7d_adc.c | 121 struct regulator *vref; member 327 info->vref_uv = regulator_get_voltage(info->vref); in imx7d_adc_read_raw() 475 info->vref = devm_regulator_get(&pdev->dev, "vref"); in imx7d_adc_probe() 476 if (IS_ERR(info->vref)) { in imx7d_adc_probe() 477 ret = PTR_ERR(info->vref); in imx7d_adc_probe() 483 ret = regulator_enable(info->vref); in imx7d_adc_probe() 532 regulator_disable(info->vref); in imx7d_adc_probe() 547 regulator_disable(info->vref); in imx7d_adc_remove() 560 regulator_disable(info->vref); in imx7d_adc_suspend() 571 ret = regulator_enable(info->vref); in imx7d_adc_resume() [all …]
|
D | ti-tlc4541.c | 114 int vref; in tlc4541_get_range() local 116 vref = regulator_get_voltage(st->reg); in tlc4541_get_range() 117 if (vref < 0) in tlc4541_get_range() 118 return vref; in tlc4541_get_range() 120 vref /= 1000; in tlc4541_get_range() 122 return vref; in tlc4541_get_range()
|
D | ad7923.c | 211 int vref; in ad7923_get_range() local 213 vref = regulator_get_voltage(st->reg); in ad7923_get_range() 214 if (vref < 0) in ad7923_get_range() 215 return vref; in ad7923_get_range() 217 vref /= 1000; in ad7923_get_range() 220 vref *= 2; in ad7923_get_range() 222 return vref; in ad7923_get_range()
|
D | ti-ads7950.c | 317 int vref; in ti_ads7950_get_range() local 320 vref = st->vref_mv; in ti_ads7950_get_range() 322 vref = regulator_get_voltage(st->reg); in ti_ads7950_get_range() 323 if (vref < 0) in ti_ads7950_get_range() 324 return vref; in ti_ads7950_get_range() 326 vref /= 1000; in ti_ads7950_get_range() 330 vref *= 2; in ti_ads7950_get_range() 332 return vref; in ti_ads7950_get_range()
|
D | stm32-adc-core.c | 94 struct regulator *vref; member 406 priv->vref = devm_regulator_get(&pdev->dev, "vref"); in stm32_adc_probe() 407 if (IS_ERR(priv->vref)) { in stm32_adc_probe() 408 ret = PTR_ERR(priv->vref); in stm32_adc_probe() 413 ret = regulator_enable(priv->vref); in stm32_adc_probe() 419 ret = regulator_get_voltage(priv->vref); in stm32_adc_probe() 495 regulator_disable(priv->vref); in stm32_adc_probe() 511 regulator_disable(priv->vref); in stm32_adc_remove()
|
/Linux-v4.19/drivers/iio/dac/ |
D | dpot-dac.c | 41 struct regulator *vref; member 73 tmp *= regulator_get_voltage(dac->vref) / 1000; in dpot_dac_read_raw() 86 *val *= regulator_get_voltage(dac->vref) / 1000; in dpot_dac_read_raw() 189 dac->vref = devm_regulator_get(dev, "vref"); in dpot_dac_probe() 190 if (IS_ERR(dac->vref)) { in dpot_dac_probe() 191 if (PTR_ERR(dac->vref) != -EPROBE_DEFER) in dpot_dac_probe() 193 return PTR_ERR(dac->vref); in dpot_dac_probe() 217 ret = regulator_enable(dac->vref); in dpot_dac_probe() 232 regulator_disable(dac->vref); in dpot_dac_probe() 242 regulator_disable(dac->vref); in dpot_dac_remove()
|
D | stm32-dac-core.c | 29 struct regulator *vref; member 82 priv->vref = devm_regulator_get(dev, "vref"); in stm32_dac_probe() 83 if (IS_ERR(priv->vref)) { in stm32_dac_probe() 84 ret = PTR_ERR(priv->vref); in stm32_dac_probe() 89 ret = regulator_enable(priv->vref); in stm32_dac_probe() 95 ret = regulator_get_voltage(priv->vref); in stm32_dac_probe() 147 regulator_disable(priv->vref); in stm32_dac_probe() 159 regulator_disable(priv->vref); in stm32_dac_remove()
|
D | lpc18xx_dac.c | 37 struct regulator *vref; member 68 *val = regulator_get_voltage(dac->vref) / 1000; in lpc18xx_dac_read_raw() 134 dac->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_dac_probe() 135 if (IS_ERR(dac->vref)) { in lpc18xx_dac_probe() 137 return PTR_ERR(dac->vref); in lpc18xx_dac_probe() 147 ret = regulator_enable(dac->vref); in lpc18xx_dac_probe() 173 regulator_disable(dac->vref); in lpc18xx_dac_probe() 186 regulator_disable(dac->vref); in lpc18xx_dac_remove()
|
D | ti-dac082s085.c | 53 struct regulator *vref; member 202 ret = regulator_get_voltage(ti_dac->vref); in ti_dac_read_raw() 291 ti_dac->vref = devm_regulator_get(dev, "vref"); in ti_dac_probe() 292 if (IS_ERR(ti_dac->vref)) in ti_dac_probe() 293 return PTR_ERR(ti_dac->vref); in ti_dac_probe() 295 ret = regulator_enable(ti_dac->vref); in ti_dac_probe() 315 regulator_disable(ti_dac->vref); in ti_dac_probe() 326 regulator_disable(ti_dac->vref); in ti_dac_remove()
|
D | ti-dac5571.c | 51 struct regulator *vref; member 254 ret = regulator_get_voltage(data->vref); in dac5571_read_raw() 338 data->vref = devm_regulator_get(dev, "vref"); in dac5571_probe() 339 if (IS_ERR(data->vref)) in dac5571_probe() 340 return PTR_ERR(data->vref); in dac5571_probe() 342 ret = regulator_enable(data->vref); in dac5571_probe() 376 regulator_disable(data->vref); in dac5571_probe() 386 regulator_disable(data->vref); in dac5571_remove()
|
/Linux-v4.19/Documentation/devicetree/bindings/iio/dac/ |
D | ltc2632.txt | 16 - vref-supply: Phandle to the external reference voltage supply. This should 22 vref: regulator-vref { 24 regulator-name = "vref-ltc2632"; 35 vref-supply = <&vref>; /* optional */
|
D | mcp4725.txt | 8 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;
|
D | dpot-dac.txt | 5 divided voltage is provided by a vref regulator. 9 | vref |--' .---. 22 - vref-supply: The regulator supplying the voltage divider. 38 vref-supply = <®_3v3>;
|
D | max5821.txt | 6 - vref-supply: Phandle to the vref power supply 13 vref-supply = <®_max5821>;
|
D | ti-dac082s085.txt | 14 - vref-supply: Phandle to the external reference voltage supply. 20 vref_2v5_reg: regulator-vref { 33 vref-supply = <&vref_2v5_reg>;
|
D | ad5592r.txt | 49 - 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 */
|
/Linux-v4.19/Documentation/devicetree/bindings/hwmon/ |
D | ads7828.txt | 13 - vref-supply 16 on the "external vref" pin. 23 vref-supply = <&vref>;
|
/Linux-v4.19/Documentation/devicetree/bindings/iio/adc/ |
D | ti-adc12138.txt | 13 - vref-p-supply: The regulator supply for positive analog voltage reference 16 - vref-n-supply: The regulator supply for negative analog voltage reference 17 (Note that this must not go below GND or exceed vref-p) 34 vref-p-supply = <&ldo4_reg>;
|
D | ltc2497.txt | 6 - vref-supply: The regulator supply for ADC reference voltage 12 vref-supply = <<c2497_reg>;
|
/Linux-v4.19/Documentation/devicetree/bindings/input/touchscreen/ |
D | ads7846.txt | 28 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-v4.19/drivers/hwmon/ |
D | adc128d818.c | 71 int vref; /* Reference voltage in mV */ member 167 val = DIV_ROUND_CLOSEST(data->in[index][nr] * data->vref, 4095); in adc128_show_in() 471 int err, vref; in adc128_probe() local 484 vref = regulator_get_voltage(regulator); in adc128_probe() 485 if (vref < 0) { in adc128_probe() 486 err = vref; in adc128_probe() 489 data->vref = DIV_ROUND_CLOSEST(vref, 1000); in adc128_probe() 491 data->vref = 2560; /* 2.56V, in mV */ in adc128_probe()
|