/linux-6.14.4/drivers/iio/adc/ |
D | max1241.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * MAX1241 low-power, 12-bit serial ADC 5 * Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX1240-MAX1241.pdf 25 struct regulator *vref; member 41 static int max1241_read(struct max1241 *adc) in max1241_read() argument 57 .rx_buf = &adc->data, in max1241_read() 62 return spi_sync_transfer(adc->spi, xfers, ARRAY_SIZE(xfers)); in max1241_read() 70 struct max1241 *adc = iio_priv(indio_dev); in max1241_read_raw() local 74 mutex_lock(&adc->lock); in max1241_read_raw() 76 if (adc->shutdown) { in max1241_read_raw() [all …]
|
D | lpc18xx_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * IIO ADC driver for NXP LPC18xx ADC 8 * - Hardware triggers 9 * - Burst mode 10 * - Interrupts 11 * - DMA 26 /* LPC18XX ADC registers and bits */ 42 struct regulator *vref; member 69 static int lpc18xx_adc_read_chan(struct lpc18xx_adc *adc, unsigned int ch) in lpc18xx_adc_read_chan() argument 74 reg = adc->cr_reg | BIT(ch) | LPC18XX_ADC_CR_START_NOW; in lpc18xx_adc_read_chan() [all …]
|
D | imx93_adc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * NXP i.MX93 ADC driver 22 #define IMX93_ADC_DRIVER_NAME "imx93-adc" 42 /* ADC bit shift */ 61 /* ADC status */ 76 struct regulator *vref; member 102 static void imx93_adc_power_down(struct imx93_adc *adc) in imx93_adc_power_down() argument 107 mcr = readl(adc->regs + IMX93_ADC_MCR); in imx93_adc_power_down() 109 writel(mcr, adc->regs + IMX93_ADC_MCR); in imx93_adc_power_down() 111 ret = readl_poll_timeout(adc->regs + IMX93_ADC_MSR, msr, in imx93_adc_power_down() [all …]
|
D | imx8qxp-adc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * NXP i.MX8QXP ADC driver 30 #define ADC_DRIVER_NAME "imx8qxp-adc" 46 /* ADC bit shift */ 75 /* ADC PARAMETER*/ 96 struct regulator *vref; member 97 /* Serialise ADC channel reads */ 123 static void imx8qxp_adc_reset(struct imx8qxp_adc *adc) in imx8qxp_adc_reset() argument 128 ctrl = readl(adc->regs + IMX8QXP_ADR_ADC_CTRL); in imx8qxp_adc_reset() 130 writel(ctrl, adc->regs + IMX8QXP_ADR_ADC_CTRL); in imx8qxp_adc_reset() [all …]
|
D | npcm_adc.c | 1 // SPDX-License-Identifier: GPL-2.0 34 struct regulator *vref; member 48 /* ADC registers */ 67 /* ADC General Definition */ 106 regtemp = ioread32(info->regs + NPCM_ADCCON); in npcm_adc_isr() 108 iowrite32(regtemp, info->regs + NPCM_ADCCON); in npcm_adc_isr() 109 wake_up_interruptible(&info->wq); in npcm_adc_isr() 110 info->int_status = true; in npcm_adc_isr() 121 /* Select ADC channel */ in npcm_adc_read() 122 regtemp = ioread32(info->regs + NPCM_ADCCON); in npcm_adc_read() [all …]
|
D | fsl-imx25-gcq.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2014-2015 Pengutronix, Markus Pargmann <[email protected]> 6 * connected to the imx25 ADC. 9 #include <dt-bindings/iio/adc/fsl-imx25-gcq.h> 13 #include <linux/mfd/imx25-tsadc.h> 23 static const char * const driver_name = "mx25-gcq"; 42 struct regulator *vref[4]; member 87 regmap_read(priv->regs, MX25_ADCQ_SR, &stats); in mx25_gcq_irq() 90 regmap_set_bits(priv->regs, MX25_ADCQ_MR, in mx25_gcq_irq() 92 complete(&priv->completed); in mx25_gcq_irq() [all …]
|
D | stm32-adc-core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * This file is part of STM32 ADC driver 5 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved 8 * Inspired from: fsl-imx25-tsadc 30 #include "stm32-adc-core.h" 46 * struct stm32_adc_common_regs - stm32 common registers 51 * @ier: interrupt enable register offset for each adc 66 * struct stm32_adc_priv_cfg - stm32 core compatible configuration data 70 * @ipid: adc identification number 73 * @num_adcs: maximum number of ADC instances in the common registers [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/iio/adc/ |
D | st,stm32-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/st,stm32-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectronics STM32 ADC 10 STM32 ADC is a successive approximation analog-to-digital converter. 12 in single, continuous, scan or discontinuous mode. Result of the ADC is 13 stored in a left-aligned or right-aligned 32-bit data register. 17 voltage goes beyond the user-defined, higher or lower thresholds. 19 Each STM32 ADC block can have up to 3 ADC instances. [all …]
|
D | cosmic,10001-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/cosmic,10001-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Cosmic Circuits CC-10001 ADC 10 - Jonathan Cameron <[email protected]> 13 Cosmic Circuits 10001 10-bit ADC device. 17 const: cosmic,10001-adc 22 adc-reserved-channels: 31 clock-names: [all …]
|
D | aspeed,ast2600-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/aspeed,ast2600-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ADC that forms part of an ASPEED server management processor. 10 - Billy Tsai <[email protected]> 13 • 10-bits resolution for 16 voltage channels. 16 • Channel scanning can be non-continuous. 17 • Programmable ADC clock frequency. 21 • Built-in a compensating method. [all …]
|
D | fsl,imx7d-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/fsl,imx7d-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Freescale ADC found on the imx7d SoC 10 - Haibo Chen <[email protected]> 14 const: fsl,imx7d-adc 25 clock-names: 26 const: adc 28 vref-supply: true [all …]
|
D | nxp,lpc1850-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/nxp,lpc1850-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NXP LPC1850 ADC 10 - Jonathan Cameron <[email protected]> 13 Supports the ADC found on the LPC1850 SoC. 17 const: nxp,lpc1850-adc 28 vref-supply: true 33 "#io-channel-cells": [all …]
|
D | adi,ad7192.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/iio/adc/adi,ad7192.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Analog Devices AD7192 ADC device driver 11 - Michael Hennerich <[email protected]> 14 Bindings for the Analog Devices AD7192 ADC device. Datasheet can be 16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7192.pdf 21 - adi,ad7190 22 - adi,ad7192 [all …]
|
D | gehc,pmc-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/gehc,pmc-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GE HealthCare PMC Analog to Digital Converter (ADC) 10 - Herve Codina <[email protected]> 13 The GE HealthCare PMC ADC is a 16-Channel (voltage and current), 16-Bit ADC 18 const: gehc,pmc-adc 23 vdd-supply: 27 vdda-supply: [all …]
|
D | atmel,sama9260-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/atmel,sama9260-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: AT91 sama9260 and similar Analog to Digital Converter (ADC) 10 - Alexandre Belloni <[email protected]> 15 - atmel,at91sam9260-adc 16 - atmel,at91sam9rl-adc 17 - atmel,at91sam9g45-adc 18 - atmel,at91sam9x5-adc [all …]
|
D | adi,ad7949.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/adi,ad7949.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Charles-Antoine Couret <charles-[email protected]> 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 [all …]
|
D | fsl,vf610-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/fsl,vf610-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ADC found on Freescale vf610 and similar SoCs 10 - Haibo Chen <[email protected]> 18 - items: 19 - enum: 20 - fsl,imx6sx-adc 21 - fsl,imx6ul-adc [all …]
|
D | nxp,imx93-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/nxp,imx93-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NXP iMX93 ADC 10 - Haibo Chen <[email protected]> 13 The ADC on iMX93 is a 8-channel 12-bit 1MS/s ADC with 4 channels 15 One-Shot and Scan (continuous) conversions. Programmable DMA 16 enables for each channel Also this ADC contain alternate analog 18 also has Self-test logic and Software-initiated calibration. [all …]
|
D | renesas,rcar-gyroadc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/renesas,rcar-gyroadc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Renesas R-Car GyroADC 10 - Marek Vasut <[email protected]> 15 are sampled by the GyroADC block in a round-robin fashion and the result 17 The ADC bindings should match with that of the devices connected to a 23 - enum: 24 - renesas,r8a7791-gyroadc [all …]
|
D | fsl,imx25-gcq.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/fsl,imx25-gcq.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Freescale ADC GCQ device 11 analog inputs using the ADC unit of the i.MX25. 14 - Jonathan Cameron <[email protected]> 18 const: fsl,imx25-gcq 26 vref-ext-supply: 28 The regulator supplying the ADC reference voltage. [all …]
|
D | ti,ads131e08.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/ti,ads131e08.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Texas Instruments ADS131E0x 4-, 6- and 8-Channel ADCs 10 - Jonathan Cameron <[email protected]> 14 24-bit, delta-sigma, analog-to-digital converters (ADCs) with a 15 built-in programmable gain amplifier (PGA), internal reference 17 The communication with ADC chip is via the SPI bus (mode 1). 24 - ti,ads131e04 [all …]
|
D | maxim,max11100.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/maxim,max11100.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Maxim MAX11100 ADC 10 - Jacopo Mondi <[email protected]> 13 Single channel 16 bit ADC with SPI interface. 22 vref-supply: 25 spi-max-frequency: 30 - compatible [all …]
|
D | sigma-delta-modulator.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/sigma-delta-modulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Arnaud Pouliquen <[email protected]> 15 "sd-modulator" can be used as a generic SD modulator, 18 - sd-modulator 19 - ads1201 21 '#io-backend-cells': 24 '#io-channel-cells': [all …]
|
D | atmel,sama5d2-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/atmel,sama5d2-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: AT91 SAMA5D2 Analog to Digital Converter (ADC) 10 - Eugen Hristev <[email protected]> 15 - atmel,sama5d2-adc 16 - microchip,sam9x60-adc 17 - microchip,sama7g5-adc 28 clock-names: [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/staging/iio/adc/ |
D | spear-adc.txt | 1 * ST SPEAr ADC device driver 4 - compatible: Should be "st,spear600-adc" 5 - reg: Address and length of the register set for the device 6 - interrupts: Should contain the ADC interrupt 7 - sampling-frequency: Default sampling frequency 10 - vref-external: External voltage reference in milli-volts. If omitted 12 - average-samples: Number of samples to generate an average value. If 17 adc: adc@d8200000 { 18 compatible = "st,spear600-adc"; 20 interrupt-parent = <&vic1>; [all …]
|