/openbmc/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | adi,ad7124.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/iio/adc/adi,ad7124.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Analog Devices AD7124 ADC device driver 11 - Stefan Popa <stefan.popa@analog.com> 14 Bindings for the Analog Devices AD7124 ADC device. Datasheet can be 16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7124-8.pdf 21 - adi,ad7124-4 22 - adi,ad7124-8 [all …]
|
H A 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. 11 It has several multiplexed input channels. Conversions can be performed 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. [all …]
|
H A D | adi,ad4130.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/iio/adc/adi,ad4130.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Analog Devices AD4130 ADC device driver 11 - Cosmin Tanislav <cosmin.tanislav@analog.com> 14 Bindings for the Analog Devices AD4130 ADC. Datasheet can be found here: 15 https://www.analog.com/media/en/technical-documentation/data-sheets/AD4130-8.pdf 20 - adi,ad4130 29 clock-names: [all …]
|
H A D | adi,ad7292.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/adi,ad7292.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices AD7292 10-Bit Monitor and Control System 10 - Marcelo Schmitt <marcelo.schmitt1@gmail.com> 13 Analog Devices AD7292 10-Bit Monitor and Control System with ADC, DACs, 17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7292.pdf 22 - adi,ad7292 27 vref-supply: [all …]
|
H A D | adi,max11410.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/iio/adc/adi,max11410.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Analog Devices MAX11410 ADC device driver 11 - Ibrahim Tilki <Ibrahim.Tilki@analog.com> 14 Bindings for the Analog Devices MAX11410 ADC device. Datasheet can be 21 - adi,max11410 30 interrupt-names: 34 - enum: [gpio0, gpio1] [all …]
|
H A D | adc.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: IIO Common Properties for ADC Channels 10 - Jonathan Cameron <jic23@kernel.org> 13 A few properties are defined in a common way ADC channels. 17 pattern: "^channel(@[0-9a-f]+)?$" 32 diff-channels: 33 $ref: /schemas/types.yaml#/definitions/uint32-array [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/adc/ |
H A D | st,stm32-adc.txt | 1 STMicroelectronics STM32 ADC device 3 STM32 ADC is a successive approximation analog-to-digital converter. 4 It has several multiplexed input channels. Conversions can be performed 5 in single, continuous, scan or discontinuous mode. Result of the ADC is 6 stored in a left-aligned or right-aligned 32-bit data register. 10 voltage goes beyond the user-defined, higher or lower thresholds. 12 Each STM32 ADC block can have up to 3 ADC instances. 16 - regular conversion can be done in sequence, running in background 17 - injected conversions have higher priority, and so have the ability to 21 Contents of a stm32 adc root node: [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | stm32-adc.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 12 #include <linux/dma-mapping.h> 16 #include <linux/iio/timer/stm32-lptim-trigger.h> 17 #include <linux/iio/timer/stm32-timer-trigger.h> 26 #include <linux/nvmem-consumer.h> 31 #include "stm32-adc-core.h" 36 /* BOOST bit must be set on STM32H7 when ADC clock is above 20MHz */ 39 #define STM32_ADC_CH_MAX 20 /* max number of channels */ [all …]
|
H A D | ad7292.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Analog Devices AD7292 SPI ADC driver 92 st->d8[0] = AD7292_RD_FLAG_MSK(addr); in ad7292_spi_reg_read() 94 ret = spi_write_then_read(st->spi, st->d8, 1, &st->d16, 2); in ad7292_spi_reg_read() 98 return be16_to_cpu(st->d16); in ad7292_spi_reg_read() 104 unsigned int shift = 16 - (8 * len); in ad7292_spi_subreg_read() 107 st->d8[0] = AD7292_RD_FLAG_MSK(addr); in ad7292_spi_subreg_read() 108 st->d8[1] = sub_addr; in ad7292_spi_subreg_read() 110 ret = spi_write_then_read(st->spi, st->d8, 2, &st->d16, len); in ad7292_spi_subreg_read() 114 return (be16_to_cpu(st->d16) >> shift); in ad7292_spi_subreg_read() [all …]
|
H A D | max11410.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * MAX11410 SPI ADC driver 142 struct max11410_channel_config *channels; member 175 /* This driver only needs to write 8-bit registers */ in max11410_write_reg() 177 return -EINVAL; in max11410_write_reg() 179 return regmap_write(st->regmap, reg, val); in max11410_write_reg() 188 ret = regmap_bulk_read(st->regmap, reg, &st->scan.data, 3); in max11410_read_reg() 192 *val = get_unaligned_be24(&st->scan.data); in max11410_read_reg() 196 return regmap_read(st->regmap, reg, val); in max11410_read_reg() 204 return st->avdd; in max11410_get_vrefp() [all …]
|
H A D | at91-sama5d2_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Atmel ADC driver for SAMA5D2 devices and compatible. 14 #include <linux/dma-mapping.h> 31 #include <linux/nvmem-consumer.h> 36 #include <dt-bindings/iio/adc/at91-sama5d2_ad 905 int nbits, diff; at91_adc_adjust_val_osr() local [all...] |
H A D | ad7124.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * AD7124 SPI ADC driver 23 #include <linux/iio/adc/ad_sigma_delta.h> 174 struct ad7124_channel *channels; member 203 .name = "ad7124-4", 208 .name = "ad7124-8", 224 diff_new = abs(val - array[i]); in ad7124_find_closest_match() 243 ret = ad_sd_read_reg(&st->sd, addr, bytes, &readval); in ad7124_spi_write_mask() 250 return ad_sd_write_reg(&st->sd, addr, bytes, readval); in ad7124_spi_write_mask() 258 st->adc_control &= ~AD7124_ADC_CTRL_MODE_MSK; in ad7124_set_mode() [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | pcm186x.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Texas Instruments PCM186x Universal Audio ADC 5 * Copyright (C) 2015-2017 Texas Instruments Incorporated - https://www.ti.com 29 "avdd", /* Analog power supply. Connect to 3.3-V supply. */ 30 "dvdd", /* Digital power supply. Connect to 3.3-V supply. */ 31 "iovdd", /* I/O power supply. Connect to 3.3-V or 1.8-V. */ 44 static const DECLARE_TLV_DB_SCALE(pcm186x_pga_tlv, -1200, 50, 0); 47 SOC_DOUBLE_R_S_TLV("ADC Capture Volume", PCM186X_PGA_VAL_CH1_L, 48 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0, 54 PCM186X_PGA_VAL_CH1_R, 0, -24, 80, 7, 0, [all …]
|
H A D | wm8978.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8978.c -- WM8978 ALSA SoC Audio Codec driver 5 * Copyright (C) 2009-2010 Guennadi Liakhovetski <g.liakhovetski@gmx.de> 7 * Copyright 2006-2009 Wolfson Microelectronics PLC. 106 static const char *wm8978_companding[] = {"Off", "NC", "u-law", "A-law"}; 133 static const DECLARE_TLV_DB_SCALE(digital_tlv, -12750, 50, 1); 134 static const DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0); 135 static const DECLARE_TLV_DB_SCALE(inpga_tlv, -1200, 75, 0); 136 static const DECLARE_TLV_DB_SCALE(spk_tlv, -5700, 100, 0); 137 static const DECLARE_TLV_DB_SCALE(boost_tlv, -1500, 300, 1); [all …]
|
H A D | ad1836.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright 2009-2011 Analog Devices Inc. 38 * AD1836 volume/mute/de-emphasis etc. controls 54 SOC_DOUBLE("ADC" #x " Capture Switch", AD1836_ADC_CTRL2, \ 94 { "ADC", NULL, "ADC1IN" }, 95 { "ADC", NULL, "ADC2IN" }, 99 /* ADC high-pass filter */ 100 SOC_SINGLE("ADC High Pass Filter Switch", AD1836_ADC_CTRL1, 103 /* DAC de-emphasis */ 110 SND_SOC_DAPM_ADC("ADC", "Capture", SND_SOC_NOPM, 0, 0), [all …]
|
H A D | wm9712.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm9712.c -- ALSA Soc WM9712 codec support 5 * Copyright 2006-12 Wolfson Microelectronics PLC. 115 static const DECLARE_TLV_DB_SCALE(main_tlv, -3450, 150, 0); 181 SOC_SINGLE("3D Upper Cut-off Switch", AC97_3D_CONTROL, 5, 1, 1), 182 SOC_SINGLE("3D Lower Cut-off Switch", AC97_3D_CONTROL, 4, 1, 1), 186 SOC_SINGLE("Bass Cut-off Switch", AC97_MASTER_TONE, 12, 1, 1), 187 SOC_SINGLE("Tone Cut-off Switch", AC97_MASTER_TONE, 4, 1, 1), 188 SOC_SINGLE("Playback Attenuate (-6dB) Switch", AC97_MASTER_TONE, 6, 1, 0), 212 * the codec only has a single control that is shared by both channels. [all …]
|
H A D | da7219.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * da7219.c - DA7219 ALSA SoC Codec Driver 13 #include <linux/clk-provider.h> 26 #include <sound/soc-dapm.h> 33 #include "da7219-aad.h" 41 static const DECLARE_TLV_DB_SCALE(da7219_mic_gain_tlv, -600, 600, 0); 42 static const DECLARE_TLV_DB_SCALE(da7219_mixin_gain_tlv, -450, 150, 0); 43 static const DECLARE_TLV_DB_SCALE(da7219_adc_dig_gain_tlv, -8325, 75, 0); 44 static const DECLARE_TLV_DB_SCALE(da7219_alc_threshold_tlv, -9450, 150, 0); 47 static const DECLARE_TLV_DB_SCALE(da7219_sidetone_gain_tlv, -4200, 300, 0); [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mux/ |
H A D | adi,adg792a.txt | 4 - compatible : "adi,adg792a" or "adi,adg792g" 5 - #mux-control-cells : <0> if parallel (the three muxes are bound together 8 * Standard mux-controller bindings as described in mux-controller.yaml 11 - gpio-controller : if present, #gpio-cells below is required. 12 - #gpio-cells : should be <2> 13 - First cell is the GPO line number, i.e. 0 or 1 14 - Second cell is used to specify active high (0) 18 - idle-state : if present, array of states that the mux controllers will have 32 mux: mux-controller@50 { 35 #mux-control-cells = <1>; [all …]
|
/openbmc/linux/drivers/iio/addac/ |
H A D | stx104.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 #define STX104_IN_CHAN(chan, diff) { \ argument 37 .differential = diff \ 62 /* ADC Channel */ 68 /* ADC Status */ 73 /* ADC Control */ 77 /* ADC Configuration */ 87 * struct stx104_iio - IIO device private data structure 182 err = regmap_read(priv->aio_ctl_map, STX104_ADC_CONFIGURATION, &adc_config); in stx104_read_raw() 189 if (chan->output) { in stx104_read_raw() [all …]
|
/openbmc/linux/drivers/comedi/drivers/ |
H A D | ni_daq_700.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Driver for DAQCard-700 DIO/AI 7 * COMEDI - Linux Control and Measurement Device Interface 13 * Description: National Instruments PCMCIA DAQCard-700 16 * Devices: [National Instruments] PCMCIA DAQ-Card-700 (ni_daq_700) 20 * The daqcard-700 appears in Comedi as a digital I/O subdevice (0) with 21 * 16 channels and a analog input subdevice (1) with 16 single-ended channels 22 * or 8 differential channels, and three input ranges. 24 * Digital: The channel 0 corresponds to the daqcard-700's output 27 * Digital direction configuration: channels 0-7 output, 8-15 input. [all …]
|
H A D | amplc_pci230.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * COMEDI - Linux Control and Measurement Device Interface 35 * --------- --------- 43 * The AI subdevice has 16 single-ended channels or 8 differential 44 * channels. 46 * The PCI230 and PCI260 cards have 12-bit resolution. The PCI230+ and 47 * PCI260+ cards have 16-bit resolution. 51 * or PCI260 then it actually uses a "pseudo-differential" mode where the 62 * 0 => [-10, +10] V 63 * 1 => [-5, +5] V [all …]
|
H A D | usbduxsigma.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Copyright (C) 2011-2015 Bernd Porr, mail@berndporr.me.uk 10 * Devices: [ITL] USB-DUX-SIGMA (usbduxsigma) 18 * wrote the driver for AT-MIO-16d. I used some parts of this 33 * 0.7: rewrite code that urb->interval is always 1 45 /* timeout for the USB-transfer in ms*/ 64 /* Number of channels (16 AD and offset)*/ 71 * Size of the async input-buffer IN BYTES, the DIO state is transmitted 79 /* Number of DA channels */ 86 * Size of the output-buffer in bytes [all …]
|
/openbmc/qemu/hw/audio/ |
H A D | wm8750.c | 24 int adc; member 53 uint8_t diff[2], pol, ds, monomix[2], alc, mute; member 60 /* pow(10.0, -i / 20.0) * 255, i = 0..42 */ 67 #define WM8750_OUTVOL_TRANSFORM(x) wm8750_vol_db_table[(0x7f - x) / 3] 72 if (s->idx_in + s->req_in <= sizeof(s->data_in)) in wm8750_in_load() 74 s->idx_in = MAX(0, (int) sizeof(s->data_in) - s->req_in); in wm8750_in_load() 75 AUD_read(*s->in[0], s->data_in + s->idx_in, in wm8750_in_load() 76 sizeof(s->data_in) - s->idx_in); in wm8750_in_load() 82 while (sent < s->idx_out) in wm8750_out_flush() 83 sent += AUD_write(*s->out[0], s->data_out + sent, s->idx_out - sent) in wm8750_out_flush() [all …]
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | sun4i-lradc-keys.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Allwinner sun4i low res adc attached tablet keys driver 13 * There are 2 channels, currently this driver only supports channel 0 since 63 /* struct lradc_variant - Describe sun4i-a10-lradc-keys hardware variant 112 u32 i, ints, val, voltage, diff, keycode = 0, closest = 0xffffffff; in sun4i_lradc_irq() local 114 ints = readl(lradc->base + LRADC_INTS); in sun4i_lradc_irq() 122 input_report_key(lradc->input, lradc->chan0_keycode, 0); in sun4i_lradc_irq() 123 lradc->chan0_keycode = 0; in sun4i_lradc_irq() 126 if ((ints & CHAN0_KEYDOWN_IRQ) && lradc->chan0_keycode == 0) { in sun4i_lradc_irq() 127 val = readl(lradc->base + LRADC_DATA0) & 0x3f; in sun4i_lradc_irq() [all …]
|
/openbmc/linux/sound/pci/ |
H A D | es1938.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for ESS Solo-1 (ES1938, ES1946, ES1969) soundcard 7 * Abramo Bagnara <abramo@alsa-project.org>, 18 - Capture data is written unaligned starting from dma_base + 1 so I need to 20 - After several cycle of the following: 21 while : ; do arecord -d1 -f cd -t raw | aplay -f cd ; done 25 - Sometimes the interrupt handler is invoked wrongly during playback. 31 hdparm -t -T /dev/hda 42 #include <linux/dma-mapping.h> 53 MODULE_DESCRIPTION("ESS Solo-1"); [all …]
|