Lines Matching full:cnv
60 /* GPIO connected to CNV pin. */
61 struct gpio_desc *cnv; member
82 /* quite time before CNV rising edge */
150 * CS is tied to CNV and we need a low to high transition to start the in ad7944_3wire_cs_mode_init_msg()
151 * conversion, so place CNV low for t_QUIET to prepare for this. in ad7944_3wire_cs_mode_init_msg()
219 * We only support CNV connected to CS in chain mode and we need CNV in ad7944_chain_mode_init_msg()
226 /* CNV has to be high for full conversion time before reading data. */ in ad7944_chain_mode_init_msg()
255 * In 4-wire mode, the CNV line is held high for the entire conversion in ad7944_convert_and_acquire()
256 * and acquisition process. In other modes adc->cnv is NULL and is in ad7944_convert_and_acquire()
257 * ignored (CS is wired to CNV in those cases). in ad7944_convert_and_acquire()
259 gpiod_set_value_cansleep(adc->cnv, 1); in ad7944_convert_and_acquire()
261 gpiod_set_value_cansleep(adc->cnv, 0); in ad7944_convert_and_acquire()
526 adc->cnv = devm_gpiod_get_optional(dev, "cnv", GPIOD_OUT_LOW); in ad7944_probe()
527 if (IS_ERR(adc->cnv)) in ad7944_probe()
528 return dev_err_probe(dev, PTR_ERR(adc->cnv), in ad7944_probe()
529 "failed to get CNV GPIO\n"); in ad7944_probe()
531 if (!adc->cnv && adc->spi_mode == AD7944_SPI_MODE_DEFAULT) in ad7944_probe()
532 return dev_err_probe(&spi->dev, -EINVAL, "CNV GPIO is required\n"); in ad7944_probe()
533 if (adc->cnv && adc->spi_mode != AD7944_SPI_MODE_DEFAULT) in ad7944_probe()
535 "CNV GPIO in single and chain mode is not currently supported\n"); in ad7944_probe()