Lines Matching full:vref
134 /* Internal source with Vref I/O floating */
136 /* Internal source with Vref I/O at 2.5V */
138 /* External source with Vref I/O as input */
216 * 0 -> Internal Vref, vref_io pin floating (default)
217 * 1 -> Internal Vref, vref_io driven by internal vref
218 * 2 or 3 -> External Vref
715 s64 vref, tmp, common, offset, gn, gp; in ad3552r_get_custom_range() local
722 vref = 2500; in ad3552r_get_custom_range()
730 *v_max = vref + tmp; in ad3552r_get_custom_range()
735 *v_min = vref - tmp; in ad3552r_get_custom_range()
884 struct regulator *vref; in ad3552r_configure_device() local
893 vref = devm_regulator_get_optional(dev, "vref"); in ad3552r_configure_device()
894 if (IS_ERR(vref)) { in ad3552r_configure_device()
895 if (PTR_ERR(vref) != -ENODEV) in ad3552r_configure_device()
896 return dev_err_probe(dev, PTR_ERR(vref), in ad3552r_configure_device()
897 "Error getting vref"); in ad3552r_configure_device()
899 if (device_property_read_bool(dev, "adi,vref-out-en")) in ad3552r_configure_device()
904 err = regulator_enable(vref); in ad3552r_configure_device()
906 dev_err(dev, "Failed to enable external vref supply\n"); in ad3552r_configure_device()
910 err = devm_add_action_or_reset(dev, ad3552r_reg_disable, vref); in ad3552r_configure_device()
912 regulator_disable(vref); in ad3552r_configure_device()
916 voltage = regulator_get_voltage(vref); in ad3552r_configure_device()
918 dev_warn(dev, "vref-supply must be 2.5V"); in ad3552r_configure_device()