Home
last modified time | relevance | path

Searched +full:oversampling +full:- +full:ratio (Results 1 – 25 of 43) sorted by relevance

12

/linux-6.15/Documentation/devicetree/bindings/iio/adc/
Dti,tsc2046.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Oleksij Rempel <o.rempel@pengutronix.de>
18 - ti,tsc2046e-adc
26 vref-supply:
29 "#io-channel-cells":
32 '#address-cells':
35 '#size-cells':
39 - compatible
[all …]
Dadi,ad7606.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Michael Hennerich <michael.hennerich@analog.com>
14 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7605-4.pdf
15 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606_7606-6_7606-4.pdf
16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7606B.pdf
17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606c-16.pdf
18 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606c-18.pdf
19 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7607.pdf
[all …]
Dadc.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jonathan Cameron <jic23@kernel.org>
17 pattern: "^channel(@[0-9a-f]+)?$"
31 diff-channels:
32 $ref: /schemas/types.yaml#/definitions/uint32-array
43 the 'reg' property for both inputs (i.e. diff-channels = <reg reg>).
45 single-channel:
48 When devices combine single-ended and differential channels, allow the
[all …]
Dadi,axi-adc.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/adi,axi-adc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Michael Hennerich <michael.hennerich@analog.com>
18 to the data-lines of the ADC and handle the streaming of data into
26 - AXI AD7606x: specialized version of the IP core for all the chips from
36 - adi,axi-adc-10.0.a
37 - adi,axi-ad7606x
38 - adi,axi-ad485x
[all …]
/linux-6.15/arch/arm/boot/dts/nxp/imx/
Dimx6qdl-skov-cpu-revc.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
7 compatible = "resistive-adc-touch";
8 io-channels = <&adc_ts 1>, <&adc_ts 3>, <&adc_ts 4>, <&adc_ts 5>;
9 io-channel-names = "y", "z1", "z2", "x";
10 touchscreen-min-pressure = <65000>;
11 touchscreen-inverted-y;
12 touchscreen-swapped-x-y;
13 touchscreen-x-plate-ohms = <300>;
14 touchscreen-y-plate-ohms = <800>;
19 pinctrl-names = "default";
[all …]
Dimx6dl-plym2m.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 /dts-v1/;
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/leds/common.h>
17 stdout-path = &uart4;
21 compatible = "pwm-backlight";
23 brightness-levels = <0 1000>;
24 num-interpolated-steps = <20>;
25 default-brightness-level = <19>;
26 power-supply = <&reg_12v0>;
[all …]
Dimx6dl-victgo.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 /dts-v1/;
9 #include "imx6qdl-vicut1.dtsi"
15 gpio-keys {
16 compatible = "gpio-keys";
17 pinctrl-names = "default";
18 pinctrl-0 = <&pinctrl_gpiokeys>;
21 key-power {
25 wakeup-source;
28 key-enter {
[all …]
Dimx6dl-prtvt7.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 /dts-v1/;
8 #include "imx6qdl-prti6q.dtsi"
9 #include <dt-bindings/display/sdtv-standards.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/sound/fsl-imx-audmux.h>
23 backlight_lcd: backlight-lcd {
24 compatible = "pwm-backlight";
26 brightness-levels = <0 20 81 248 1000>;
[all …]
/linux-6.15/arch/arm64/boot/dts/freescale/
Dimx8mp-skov-revb-lt6.dts1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 /dts-v1/;
5 #include "imx8mp-skov-reva.dtsi"
8 model = "SKOV IMX8MP CPU revB - LT6";
9 compatible = "skov,imx8mp-skov-revb-lt6", "fsl,imx8mp";
11 lvds-decoder {
12 compatible = "ti,sn65lvds822", "lvds-decoder";
13 power-supply = <&reg_3v3>;
16 #address-cells = <1>;
17 #size-cells = <0>;
[all …]
/linux-6.15/Documentation/ABI/testing/
Dsysfs-bus-iio-adc-mcp35643 Contact: linux-iio@vger.kernel.org
6 circuit of the Delta-Sigma modulator. The different BOOST
12 Contact: linux-iio@vger.kernel.org
15 the current biasing circuit of the Delta-Sigma modulator.
19 Contact: linux-iio@vger.kernel.org
22 auto-zeroing algorithm (the input multiplexer and the ADC
26 input as VIN+/VIN-, one with VIN+/VIN- inverted. In this case the
30 ultra-low offset without any digital calibration. The resulting
39 Contact: linux-iio@vger.kernel.org
47 higher Oversampling Ratio values (over 256). To overcome this
[all …]
/linux-6.15/sound/soc/codecs/
Dwm8974.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8974.c -- WM8974 ALSA Soc Audio driver
5 * Copyright 2006-2009 Wolfson Microelectronics PLC.
55 static const char *wm8974_companding[] = {"Off", "NC", "u-law", "A-law" };
91 static const DECLARE_TLV_DB_SCALE(digital_tlv, -12750, 50, 1);
92 static const DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
93 static const DECLARE_TLV_DB_SCALE(inpga_tlv, -1200, 75, 0);
94 static const DECLARE_TLV_DB_SCALE(spk_tlv, -5700, 100, 0);
103 SOC_ENUM("Playback De-emphasis", wm8974_enum[2]),
168 /* DAC / ADC oversampling */
[all …]
Dnau8325.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // nau8325.c -- Nuvoton NAU8325 audio codec driver
30 #define CLK_PROC_BYPASS (-1)
192 static const DECLARE_TLV_DB_MINMAX_MUTE(dac_vol_tlv, -8000, 600);
195 SOC_ENUM("DAC Oversampling Rate", nau8325_dac_oversampl_enum),
219 snd_soc_dapm_to_component(w->dapm); in nau8325_dac_event()
224 regmap_update_bits(nau8325->regmap, NAU8325_R12_MUTE_CTRL, in nau8325_dac_event()
230 regmap_update_bits(nau8325->regmap, NAU8325_R12_MUTE_CTRL, in nau8325_dac_event()
235 return -EINVAL; in nau8325_dac_event()
245 snd_soc_dapm_to_component(w->dapm); in nau8325_powerup_event()
[all …]
Dwm8770.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8770.c -- WM8770 ALSA SoC Audio driver
105 regcache_mark_dirty(wm8770->regmap); \
114 static const DECLARE_TLV_DB_SCALE(adc_tlv, -1200, 100, 0);
115 static const DECLARE_TLV_DB_SCALE(dac_dig_tlv, -12750, 50, 1);
116 static const DECLARE_TLV_DB_SCALE(dac_alg_tlv, -12700, 100, 1);
187 SOC_SINGLE("ADC 128x Oversampling Switch", WM8770_MSTRCTRL, 3, 1, 0),
308 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in vout12supply_event()
325 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in vout34supply_event()
349 component = dai->component; in wm8770_set_fmt()
[all …]
/linux-6.15/Documentation/iio/
Dad4695.rst1 .. SPDX-License-Identifier: GPL-2.0-only
26 ----------------
30 4-wire mode
35 .. code-block::
37 +-------------+ +-------------+
38 | CS |<-+------| CS |
39 | CNV |<-+ | |
42 | SDI |<--------| SDO |
43 | SDO |-------->| SDI |
44 | SCLK |<--------| SCLK |
[all …]
/linux-6.15/drivers/iio/adc/
Dad7380.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * ad7380/1 : https://www.analog.com/media/en/technical-documentation/data-sheets/AD7380-7381.pdf
10 * ad7383/4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7383-7384.pdf
11 …* ad7386/7/8 : https://www.analog.com/media/en/technical-documentation/data-sheets/AD7386-7387-738…
12 * ad7380-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7380-4.pdf
13 * ad7381-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7381-4.pdf
14 …* ad7383/4-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7383-4-ad7384
15 …* ad7386/7/8-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7386-4-7387
16 * adaq4370-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4370-4.pdf
17 * adaq4380-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4380-4.pdf
[all …]
Dadi-axi-adc.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright 2012-2020 Analog Devices Inc.
23 #include <linux/fpga/adi-axi-common.h>
26 #include <linux/iio/buffer-dmaengine.h>
126 guard(mutex)(&st->lock); in axi_adc_enable()
127 ret = regmap_set_bits(st->regmap, ADI_AXI_REG_RSTN, in axi_adc_enable()
137 ret = regmap_read_poll_timeout(st->regmap, ADI_AXI_ADC_REG_DRP_STATUS, in axi_adc_enable()
143 return regmap_set_bits(st->regmap, ADI_AXI_REG_RSTN, in axi_adc_enable()
151 guard(mutex)(&st->lock); in axi_adc_disable()
152 regmap_write(st->regmap, ADI_AXI_REG_RSTN, 0); in axi_adc_disable()
[all …]
Dad4695.c1 // SPDX-License-Identifier: GPL-2.0-only
22 #include <linux/iio/buffer-dmaengine.h>
38 #include <dt-bindings/iio/adc/adi,ad4695.h>
211 .name = "ad4695-8",
240 .name = "ad4695-16",
257 .tx_buf = st->regmap_bus_data, in ad4695_regmap_bus_reg_write()
260 if (count > ARRAY_SIZE(st->regmap_bus_data)) in ad4695_regmap_bus_reg_write()
261 return -EINVAL; in ad4695_regmap_bus_reg_write()
263 memcpy(st->regmap_bus_data, data, count); in ad4695_regmap_bus_reg_write()
265 return spi_sync_transfer(st->spi, &xfer, 1); in ad4695_regmap_bus_reg_write()
[all …]
Dstm32-dfsdm-adc.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved
10 #include <linux/dma-mapping.h>
11 #include <linux/iio/adc/stm32-dfsdm-adc.h>
14 #include <linux/iio/hw-consumer.h>
16 #include <linux/iio/timer/stm32-lptim-trigger.h>
17 #include <linux/iio/timer/stm32-timer-trigger.h>
29 #include "stm32-dfsdm.h"
37 /* Oversampling attribute default */
40 /* Oversampling max values */
[all …]
Dat91-sama5d2_adc.c1 // SPDX-License-Identifier: GPL-2.0-only
15 #include <linux/dma-mapping.h>
32 #include <linux/nvmem-consumer.h>
37 #include <dt-bindings/iio/adc/at91-sama5d2_adc.h>
111 /* Interrupt Enable Register - TS X measurement ready */
113 /* Interrupt Enable Register - TS Y measurement ready */
115 /* Interrupt Enable Register - TS pressure measurement ready */
117 /* Interrupt Enable Register - Data ready */
119 /* Interrupt Enable Register - general overrun error */
121 /* Interrupt Enable Register - Pen detect */
[all …]
Dti-tsc2046.c1 // SPDX-License-Identifier: GPL-2.0
29 * - rate limiting:
31 * - hrtimer:
61 * conversion has 12-bit resolution, whereas with this bit high, the next
62 * conversion has 8-bit resolution. This driver is optimized for 12-bit mode.
68 * SER/DFR - The SER/DFR bit controls the reference mode, either single-ended
75 * auto-wake/suspend mode. In most case this bits should stay zero.
231 bit_count = DIV_ROUND_UP(time * NSEC_PER_USEC, priv->time_per_bit_ns); in tsc2046_adc_time_to_count()
234 …dev_dbg(&priv->spi->dev, "Effective speed %u, time per bit: %u, count bits: %u, count samples: %u\… in tsc2046_adc_time_to_count()
235 priv->effective_speed_hz, priv->time_per_bit_ns, in tsc2046_adc_time_to_count()
[all …]
/linux-6.15/include/linux/iio/
Dbackend.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
31 * IIO_BACKEND_EX_INFO - Helper for an IIO extended channel attribute
45 * struct iio_backend_data_fmt - Backend data format
80 * struct iio_backend_ops - operations structure for an iio_backend
99 * @oversampling_ratio_set: Set Oversampling ratio.
144 unsigned int ratio);
161 * struct iio_backend_info - info structure for an iio_backend
207 unsigned int ratio);
/linux-6.15/drivers/iio/
Dindustrialio-backend.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * -------------------------------------------------------
12 * ------------------ | ------------ ------------ ------- FPGA|
13 * | ADC |------------------------| | ADC CORE |---------| DMA CORE |------| RAM | |
14 * | (Frontend/IIO) | Serial Data (eg: LVDS) | |(backend) |---------| |------| | |
15 * | |------------------------| ------------ ------------ ------- |
16 * ------------------ -------------------------------------------------------
19 * - Backends should register themselves with devm_iio_backend_register()
20 * - Frontend devices should get backends with devm_iio_backend_get()
27 * the industrialio-backend.c is only left with the really generic stuff. Then,
[all …]
/linux-6.15/drivers/iio/humidity/
Dhts221_core.c1 // SPDX-License-Identifier: GPL-2.0-only
132 err = regmap_read(hw->regmap, HTS221_REG_WHOAMI_ADDR, &data); in hts221_check_whoami()
134 dev_err(hw->dev, "failed to read whoami register\n"); in hts221_check_whoami()
139 dev_err(hw->dev, "wrong whoami {%02x vs %02x}\n", in hts221_check_whoami()
141 return -ENODEV; in hts221_check_whoami()
156 return -EINVAL; in hts221_update_odr()
158 err = regmap_update_bits(hw->regmap, HTS221_REG_CNTRL1_ADDR, in hts221_update_odr()
165 hw->odr = odr; in hts221_update_odr()
178 if (avg->avg_avl[i] == val) in hts221_update_avg()
182 return -EINVAL; in hts221_update_avg()
[all …]
/linux-6.15/sound/pci/ice1712/
Dmaya44.c1 // SPDX-License-Identifier: GPL-2.0-or-later
50 /* clock ratio identifiers for snd_wm8776_set_rate() */
83 snd_vt1724_write_i2c(ice, wm->addr, in wm8776_write()
86 wm->regs[reg] = val; in wm8776_write()
96 val |= wm->regs[reg] & ~mask; in wm8776_write_bits()
97 if (val != wm->regs[reg]) { in wm8776_write_bits()
113 unsigned short offset; /* zero-value offset */
126 .update = 0x180, /* update and zero-cross enable */
134 .update = 0x100, /* zero-cross enable */
150 /* headphone output: mute, -73..+6db (1db step) */
[all …]
/linux-6.15/sound/soc/meson/
Daiu-encoder-i2s.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <sound/soc-dai.h>
58 return -EINVAL; in aiu_encoder_i2s_setup_desc()
68 return -EINVAL; in aiu_encoder_i2s_setup_desc()
94 dev_err(component->dev, "Unsupported i2s divider: %u\n", bs); in aiu_encoder_i2s_set_legacy_div()
95 return -EINVAL; in aiu_encoder_i2s_set_legacy_div()
118 * However, in 16 bits - 8ch mode, this factor needs to be in aiu_encoder_i2s_set_more_div()
124 dev_err(component->dev, in aiu_encoder_i2s_set_more_div()
126 return -EINVAL; in aiu_encoder_i2s_set_more_div()
139 bs - 1)); in aiu_encoder_i2s_set_more_div()
[all …]

12