/linux/Documentation/devicetree/bindings/mfd/ |
H A D | st,stmpe.yaml | 1 # 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 …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | cs35l33.txt | 5 - 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 D | nuvoton,nau8821.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Seven Lee <wtli@nuvoton.com> 13 - $ref: dai-common.yaml# 25 nuvoton,jkdet-enable: 29 nuvoton,jkdet-pull-enable: 30 description: Enable JKDET pin pull. If set - pin pull enabled, 34 nuvoton,jkdet-pull-up: 35 description: Pull-up JKDET pin. If set then JKDET pin is pull up, [all …]
|
H A D | nuvoton,nau8825.yaml | 1 # 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 …]
|
/linux/arch/arm/boot/dts/st/ |
H A D | stm32f429-disco.dts | 2 * 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 …]
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | qcom,spmi-rradc.yaml | 1 # 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 …]
|
/linux/drivers/input/touchscreen/ |
H A D | wm9705.c | 1 // 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 D | wm9712.c | 1 // 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 D | wm9713.c | 1 // 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 D | stmpe-ts.c | 1 // 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 …]
|
/linux/sound/soc/codecs/ |
H A D | max98373.c | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <linux/delay.h> 23 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98373_dac_event() 28 regmap_update_bits(max98373->regmap, in max98373_dac_event() 34 regmap_update_bits(max98373->regmap, in max98373_dac_event() 38 max98373->tdm_mode = false; in max98373_dac_event() 85 static DECLARE_TLV_DB_SCALE(max98373_digital_tlv, -6350, 50, 1); 101 0, 1, TLV_DB_SCALE_ITEM(-3000, 500, 0), 102 2, 4, TLV_DB_SCALE_ITEM(-2200, 200, 0), 103 5, 6, TLV_DB_SCALE_ITEM(-1500, 300, 0), [all …]
|
H A D | tlv320aic3x.c | 1 // 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 D | cs35l41.c | 1 // 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> 22 #include <sound/soc-dapm.h> 164 return -EINVAL; in cs35l41_get_fs_mon_config_index() 169 1, 913, TLV_DB_MINMAX_ITEM(-10200, 1200)); 176 "Off", ".5ms", "1ms", "2ms", "4ms", "8ms", "15ms", "30ms" 186 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in cs35l41_dsp_preload_ev() 192 if (cs35l41->dsp.cs_dsp.booted) in cs35l41_dsp_preload_ev() [all …]
|
H A D | ab8500-codec.c | 1 // 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 D | max98388.c | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <linux/delay.h> 75 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98388_dac_event() 80 regmap_write(max98388->regmap, in max98388_dac_event() 85 regmap_write(max98388->regmap, in max98388_dac_event() 88 max98388->tdm_mode = false; in max98388_dac_event() 121 SND_SOC_DAPM_ADC("ADC Voltage", NULL, 123 SND_SOC_DAPM_ADC("ADC Current", NULL, 131 static DECLARE_TLV_DB_SCALE(max98388_digital_tlv, -6350, 50, 1); 132 static DECLARE_TLV_DB_SCALE(max98388_amp_gain_tlv, -300, 300, 0); [all …]
|
H A D | max98520.c | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <linux/delay.h> 72 struct snd_soc_component *component = codec_dai->component; in max98520_dai_set_fmt() 78 dev_dbg(component->dev, "%s: fmt 0x%08X\n", __func__, fmt); in max98520_dai_set_fmt() 87 dev_err(component->dev, "DAI invert mode unsupported\n"); in max98520_dai_set_fmt() 88 return -EINVAL; in max98520_dai_set_fmt() 91 regmap_update_bits(max98520->regmap, in max98520_dai_set_fmt() 111 return -EINVAL; in max98520_dai_set_fmt() 114 regmap_update_bits(max98520->regmap, in max98520_dai_set_fmt() 144 int blr_clk_ratio = params_channels(params) * max98520->ch_size; in max98520_set_clock() [all …]
|
H A D | cs42l52.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cs42l52.c -- CS42L52 ALSA SoC audio driver 15 #include <linux/delay.h> 28 #include <sound/soc-dapm.h> 63 { CS42L52_ADC_HPF_FREQ, 0x00 }, /* r0B ADC HPF Corner Freq */ 64 { CS42L52_ADC_MISC_CTL, 0x00 }, /* r0C Misc. ADC Ctl */ 130 static DECLARE_TLV_DB_SCALE(hl_tlv, -10200, 50, 0); 132 static DECLARE_TLV_DB_SCALE(hpd_tlv, -9600, 50, 1); 134 static DECLARE_TLV_DB_SCALE(ipd_tlv, -9600, 100, 0); 138 static DECLARE_TLV_DB_SCALE(pga_tlv, -600, 50, 0); [all …]
|
/linux/drivers/media/i2c/ |
H A D | wm8775.c | 1 // 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 …]
|
/linux/drivers/leds/ |
H A D | leds-lp5523.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * lp5523.c - LP5523, LP55231 LED Driver 13 #include <linux/delay.h> 20 #include <linux/platform_data/leds-lp55xx.h> 23 #include "leds-lp55xx-common.h" 88 /* Chip startup time is 500 us, 1 - 2 ms gives some margin */ in lp5523_post_init_device() 92 val |= (chip->pdata->charge_pump_mode << LP5523_CP_MODE_SHIFT) & LP5523_CP_MODE_MASK; in lp5523_post_init_device() 150 chip->engine_idx = i; in lp5523_init_program_engine() 155 pattern[i - 1][j]); in lp5523_init_program_engine() 163 /* Let the programs run for couple of ms and check the engine status */ in lp5523_init_program_engine() [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | mba6ulx.dtsi | 1 // 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 = <®_mba6ul_3v3>; 24 enable-gpios = <&expander_out0 4 GPIO_ACTIVE_HIGH>; 29 compatible = "gpio-beeper"; 33 gpio_buttons: gpio-keys { [all …]
|
H A D | imx6dl-victgo.dts | 1 // 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 …]
|
/linux/include/linux/mfd/ |
H A D | ti_am335x_tscadc.h | 1 /* 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 …]
|
/linux/arch/arm64/boot/dts/allwinner/ |
H A D | sun50i-a64-sopine-baseboard.dts | 1 // 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 …]
|
/linux/drivers/iio/adc/ |
H A D | ltc2485.c | 1 // 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 …]
|
/linux/drivers/extcon/ |
H A D | extcon-max8997.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // extcon-max8997.c - MAX8997 extcon driver to support MAX8997 MUIC 8 #include <linux/devm-helpers.h> 18 #include <linux/mfd/max8997-private.h> 19 #include <linux/extcon-provider.h> 22 #define DEV_NAME "max8997-muic" 26 ADC_DEBOUNCE_TIME_0_5MS = 0, /* 0.5ms */ 27 ADC_DEBOUNCE_TIME_10MS, /* 10ms */ 28 ADC_DEBOUNCE_TIME_25MS, /* 25ms */ 29 ADC_DEBOUNCE_TIME_38_62MS, /* 38.62ms */ [all …]
|