Home
last modified time | relevance | path

Searched +full:vref +full:- +full:buffered (Results 1 – 9 of 9) sorted by relevance

/Linux-v6.1/Documentation/devicetree/bindings/iio/dac/
Dmicrochip,mcp4725.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Tomas Novotny <tomas@novotny.cz>
15 - microchip,mcp4725
16 - microchip,mcp4726
21 vdd-supply:
24 For the mcp4726 it will be used as the reference voltage if vref-supply
27 vref-supply:
29 Vref pin is used as a voltage reference when this supply is specified.
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/iio/adc/
Dadi,ad7949.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Charles-Antoine Couret <charles-antoine.couret@essensium.com>
15 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7949.pdf
17 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7682_7689.pdf
22 - adi,ad7682
23 - adi,ad7689
24 - adi,ad7949
29 vrefin-supply:
[all …]
/Linux-v6.1/drivers/iio/pressure/
Dzpa2326.c1 // SPDX-License-Identifier: GPL-2.0-only
34 * - get device out of low power mode,
35 * - setup hardware sampling period,
36 * - at end of period, upon data ready interrupt: pop pressure samples out of
38 * - when no longer needed, stop sampling process by putting device into
70 /* 200 ms should be enough for the longest conversion time in one-shot mode. */
78 * struct zpa2326_frequency - Hardware sampling frequency descriptor
102 ARRAY_SIZE(zpa2326_sampling_frequencies) - 1]; in zpa2326_highest_frequency()
106 * struct zpa2326_private - Per-device internal private state
107 * @timestamp: Buffered samples ready datum.
[all …]
/Linux-v6.1/drivers/iio/adc/
Dad7949.c1 // SPDX-License-Identifier: GPL-2.0
2 /* ad7949.c - Analog Devices ADC driver 14/16 bits 4/8 channels
6 * https://www.analog.com/media/en/technical-documentation/data-sheets/AD7949.pdf
33 /* BW: select bandwidth for low-pass filter. Full or Quarter */
68 * struct ad7949_adc_chip - AD ADC chip
70 * @vref: regulator generating Vref
78 * @buf8b: be16 buffer to exchange data with the device in 8-bit transfers
82 struct regulator *vref; member
98 ad7949_adc->cfg = (val & mask) | (ad7949_adc->cfg & ~mask); in ad7949_spi_write_cfg()
100 switch (ad7949_adc->spi->bits_per_word) { in ad7949_spi_write_cfg()
[all …]
Dad7124.c1 // SPDX-License-Identifier: GPL-2.0+
171 struct regulator *vref[4]; member
199 .name = "ad7124-4",
204 .name = "ad7124-8",
220 diff_new = abs(val - array[i]); in ad7124_find_closest_match()
239 ret = ad_sd_read_reg(&st->sd, addr, bytes, &readval); in ad7124_spi_write_mask()
246 return ad_sd_write_reg(&st->sd, addr, bytes, readval); in ad7124_spi_write_mask()
254 st->adc_control &= ~AD7124_ADC_CTRL_MODE_MSK; in ad7124_set_mode()
255 st->adc_control |= AD7124_ADC_CTRL_MODE(mode); in ad7124_set_mode()
257 return ad_sd_write_reg(&st->sd, AD7124_ADC_CONTROL, 2, st->adc_control); in ad7124_set_mode()
[all …]
Dad7791.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
71 .differential = (_channel2 == -1 ? 0 : 1), \
99 __AD7991_CHANNEL(_si, _channel, -1, _address, _bits, \
111 __AD7991_CHANNEL(_si, _channel, -1, _address, _bits, \
244 st->mode &= ~AD7791_MODE_SEL_MASK; in ad7791_set_mode()
245 st->mode |= AD7791_MODE_SEL(mode); in ad7791_set_mode()
247 return ad_sd_write_reg(sd, AD7791_REG_MODE, sizeof(st->mode), st->mode); in ad7791_set_mode()
263 bool unipolar = !!(st->mode & AD7791_MODE_UNIPOLAR); in ad7791_read_raw()
271 * Unipolar: 0 to VREF in ad7791_read_raw()
[all …]
Dmax1363.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2008-2010 Jonathan Cameron
7 * Copyright (C) 2002-2004 Stefan Eletzhofer
51 /* think about including max11600 etc - more settings */
58 /* max1363 only - though don't care on others.
79 /* max123{6-9} only */
82 /* max1363 only - merely part of channel selects or don't care for others */
87 /* max1363 strictly 0x06 - but doesn't matter */
94 * struct max1363_mode - scan mode information
122 * struct max1363_chip_info - chip specifc information
[all …]
Dmxs-lradc-adc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 #include <linux/mfd/mxs-lradc.h>
32 * Make this runtime configurable if necessary. Currently, if the buffered mode
43 "mxs-lradc-channel0",
44 "mxs-lradc-channel1",
45 "mxs-lradc-channel2",
46 "mxs-lradc-channel3",
47 "mxs-lradc-channel4",
48 "mxs-lradc-channel5",
52 "mxs-lradc-thresh0",
[all …]
/Linux-v6.1/drivers/iio/dac/
Dmcp4725.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * mcp4725.c - Support for Microchip MCP4725/6
9 * driver for the Microchip I2C 12-bit digital-to-analog converter (DAC)
10 * (7-bit I2C slave address 0x60, the three LSBs can be configured in
51 outbuf[0] = (data->powerdown_mode + 1) << 4; in mcp4725_suspend()
53 data->powerdown = true; in mcp4725_suspend()
55 return i2c_master_send(data->client, outbuf, 2); in mcp4725_suspend()
65 outbuf[0] = (data->dac_value >> 8) & 0xf; in mcp4725_resume()
66 outbuf[1] = data->dac_value & 0xff; in mcp4725_resume()
67 data->powerdown = false; in mcp4725_resume()
[all …]