/Linux-v5.4/drivers/iio/adc/ |
D | fsl-imx25-gcq.c | 41 struct regulator *vref[4]; member 193 priv->vref[MX25_ADC_REFP_INT] = NULL; in mx25_gcq_setup_cfgs() 194 priv->vref[MX25_ADC_REFP_EXT] = in mx25_gcq_setup_cfgs() 196 priv->vref[MX25_ADC_REFP_XP] = in mx25_gcq_setup_cfgs() 198 priv->vref[MX25_ADC_REFP_YP] = in mx25_gcq_setup_cfgs() 227 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() 282 if (!IS_ERR_OR_NULL(priv->vref[i])) in mx25_gcq_setup_cfgs() 283 devm_regulator_put(priv->vref[i]); in mx25_gcq_setup_cfgs() [all …]
|
D | mcp3911.c | 52 struct regulator *vref; member 127 if (adc->vref) { in mcp3911_read_raw() 128 ret = regulator_get_voltage(adc->vref); 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() 263 return PTR_ERR(adc->vref); in mcp3911_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 return PTR_ERR(vref); in rcar_gyroadc_parse_subdevs() [all …]
|
D | npcm_adc.c | 25 struct regulator *vref; member 152 if (!IS_ERR(info->vref)) { in npcm_adc_read_raw() 153 vref_uv = regulator_get_voltage(info->vref); in npcm_adc_read_raw() 240 info->vref = devm_regulator_get_optional(&pdev->dev, "vref"); in npcm_adc_probe() 241 if (!IS_ERR(info->vref)) { in npcm_adc_probe() 242 ret = regulator_enable(info->vref); in npcm_adc_probe() 255 if (PTR_ERR(info->vref) != -ENODEV) { in npcm_adc_probe() 256 ret = PTR_ERR(info->vref); in npcm_adc_probe() 296 if (!IS_ERR(info->vref)) in npcm_adc_probe() 297 regulator_disable(info->vref); in npcm_adc_probe() [all …]
|
D | lpc18xx_adc.c | 43 struct regulator *vref; member 105 *val = regulator_get_voltage(adc->vref) / 1000; in lpc18xx_adc_read_raw() 150 adc->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_adc_probe() 151 if (IS_ERR(adc->vref)) { in lpc18xx_adc_probe() 153 return PTR_ERR(adc->vref); in lpc18xx_adc_probe() 163 ret = regulator_enable(adc->vref); in lpc18xx_adc_probe() 191 regulator_disable(adc->vref); in lpc18xx_adc_probe() 204 regulator_disable(adc->vref); in lpc18xx_adc_remove()
|
D | ad7124.c | 125 struct regulator *vref[4]; member 332 unsigned int res, gain, full_scale, vref; in ad7124_write_raw() local 349 vref = st->channel_config[chan->address].vref_mv * 1000000LL; in ad7124_write_raw() 350 res = DIV_ROUND_CLOSEST(vref, full_scale); in ad7124_write_raw() 414 if (IS_ERR(st->vref[refsel])) { in ad7124_init_channel_vref() 418 return PTR_ERR(st->vref[refsel]); in ad7124_init_channel_vref() 421 regulator_get_voltage(st->vref[refsel]); in ad7124_init_channel_vref() 593 for (i = 0; i < ARRAY_SIZE(st->vref); i++) { in ad7124_probe() 597 st->vref[i] = devm_regulator_get_optional(&spi->dev, in ad7124_probe() 599 if (PTR_ERR(st->vref[i]) == -ENODEV) in ad7124_probe() [all …]
|
D | rockchip_saradc.c | 48 struct regulator *vref; member 87 ret = regulator_get_voltage(info->vref); in rockchip_saradc_read_raw() 269 info->vref = devm_regulator_get(&pdev->dev, "vref"); in rockchip_saradc_probe() 270 if (IS_ERR(info->vref)) { in rockchip_saradc_probe() 272 PTR_ERR(info->vref)); in rockchip_saradc_probe() 273 return PTR_ERR(info->vref); in rockchip_saradc_probe() 289 ret = regulator_enable(info->vref); in rockchip_saradc_probe() 329 regulator_disable(info->vref); in rockchip_saradc_probe() 341 regulator_disable(info->vref); in rockchip_saradc_remove() 354 regulator_disable(info->vref); in rockchip_saradc_suspend() [all …]
|
D | ad7949.c | 51 struct regulator *vref; member 190 ret = regulator_get_voltage(ad7949_adc->vref); in ad7949_spi_read_raw() 271 ad7949_adc->vref = devm_regulator_get(dev, "vref"); in ad7949_spi_probe() 272 if (IS_ERR(ad7949_adc->vref)) { in ad7949_spi_probe() 274 return PTR_ERR(ad7949_adc->vref); in ad7949_spi_probe() 277 ret = regulator_enable(ad7949_adc->vref); in ad7949_spi_probe() 301 regulator_disable(ad7949_adc->vref); in ad7949_spi_probe() 313 regulator_disable(ad7949_adc->vref); in ad7949_spi_remove()
|
D | ti-tlc4541.c | 111 int vref; in tlc4541_get_range() local 113 vref = regulator_get_voltage(st->reg); in tlc4541_get_range() 114 if (vref < 0) in tlc4541_get_range() 115 return vref; in tlc4541_get_range() 117 vref /= 1000; in tlc4541_get_range() 119 return vref; in tlc4541_get_range()
|
D | ad7923.c | 210 int vref; in ad7923_get_range() local 212 vref = regulator_get_voltage(st->reg); in ad7923_get_range() 213 if (vref < 0) in ad7923_get_range() 214 return vref; in ad7923_get_range() 216 vref /= 1000; in ad7923_get_range() 219 vref *= 2; in ad7923_get_range() 221 return vref; in ad7923_get_range()
|
/Linux-v5.4/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() 83 *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 if (PTR_ERR(dac->vref) != -EPROBE_DEFER) in dpot_dac_probe() 190 return PTR_ERR(dac->vref); in dpot_dac_probe() 214 ret = regulator_enable(dac->vref); in dpot_dac_probe() 229 regulator_disable(dac->vref); in dpot_dac_probe() 239 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 | 34 struct regulator *vref; member 65 *val = regulator_get_voltage(dac->vref) / 1000; in lpc18xx_dac_read_raw() 131 dac->vref = devm_regulator_get(&pdev->dev, "vref"); in lpc18xx_dac_probe() 132 if (IS_ERR(dac->vref)) { in lpc18xx_dac_probe() 134 return PTR_ERR(dac->vref); in lpc18xx_dac_probe() 144 ret = regulator_enable(dac->vref); in lpc18xx_dac_probe() 170 regulator_disable(dac->vref); in lpc18xx_dac_probe() 183 regulator_disable(dac->vref); in lpc18xx_dac_remove()
|
D | ti-dac7311.c | 49 struct regulator *vref; member 179 ret = regulator_get_voltage(ti_dac->vref); in ti_dac_read_raw() 270 ti_dac->vref = devm_regulator_get(dev, "vref"); in ti_dac_probe() 271 if (IS_ERR(ti_dac->vref)) { in ti_dac_probe() 273 return PTR_ERR(ti_dac->vref); in ti_dac_probe() 276 ret = regulator_enable(ti_dac->vref); in ti_dac_probe() 294 regulator_disable(ti_dac->vref); in ti_dac_probe() 305 regulator_disable(ti_dac->vref); in ti_dac_remove()
|
D | ti-dac082s085.c | 50 struct regulator *vref; member 199 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 | 48 struct regulator *vref; member 251 ret = regulator_get_voltage(data->vref); in dac5571_read_raw() 335 data->vref = devm_regulator_get(dev, "vref"); in dac5571_probe() 336 if (IS_ERR(data->vref)) in dac5571_probe() 337 return PTR_ERR(data->vref); in dac5571_probe() 339 ret = regulator_enable(data->vref); in dac5571_probe() 373 regulator_disable(data->vref); in dac5571_probe() 383 regulator_disable(data->vref); in dac5571_remove()
|
/Linux-v5.4/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-v5.4/Documentation/devicetree/bindings/hwmon/ |
D | ads7828.txt | 13 - vref-supply 16 on the "external vref" pin. 23 vref-supply = <&vref>;
|
/Linux-v5.4/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";
|
/Linux-v5.4/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>;
|