Home
last modified time | relevance | path

Searched +full:adc +full:- +full:delay +full:- +full:ms (Results 1 – 25 of 209) sorted by relevance

123456789

/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Dst,stmpe.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 touchscreen, ADC, PWM or rotator. It can contain one or several different
15 - Linus Walleij <linus.walleij@linaro.org>
18 - $ref: /schemas/spi/spi-peripheral-props.yaml#
23 - st,stmpe601
24 - st,stmpe801
25 - st,stmpe811
26 - st,stmpe1600
[all …]
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Dcs35l33.txt5 - compatible : "cirrus,cs35l33"
7 - reg : the I2C address of the device for I2C
9 - VA-supply, VP-supply : power supplies for the device,
15 - reset-gpios : gpio used to reset the amplifier
17 - interrupts : IRQ line info CS35L33.
18 (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
21 - cirrus,boost-ctl : Booster voltage use to supply the amp. If the value is
26 - cirrus,ramp-rate : On power up, it affects the time from when the power
27 up sequence begins to the time the audio reaches a full-scale output.
28 On power down, it affects the time from when the power-down sequence
[all …]
H A Dnuvoton,nau8825.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - John Hsu <KCHSU0@nuvoton.com>
13 - $ref: dai-common.yaml#
18 - nuvoton,nau8825
26 nuvoton,jkdet-enable:
31 nuvoton,jkdet-pull-enable:
34 If set - pin pull enabled, otherwise pin in high impedance state.
37 nuvoton,jkdet-pull-up:
[all …]
/openbmc/linux/drivers/iio/adc/
H A Dep93xx_adc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Driver for ADC module on the Cirrus Logic EP93xx series of SoCs
9 * responsible for ensuring that delay between adjacent conversion triggers is
15 #include <linux/delay.h>
28 * lower ADC conversion rate down to CONFIG_HZ, so we fallback to busy wait
31 * HR Timers-based version loads CPU only up to 10% during back to back ADC
32 * conversion, while busy wait-based version consumes whole CPU power.
89 mutex_lock(&priv->lock); in ep93xx_read_raw()
90 if (priv->lastch != channel->channel) { in ep93xx_read_raw()
91 priv->lastch = channel->channel; in ep93xx_read_raw()
[all …]
H A Dltc2485.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ltc2485.c - Driver for Linear Technology LTC2485 ADC
10 #include <linux/delay.h>
17 /* Power-on configuration: rejects both 50/60Hz, operates at 1x speed */
27 const unsigned int conv_time = 147; /* conversion time ms */ in ltc2485_wait_conv()
30 /* delay if conversion time not passed since last read or write */ in ltc2485_wait_conv()
31 time_elapsed = ktime_ms_delta(ktime_get(), data->time_prev); in ltc2485_wait_conv()
34 msleep(conv_time - time_elapsed); in ltc2485_wait_conv()
39 struct i2c_client *client = data->client; in ltc2485_read()
47 dev_err(&client->dev, "i2c_master_recv failed\n"); in ltc2485_read()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/iio/adc/
H A Dqcom,spmi-rradc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/qcom,spmi-rradc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm's SPMI PMIC Round Robin ADC
10 - Caleb Connolly <caleb.connolly@linaro.org>
13 The Qualcomm SPMI Round Robin ADC (RRADC) provides interface to clients to
21 - qcom,pmi8998-rradc
22 - qcom,pm660-rradc
27 qcom,batt-id-delay-ms:
[all …]
/openbmc/linux/arch/arm/boot/dts/st/
H A Dstm32f429-disco.dts2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com>
4 * This file is dual-licensed: you can use it either under the terms
22 * MA 02110-1301 USA
48 /dts-v1/;
50 #include "stm32f429-pinctrl.dtsi"
51 #include <dt-bindings/input/input.h>
52 #include <dt-bindings/interrupt-controller/irq.h>
53 #include <dt-bindings/gpio/gpio.h>
56 model = "STMicroelectronics STM32F429i-DISCO board";
57 compatible = "st,stm32f429i-disco", "st,stm32f429";
[all …]
/openbmc/linux/drivers/input/touchscreen/
H A Dwm9705.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm9705.c -- Codec driver for Wolfson WM9705 AC97 Codec.
16 #include <linux/delay.h>
35 * This is used to increase the range of values returned by the adc
52 * Set adc sample delay.
56 * touchpanel plate and the ADC sampling the signal.
58 * This delay can be set by setting delay = n, where n is the array
59 * position of the delay in the array delay_table below.
60 * Long delays > 1ms are supported for completeness, but are not
63 static int delay = 4; variable
[all …]
H A Dwm9712.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm9712.c -- Codec driver for Wolfson WM9712 AC97 Codecs.
16 #include <linux/delay.h>
48 * This is used to increase the range of values returned by the adc
65 * Set adc sample delay.
69 * touchpanel plate and the ADC sampling the signal.
71 * This delay can be set by setting delay = n, where n is the array
72 * position of the delay in the array delay_table below.
73 * Long delays > 1ms are supported for completeness, but are not
76 static int delay = 3; variable
[all …]
H A Dwm9713.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm9713.c -- Codec touch driver for Wolfson WM9713 AC97 Codec.
16 #include <linux/delay.h>
48 * This is used to increase the range of values returned by the adc
65 * Set adc sample delay.
69 * touchpanel plate and the ADC sampling the signal.
71 * This delay can be set by setting delay = n, where n is the array
72 * position of the delay in the array delay_table below.
73 * Long delays > 1ms are supported for completeness, but are not
76 static int delay = 4; variable
[all …]
H A Dstmpe-ts.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 #include <linux/delay.h>
46 #define STMPE_TS_NAME "stmpe-ts"
50 * struct stmpe_touch - stmpe811 touch screen controller state
57 * (0 -> 1 sample, 1 -> 2 samples, 2 -> 4 samples, 3 -> 8 samples)
58 * @touch_det_delay: Touch detect interrupt delay
59 * (0 -> 10 us, 1 -> 50 us, 2 -> 100 us, 3 -> 500 us,
60 * 4-> 1 ms, 5 -> 5 ms, 6 -> 10 ms, 7 -> 50 ms)
63 * (0 -> 10 us, 1 -> 100 us, 2 -> 500 us, 3 -> 1 ms,
64 * 4 -> 5 ms, 5 -> 10 ms, 6 for 50 ms, 7 -> 100 ms)
[all …]
/openbmc/linux/sound/soc/codecs/
H A Dmax98373.c1 // SPDX-License-Identifier: GPL-2.0
5 #include <linux/delay.h>
24 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98373_dac_event()
29 regmap_update_bits(max98373->regmap, in max98373_dac_event()
35 regmap_update_bits(max98373->regmap, in max98373_dac_event()
39 max98373->tdm_mode = false; in max98373_dac_event()
86 static DECLARE_TLV_DB_SCALE(max98373_digital_tlv, -6350, 50, 1);
102 0, 1, TLV_DB_SCALE_ITEM(-3000, 500, 0),
103 2, 4, TLV_DB_SCALE_ITEM(-2200, 200, 0),
104 5, 6, TLV_DB_SCALE_ITEM(-1500, 300, 0),
[all …]
H A Dtlv320aic3x.c1 // SPDX-License-Identifier: GPL-2.0-only
16 * ---------------------------------------
17 * MONO_LOUT -> N/A | MONO_LOUT -> N/A
18 * | IN1L -> LINE1L
19 * | IN1R -> LINE1R
20 * | IN2L -> LINE2L
21 * | IN2R -> LINE2R
22 * | MIC3L/R -> N/A
25 * ---------------------------------------
34 #include <linux/delay.h>
[all …]
H A Dtwl4030.c1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/delay.h>
28 #include <linux/mfd/twl4030-audio.h>
38 unsigned int digimic_delay; /* in ms */
67 u8 ctl_cache[TWL4030_REG_PRECKR_CTL - TWL4030_REG_EAR_CTL + 1];
79 twl4030->ctl_cache[i - TWL4030_REG_EAR_CTL] = byte; in tw4030_init_ctl_cache()
89 return -EIO; in twl4030_read()
98 value = twl4030->ctl_cache[reg - TWL4030_REG_EAR_CTL]; in twl4030_read()
116 if (twl4030->earpiece_enabled) in twl4030_can_write_to_chip()
120 if (twl4030->predrivel_enabled) in twl4030_can_write_to_chip()
[all …]
H A Dcs35l41.c1 // SPDX-License-Identifier: GPL-2.0
3 // cs35l41.c -- CS35l41 ALSA SoC audio driver
5 // Copyright 2017-2021 Cirrus Logic, Inc.
10 #include <linux/delay.h>
23 #include <sound/soc-dapm.h>
165 return -EINVAL; in cs35l41_get_fs_mon_config_index()
170 1, 913, TLV_DB_MINMAX_ITEM(-10200, 1200));
177 "Off", ".5ms", "1ms", "2ms", "4ms", "8ms", "15ms", "30ms"
187 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in cs35l41_dsp_preload_ev()
193 if (cs35l41->dsp.cs_dsp.booted) in cs35l41_dsp_preload_ev()
[all …]
H A Dab8500-codec.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2012
8 * for ST-Ericsson.
14 * for ST-Ericsson.
23 #include <linux/delay.h>
29 #include <linux/mfd/abx500/ab8500-sysctrl.h>
30 #include <linux/mfd/abx500/ab8500-codec.h>
39 #include <sound/soc-dapm.h>
42 #include "ab8500-codec.h"
56 /* Nr of FIR/IIR-coeff banks in ANC-block */
[all …]
H A Dmax98388.c1 // SPDX-License-Identifier: GPL-2.0
5 #include <linux/delay.h>
76 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98388_dac_event()
81 regmap_write(max98388->regmap, in max98388_dac_event()
86 regmap_write(max98388->regmap, in max98388_dac_event()
89 max98388->tdm_mode = false; in max98388_dac_event()
122 SND_SOC_DAPM_ADC("ADC Voltage", NULL,
124 SND_SOC_DAPM_ADC("ADC Current", NULL,
132 static DECLARE_TLV_DB_SCALE(max98388_digital_tlv, -6350, 50, 1);
133 static DECLARE_TLV_DB_SCALE(max98388_amp_gain_tlv, -300, 300, 0);
[all …]
H A Dmax98520.c1 // SPDX-License-Identifier: GPL-2.0
5 #include <linux/delay.h>
74 struct snd_soc_component *component = codec_dai->component; in max98520_dai_set_fmt()
80 dev_dbg(component->dev, "%s: fmt 0x%08X\n", __func__, fmt); in max98520_dai_set_fmt()
89 dev_err(component->dev, "DAI invert mode unsupported\n"); in max98520_dai_set_fmt()
90 return -EINVAL; in max98520_dai_set_fmt()
93 regmap_update_bits(max98520->regmap, in max98520_dai_set_fmt()
113 return -EINVAL; in max98520_dai_set_fmt()
116 regmap_update_bits(max98520->regmap, in max98520_dai_set_fmt()
146 int blr_clk_ratio = params_channels(params) * max98520->ch_size; in max98520_set_clock()
[all …]
/openbmc/linux/drivers/media/i2c/
H A Dwm8775.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm8775 - driver version 0.0.1
10 * - Cleanup
11 * - V4L2 API update
12 * - sound fixes
22 #include <media/v4l2-device.h>
23 #include <media/v4l2-ctrls.h>
32 /* ----------------------------------------------------------------------- */
40 #define ALC_HOLD 0x85 /* R17: use zero cross detection, ALC hold time 42.6 ms */
50 u8 input; /* Last selected input (0-0xf) */
[all …]
/openbmc/linux/arch/arm/boot/dts/renesas/
H A Dr8a7745-iwg22d-sodimm.dts1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the iWave-RZG1E SODIMM carrier board
9 * SSI-SGTL5000
31 /dts-v1/;
32 #include "r8a7745-iwg22m.dtsi"
33 #include <dt-bindings/pwm/pwm.h>
36 model = "iWave Systems RainboW-G22D-SODIMM board based on RZ/G1E";
47 stdout-path = "serial3:115200n8";
51 compatible = "fixed-clock";
52 #clock-cells = <0>;
[all …]
/openbmc/linux/drivers/iio/light/
H A Dtsl2591.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Device driver for the TAOS TSL2591. This is a very-high sensitivity
8 * light-to-digital converter that transforms light intensity into a digital
14 #include <linux/delay.h>
30 /* ADC integration time, field value to time in ms */
32 /* ADC integration time, field value to time in seconds */
34 /* ADC integration time, time in seconds to field value */
35 #define TSL2591_SEC_TO_FVAL(x) ((x) - 1)
102 #define TSL2591_PRST_ALS_INT_CYCLE_MAX (BIT(4) - 1)
120 /* Power off suspend delay time MS */
[all …]
/openbmc/linux/arch/arm/boot/dts/nxp/imx/
H A Dmba6ulx.dtsi1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
3 * Copyright 2018-2022 TQ-Systems GmbH
4 * Author: Markus Niebel <Markus.Niebel@tq-group.com>
8 model = "TQ-Systems MBA6ULx Baseboard";
18 stdout-path = &uart1;
22 compatible = "pwm-backlight";
23 power-supply = <&reg_mba6ul_3v3>;
24 enable-gpios = <&expander_out0 4 GPIO_ACTIVE_HIGH>;
29 compatible = "gpio-beeper";
33 gpio_buttons: gpio-keys {
[all …]
H A 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 …]
/openbmc/linux/include/linux/mfd/
H A Dti_am335x_tscadc.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * TI Touch Screen / ADC MFD driver
5 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
77 /* Delay register */
94 /* Charge delay */
134 * max num cycles = open delay + (sample delay + conv time) * averaging
141 * max processing time: 266431 * 308ns = 83ms(approx)
174 /* adc device */
175 struct adc_device *adc; member
180 struct ti_tscadc_dev **tscadc_dev = p->dev.platform_data; in ti_tscadc_dev_get()
[all …]
/openbmc/linux/arch/arm64/boot/dts/allwinner/
H A Dsun50i-a64-sopine-baseboard.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 // Based on sun50i-a64-pine64.dts, which is:
6 /dts-v1/;
8 #include "sun50i-a64-sopine.dtsi"
12 compatible = "pine64,sopine-baseboard", "pine64,sopine",
13 "allwinner,sun50i-a64";
25 stdout-path = "serial0:115200n8";
28 hdmi-connector {
29 compatible = "hdmi-connector";
34 remote-endpoint = <&hdmi_out_con>;
[all …]

123456789