/kernel/linux/linux-5.10/drivers/iio/adc/ |
D | fsl-imx25-gcq.c | 41 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() 205 priv->vref[MX25_ADC_REFP_XP] = in mx25_gcq_setup_cfgs() 207 priv->vref[MX25_ADC_REFP_YP] = in mx25_gcq_setup_cfgs() 236 if (IS_ERR(priv->vref[refp])) { in mx25_gcq_setup_cfgs() 240 return PTR_ERR(priv->vref[refp]); in mx25_gcq_setup_cfgs() 243 regulator_get_voltage(priv->vref[refp]); in mx25_gcq_setup_cfgs() 291 if (!IS_ERR_OR_NULL(priv->vref[i])) in mx25_gcq_setup_cfgs() 292 devm_regulator_put(priv->vref[i]); in mx25_gcq_setup_cfgs() [all …]
|
D | mcp3911.c | 52 struct regulator *vref; member 129 if (adc->vref) { in mcp3911_read_raw() 130 ret = regulator_get_voltage(adc->vref); in mcp3911_read_raw() 230 if (adc->vref) { in mcp3911_config() 264 adc->vref = devm_regulator_get_optional(&adc->spi->dev, "vref"); in mcp3911_probe() 265 if (IS_ERR(adc->vref)) { in mcp3911_probe() 266 if (PTR_ERR(adc->vref) == -ENODEV) { in mcp3911_probe() 267 adc->vref = NULL; in mcp3911_probe() 271 PTR_ERR(adc->vref)); in mcp3911_probe() 272 return PTR_ERR(adc->vref); in mcp3911_probe() [all …]
|
D | npcm_adc.c | 26 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 …]
|
D | rcar-gyroadc.c | 68 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() 404 ret = PTR_ERR(vref); in rcar_gyroadc_parse_subdevs() [all …]
|
D | lpc18xx_adc.c | 43 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()
|
D | ad7091r-base.c | 46 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()
|
D | max1241.c | 26 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() 168 adc->vref = devm_regulator_get(dev, "vref"); in max1241_probe() 169 if (IS_ERR(adc->vref)) { in max1241_probe() 171 return PTR_ERR(adc->vref); in max1241_probe() 174 ret = regulator_enable(adc->vref); in max1241_probe()
|
D | ad7949.c | 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()
|
D | rockchip_saradc.c | 51 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() 444 regulator_disable(info->vref); in rockchip_saradc_suspend() 455 ret = regulator_enable(info->vref); in rockchip_saradc_resume()
|
D | ti-tlc4541.c | 112 int vref; in tlc4541_get_range() local 114 vref = regulator_get_voltage(st->reg); in tlc4541_get_range() 115 if (vref < 0) in tlc4541_get_range() 116 return vref; in tlc4541_get_range() 118 vref /= 1000; in tlc4541_get_range() 120 return vref; in tlc4541_get_range()
|
D | ad7124.c | 154 struct regulator *vref[4]; member 421 unsigned int res, gain, full_scale, vref; in ad7124_write_raw() local 438 vref = st->channel_config[chan->address].vref_mv * 1000000LL; in ad7124_write_raw() 439 res = DIV_ROUND_CLOSEST(vref, full_scale); in ad7124_write_raw() 558 if (IS_ERR(st->vref[refsel])) { in ad7124_init_channel_vref() 562 return PTR_ERR(st->vref[refsel]); in ad7124_init_channel_vref() 565 regulator_get_voltage(st->vref[refsel]); in ad7124_init_channel_vref() 752 for (i = 0; i < ARRAY_SIZE(st->vref); i++) { in ad7124_probe() 756 st->vref[i] = devm_regulator_get_optional(&spi->dev, in ad7124_probe() 758 if (PTR_ERR(st->vref[i]) == -ENODEV) in ad7124_probe() [all …]
|
D | ad7923.c | 243 int vref; in ad7923_get_range() local 245 vref = regulator_get_voltage(st->reg); in ad7923_get_range() 246 if (vref < 0) in ad7923_get_range() 247 return vref; in ad7923_get_range() 249 vref /= 1000; in ad7923_get_range() 252 vref *= 2; in ad7923_get_range() 254 return vref; in ad7923_get_range()
|
/kernel/linux/linux-5.10/drivers/iio/dac/ |
D | dpot-dac.c | 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() 210 ret = regulator_enable(dac->vref); in dpot_dac_probe() 225 regulator_disable(dac->vref); in dpot_dac_probe() 235 regulator_disable(dac->vref); in dpot_dac_remove()
|
D | lpc18xx_dac.c | 34 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()
|
D | stm32-dac-core.c | 28 struct regulator *vref; member 58 ret = regulator_enable(priv->vref); 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() 142 ret = regulator_get_voltage(priv->vref); in stm32_dac_probe()
|
D | ti-dac7311.c | 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()
|
D | ti-dac082s085.c | 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()
|
D | ti-dac5571.c | 47 struct regulator *vref; member 251 ret = regulator_get_voltage(data->vref); in dac5571_read_raw() 333 data->vref = devm_regulator_get(dev, "vref"); in dac5571_probe() 334 if (IS_ERR(data->vref)) in dac5571_probe() 335 return PTR_ERR(data->vref); in dac5571_probe() 337 ret = regulator_enable(data->vref); in dac5571_probe() 372 regulator_disable(data->vref); in dac5571_probe() 382 regulator_disable(data->vref); in dac5571_remove()
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/dac/ |
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 */
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/hwmon/ |
D | ads7828.txt | 13 - vref-supply 16 on the "external vref" pin. 23 vref-supply = <&vref>;
|
/kernel/linux/linux-5.10/arch/arm64/boot/dts/freescale/ |
D | imx8mq-nitrogen.dts | 37 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";
|