| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/adc/ |
| D | ti,adc12138.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Texas Instruments ADC12138 and similar self-calibrating ADCs 10 - Akinobu Mita <akinobu.mita@gmail.com> 19 - ti,adc12130 20 - ti,adc12132 21 - ti,adc12138 34 vref-p-supply: 37 vref-n-supply: [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/ |
| D | ti,adc12138.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Texas Instruments ADC12138 and similar self-calibrating ADCs 10 - Akinobu Mita <akinobu.mita@gmail.com> 19 - ti,adc12130 20 - ti,adc12132 21 - ti,adc12138 34 spi-max-frequency: true 36 vref-p-supply: [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/dac/ |
| D | adi,ad3552r.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Nuno Sá <nuno.sa@analog.com> 16 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3542r.pdf 17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3552r.pdf 22 - adi,ad3542r 23 - adi,ad3552r 28 spi-max-frequency: 31 reset-gpios: [all …]
|
| D | dpot-dac.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/dac/dpot-dac.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Peter Rosin <peda@axentia.se> 15 divided voltage is provided by a vref regulator. 17 .------. 18 .-----------. | | 19 | vref |--' .---. 20 | regulator |--. | | [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/dac/ |
| D | ad3552r.c | 1 // SPDX-License-Identifier: GPL-2.0-only 103 #define AD3552R_REG_ADDR_CH_DAC_16B(ch) (0x2C - (1 - ch) * 2) 108 #define AD3552R_REG_ADDR_CH_INPUT_16B(ch) (0x36 - (1 - ch) * 2) 112 #define AD3552R_REG_ADDR_CH_DAC_24B(ch) (0x3D - (1 - ch) * 3) 117 #define AD3552R_REG_ADDR_CH_INPUT_24B(ch) (0x4B - (1 - ch) * 3) 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 */ 154 /* Range from -5 V to 5 V. Requires Rfb2x connection */ 156 /* Range from -10 V to 10 V. Requires Rfb4x connection */ [all …]
|
| D | dpot-dac.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * divided voltage is provided by a vref regulator. 15 * .------. 16 * .-----------. | | 17 * | vref |--' .---. 18 * | regulator |--. | | 19 * '-----------' | | d | 20 * | | p | 22 * | | t |<---------+ 24 * | '---' dac output voltage [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/dac/ |
| D | dpot-dac.txt | 5 divided voltage is provided by a vref regulator. 7 .------. 8 .-----------. | | 9 | vref |--' .---. 10 | regulator |--. | | 11 '-----------' | | d | 12 | | p | 14 | | t |<---------+ 16 | '---' dac output voltage 18 '------+------------+ [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/adc/ |
| D | ti-tlc4541.c | 1 // SPDX-License-Identifier: GPL-2.0-only 91 static irqreturn_t tlc4541_trigger_handler(int irq, void *p) in tlc4541_trigger_handler() argument 93 struct iio_poll_func *pf = p; in tlc4541_trigger_handler() 94 struct iio_dev *indio_dev = pf->indio_dev; in tlc4541_trigger_handler() 98 ret = spi_sync(st->spi, &st->scan_single_msg); in tlc4541_trigger_handler() 102 iio_push_to_buffers_with_timestamp(indio_dev, st->rx_buf, in tlc4541_trigger_handler() 106 iio_trigger_notify_done(indio_dev->trig); in tlc4541_trigger_handler() 112 int vref; in tlc4541_get_range() local 114 vref = regulator_get_voltage(st->reg); in tlc4541_get_range() 115 if (vref < 0) in tlc4541_get_range() [all …]
|
| D | mcp3911.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for Microchip MCP3911, Two-channel Analog Front End 73 struct regulator *vref; member 91 reg = MCP3911_REG_READ(reg, adc->dev_addr); in mcp3911_read() 92 ret = spi_write_then_read(adc->spi, ®, 1, val, len); in mcp3911_read() 97 *val >>= ((4 - len) * 8); in mcp3911_read() 98 dev_dbg(&adc->spi->dev, "reading 0x%x from register 0x%lx\n", *val, in mcp3911_read() 105 dev_dbg(&adc->spi->dev, "writing 0x%x to register 0x%x\n", val, reg); in mcp3911_write() 107 val <<= (3 - len) * 8; in mcp3911_write() 109 val |= MCP3911_REG_WRITE(reg, adc->dev_addr); in mcp3911_write() [all …]
|
| D | rockchip_saradc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 73 struct regulator *vref; member 89 writel_relaxed(8, info->regs + SARADC_DLY_PU_SOC); in rockchip_saradc_start_v1() 92 SARADC_CTRL_IRQ_ENABLE, info->regs + SARADC_CTRL); in rockchip_saradc_start_v1() 99 if (info->reset) in rockchip_saradc_start_v2() 100 rockchip_saradc_reset_controller(info->reset); in rockchip_saradc_start_v2() 102 writel_relaxed(0xc, info->regs + SARADC_T_DAS_SOC); in rockchip_saradc_start_v2() 103 writel_relaxed(0x20, info->regs + SARADC_T_PD_SOC); in rockchip_saradc_start_v2() 106 writel_relaxed(val, info->regs + SARADC2_END_INT_EN); in rockchip_saradc_start_v2() 111 writel(val, info->regs + SARADC2_CONV_CON); in rockchip_saradc_start_v2() [all …]
|
| D | ad799x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2010-2011 Michael Hennerich, Analog Devices Inc. 7 * Copyright (C) 2008-2010 Jonathan Cameron 10 * Copyright (C) 2002-2004 Stefan Eletzhofer 101 * struct ad799x_chip_config - chip specific information 113 * struct ad799x_chip_info - chip specific information 128 struct regulator *vref; member 140 switch (st->id) { in ad799x_write_config() 143 return i2c_smbus_write_word_swapped(st->client, AD7998_CONF_REG, in ad799x_write_config() 148 return i2c_smbus_write_byte_data(st->client, AD7998_CONF_REG, in ad799x_write_config() [all …]
|
| D | ad7923.c | 1 // SPDX-License-Identifier: GPL-2.0-only 47 #define EXTRACT(val, dec, bits) (((val) >> (dec)) & ((1 << (bits)) - 1)) 97 .shift = 12 - (bits), \ 172 for_each_set_bit(i, active_scan_mask, indio_dev->num_channels - 1) { in ad7923_update_scan_mode() 175 st->settings; in ad7923_update_scan_mode() 177 st->tx_buf[len++] = cpu_to_be16(cmd); in ad7923_update_scan_mode() 180 st->ring_xfer[0].tx_buf = &st->tx_buf[0]; in ad7923_update_scan_mode() 181 st->ring_xfer[0].len = len; in ad7923_update_scan_mode() 182 st->ring_xfer[0].cs_change = 1; in ad7923_update_scan_mode() 184 spi_message_init(&st->ring_msg); in ad7923_update_scan_mode() [all …]
|
| D | ad7298.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 #define AD7298_CH(x) BIT(13 - (x)) /* channel select */ 82 .scan_index = -1, 112 scan_count = bitmap_weight(active_scan_mask, indio_dev->masklength); in ad7298_update_scan_mode() 114 command = AD7298_WRITE | st->ext_ref; in ad7298_update_scan_mode() 120 st->tx_buf[0] = cpu_to_be16(command); in ad7298_update_scan_mode() 123 st->ring_xfer[0].tx_buf = &st->tx_buf[0]; in ad7298_update_scan_mode() 124 st->ring_xfer[0].len = 2; in ad7298_update_scan_mode() 125 st->ring_xfer[0].cs_change = 1; in ad7298_update_scan_mode() 126 st->ring_xfer[1].tx_buf = &st->tx_buf[1]; in ad7298_update_scan_mode() [all …]
|
| D | ti-ads8688.c | 1 // SPDX-License-Identifier: GPL-2.0-only 44 * enum ads8688_range - ADS8688 reference voltage range 45 * @ADS8688_PLUSMINUS25VREF: Device is configured for input range ±2.5 * VREF 46 * @ADS8688_PLUSMINUS125VREF: Device is configured for input range ±1.25 * VREF 47 * @ADS8688_PLUSMINUS0625VREF: Device is configured for input range ±0.625 * VREF 48 * @ADS8688_PLUS25VREF: Device is configured for input range 0 - 2.5 * VREF 49 * @ADS8688_PLUS125VREF: Device is configured for input range 0 - 1.25 * VREF 93 .offset = -(1 << (ADS8688_REALBITS - 1)), 98 .offset = -(1 << (ADS8688_REALBITS - 1)), 103 .offset = -(1 << (ADS8688_REALBITS - 1)), [all …]
|
| D | ti-ads7950.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ 36 * Device tree users encode that via the vref-supply regulator. 54 (((val) >> (dec)) & ((1 << (bits)) - 1)) 61 (TI_ADS7950_MAN_CMD(TI_ADS7950_CR_WRITE | st->cmd_settings_bitmask)) 64 (TI_ADS7950_GPIO_CMD(st->gpio_cmd_settings_bitmask)) 84 * [0-3] GPIO signal 87 * [6] Sets Vref range1(2.5v) or range2(5v) 95 * [0-3] GPIO direction 96 * [4-6] Different GPIO alarm mode configurations [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| D | ti-tlc4541.c | 1 // SPDX-License-Identifier: GPL-2.0-only 91 static irqreturn_t tlc4541_trigger_handler(int irq, void *p) in tlc4541_trigger_handler() argument 93 struct iio_poll_func *pf = p; in tlc4541_trigger_handler() 94 struct iio_dev *indio_dev = pf->indio_dev; in tlc4541_trigger_handler() 98 ret = spi_sync(st->spi, &st->scan_single_msg); in tlc4541_trigger_handler() 102 iio_push_to_buffers_with_timestamp(indio_dev, st->rx_buf, in tlc4541_trigger_handler() 106 iio_trigger_notify_done(indio_dev->trig); in tlc4541_trigger_handler() 112 int vref; in tlc4541_get_range() local 114 vref = regulator_get_voltage(st->reg); in tlc4541_get_range() 115 if (vref < 0) in tlc4541_get_range() [all …]
|
| D | rockchip_saradc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 51 struct regulator *vref; member 61 writel_relaxed(0, info->regs + SARADC_CTRL); in rockchip_saradc_power_down() 67 reinit_completion(&info->completion); in rockchip_saradc_conversion() 70 writel_relaxed(8, info->regs + SARADC_DLY_PU_SOC); in rockchip_saradc_conversion() 72 info->last_chan = chan; in rockchip_saradc_conversion() 76 | (chan->channel & SARADC_CTRL_CHN_MASK) in rockchip_saradc_conversion() 78 info->regs + SARADC_CTRL); in rockchip_saradc_conversion() 80 if (!wait_for_completion_timeout(&info->completion, SARADC_TIMEOUT)) in rockchip_saradc_conversion() 81 return -ETIMEDOUT; in rockchip_saradc_conversion() [all …]
|
| D | ad7923.c | 1 // SPDX-License-Identifier: GPL-2.0-only 46 #define EXTRACT(val, dec, bits) (((val) >> (dec)) & ((1 << (bits)) - 1)) 96 .shift = 12 - (bits), \ 171 for_each_set_bit(i, active_scan_mask, indio_dev->num_channels - 1) { in ad7923_update_scan_mode() 174 st->settings; in ad7923_update_scan_mode() 176 st->tx_buf[len++] = cpu_to_be16(cmd); in ad7923_update_scan_mode() 179 st->ring_xfer[0].tx_buf = &st->tx_buf[0]; in ad7923_update_scan_mode() 180 st->ring_xfer[0].len = len; in ad7923_update_scan_mode() 181 st->ring_xfer[0].cs_change = 1; in ad7923_update_scan_mode() 183 spi_message_init(&st->ring_msg); in ad7923_update_scan_mode() [all …]
|
| D | ad7298.c | 1 // SPDX-License-Identifier: GPL-2.0-only 30 #define AD7298_CH(x) BIT(13 - (x)) /* channel select */ 83 .scan_index = -1, 113 scan_count = bitmap_weight(active_scan_mask, indio_dev->masklength); in ad7298_update_scan_mode() 115 command = AD7298_WRITE | st->ext_ref; in ad7298_update_scan_mode() 121 st->tx_buf[0] = cpu_to_be16(command); in ad7298_update_scan_mode() 124 st->ring_xfer[0].tx_buf = &st->tx_buf[0]; in ad7298_update_scan_mode() 125 st->ring_xfer[0].len = 2; in ad7298_update_scan_mode() 126 st->ring_xfer[0].cs_change = 1; in ad7298_update_scan_mode() 127 st->ring_xfer[1].tx_buf = &st->tx_buf[1]; in ad7298_update_scan_mode() [all …]
|
| D | ti-ads8688.c | 1 // SPDX-License-Identifier: GPL-2.0-only 44 * enum ads8688_range - ADS8688 reference voltage range 45 * @ADS8688_PLUSMINUS25VREF: Device is configured for input range ±2.5 * VREF 46 * @ADS8688_PLUSMINUS125VREF: Device is configured for input range ±1.25 * VREF 47 * @ADS8688_PLUSMINUS0625VREF: Device is configured for input range ±0.625 * VREF 48 * @ADS8688_PLUS25VREF: Device is configured for input range 0 - 2.5 * VREF 49 * @ADS8688_PLUS125VREF: Device is configured for input range 0 - 1.25 * VREF 93 .offset = -(1 << (ADS8688_REALBITS - 1)), 98 .offset = -(1 << (ADS8688_REALBITS - 1)), 103 .offset = -(1 << (ADS8688_REALBITS - 1)), [all …]
|
| D | ti-ads7950.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ 36 * Device tree users encode that via the vref-supply regulator. 54 (((val) >> (dec)) & ((1 << (bits)) - 1)) 61 (TI_ADS7950_MAN_CMD(TI_ADS7950_CR_WRITE | st->cmd_settings_bitmask)) 64 (TI_ADS7950_GPIO_CMD(st->gpio_cmd_settings_bitmask)) 84 * [0-3] GPIO signal 87 * [6] Sets Vref range1(2.5v) or range2(5v) 95 * [0-3] GPIO direction 96 * [4-6] Different GPIO alarm mode configurations [all …]
|
| D | ad7768-1.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Analog Devices AD7768-1 SPI ADC driver 156 struct regulator *vref; member 184 shift = 32 - (8 * len); in ad7768_spi_reg_read() 185 st->data.d8[0] = AD7768_RD_FLAG_MSK(addr); in ad7768_spi_reg_read() 187 ret = spi_write_then_read(st->spi, st->data.d8, 1, in ad7768_spi_reg_read() 188 &st->data.d32, len); in ad7768_spi_reg_read() 192 return (be32_to_cpu(st->data.d32) >> shift); in ad7768_spi_reg_read() 199 st->data.d8[0] = AD7768_WR_FLAG_MSK(addr); in ad7768_spi_reg_write() 200 st->data.d8[1] = val & 0xFF; in ad7768_spi_reg_write() [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/dac/ |
| D | dpot-dac.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * divided voltage is provided by a vref regulator. 15 * .------. 16 * .-----------. | | 17 * | vref |--' .---. 18 * | regulator |--. | | 19 * '-----------' | | d | 20 * | | p | 22 * | | t |<---------+ 24 * | '---' dac output voltage [all …]
|
| /kernel/linux/linux-6.6/drivers/input/touchscreen/ |
| D | ads7846.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * - corgi_ts.c 11 * Copyright (C) 2004-2005 Richard Purdie 12 * - omap_ts.[hc], ads7846.h, ts_osk.c 39 * Support for ads7843 tested on Atmel at91sam926x-EK. 53 * note. The strength of filtering can be set in the board-* specific 76 * driver is used with DMA-based SPI controllers (like atmel_spi) on 77 * systems where main memory is not DMA-coherent (most non-x86 boards). 133 bool stopped; /* P: lock */ 134 bool disabled; /* P: lock */ [all …]
|
| /kernel/linux/linux-5.10/drivers/input/touchscreen/ |
| D | ads7846.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * - corgi_ts.c 11 * Copyright (C) 2004-2005 Richard Purdie 12 * - omap_ts.[hc], ads7846.h, ts_osk.c 42 * Support for ads7843 tested on Atmel at91sam926x-EK. 56 * note. The strength of filtering can be set in the board-* specific 79 * driver is used with DMA-based SPI controllers (like atmel_spi) on 80 * systems where main memory is not DMA-coherent (most non-x86 boards). 140 bool stopped; /* P: lock */ 141 bool disabled; /* P: lock */ [all …]
|