Lines Matching full:cnv

69 	/* GPIO connected to CNV pin. */
70 struct gpio_desc *cnv; member
91 /* quite time before CNV rising edge */
93 /* minimum CNV high time to trigger conversion */
193 * CS is tied to CNV and we need a low to high transition to start the in ad7944_3wire_cs_mode_init_msg()
194 * conversion, so place CNV low for t_QUIET to prepare for this. in ad7944_3wire_cs_mode_init_msg()
256 * We only support CNV connected to CS in chain mode and we need CNV in ad7944_chain_mode_init_msg()
263 /* CNV has to be high for full conversion time before reading data. */ in ad7944_chain_mode_init_msg()
291 * CS is tied to CNV and we need a low to high transition to start the in ad7944_3wire_cs_mode_init_offload_msg()
292 * conversion, so place CNV low for t_QUIET to prepare for this. in ad7944_3wire_cs_mode_init_offload_msg()
296 /* CNV has to be high for a minimum time to trigger conversion. */ in ad7944_3wire_cs_mode_init_offload_msg()
334 * In 4-wire mode, the CNV line is held high for the entire conversion in ad7944_convert_and_acquire()
335 * and acquisition process. In other modes adc->cnv is NULL and is in ad7944_convert_and_acquire()
336 * ignored (CS is wired to CNV in those cases). in ad7944_convert_and_acquire()
338 gpiod_set_value_cansleep(adc->cnv, 1); in ad7944_convert_and_acquire()
340 gpiod_set_value_cansleep(adc->cnv, 0); in ad7944_convert_and_acquire()
722 adc->cnv = devm_gpiod_get_optional(dev, "cnv", GPIOD_OUT_LOW); in ad7944_probe()
723 if (IS_ERR(adc->cnv)) in ad7944_probe()
724 return dev_err_probe(dev, PTR_ERR(adc->cnv), in ad7944_probe()
725 "failed to get CNV GPIO\n"); in ad7944_probe()
727 if (!adc->cnv && adc->spi_mode == AD7944_SPI_MODE_DEFAULT) in ad7944_probe()
728 return dev_err_probe(&spi->dev, -EINVAL, "CNV GPIO is required\n"); in ad7944_probe()
729 if (adc->cnv && adc->spi_mode != AD7944_SPI_MODE_DEFAULT) in ad7944_probe()
731 "CNV GPIO in single and chain mode is not currently supported\n"); in ad7944_probe()