Lines Matching full:vdd
84 * @vdd: vdd supply reference
87 * @vdd_uv: vdd supply voltage (microvolts)
101 struct regulator *vdd; member
425 * - Vdd can be used to supply them, if above 2.7V (STM32MP1 only). in stm32_adc_core_switches_supply_en()
428 * - vdda < 2.7V but vdd > 2.7V: ANASWVDD = 1, EN_BOOSTER = 0 (stm32mp1) in stm32_adc_core_switches_supply_en()
429 * - vdda < 2.7V and vdd < 2.7V: ANASWVDD = 0, EN_BOOSTER = 1 in stm32_adc_core_switches_supply_en()
434 ret = regulator_enable(priv->vdd); in stm32_adc_core_switches_supply_en()
436 dev_err(dev, "vdd enable failed %d\n", ret); in stm32_adc_core_switches_supply_en()
444 regulator_disable(priv->vdd); in stm32_adc_core_switches_supply_en()
445 dev_err(dev, "vdd select failed, %d\n", ret); in stm32_adc_core_switches_supply_en()
448 dev_dbg(dev, "analog switches supplied by vdd\n"); in stm32_adc_core_switches_supply_en()
482 regulator_disable(priv->vdd); in stm32_adc_core_switches_supply_dis()
597 /* Vdd can be used to supply analog switches (optional) */ in stm32_adc_core_switches_probe()
599 of_property_read_bool(np, "vdd-supply")) { in stm32_adc_core_switches_probe()
600 priv->vdd = devm_regulator_get_optional(dev, "vdd"); in stm32_adc_core_switches_probe()
601 if (IS_ERR(priv->vdd)) { in stm32_adc_core_switches_probe()
602 ret = PTR_ERR(priv->vdd); in stm32_adc_core_switches_probe()
604 return dev_err_probe(dev, ret, "can't get vdd\n"); in stm32_adc_core_switches_probe()
606 priv->vdd = NULL; in stm32_adc_core_switches_probe()
610 if (priv->vdd) { in stm32_adc_core_switches_probe()
611 ret = regulator_enable(priv->vdd); in stm32_adc_core_switches_probe()
613 dev_err(dev, "vdd enable failed %d\n", ret); in stm32_adc_core_switches_probe()
617 ret = regulator_get_voltage(priv->vdd); in stm32_adc_core_switches_probe()
619 dev_err(dev, "vdd get voltage failed %d\n", ret); in stm32_adc_core_switches_probe()
620 regulator_disable(priv->vdd); in stm32_adc_core_switches_probe()
625 regulator_disable(priv->vdd); in stm32_adc_core_switches_probe()