| /linux/Documentation/devicetree/bindings/iio/adc/ |
| H A 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 <alexandre.belloni@bootlin.com> 15 - atmel,at91sam9260-adc 16 - atmel,at91sam9rl-adc 17 - atmel,at91sam9g45-adc 18 - atmel,at91sam9x5-adc [all …]
|
| H A 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 <eugen.hristev@microchip.com> 15 - atmel,sama5d2-adc 16 - microchip,sam9x60-adc 17 - microchip,sama7g5-adc 28 clock-names: [all …]
|
| /linux/Documentation/sound/soc/ |
| H A D | pops-clicks.rst | 7 audio module is either loaded or unloaded (at module load time the sound card is 13 click every time a component power state is changed. 22 components in a specific order. This order is different for startup and 23 shutdown and follows some basic rules:- 26 Startup Order :- DAC --> Mixers --> Output PGA --> Digital Unmute 28 Shutdown Order :- Digital Mute --> Output PGA --> Mixers --> DAC 38 ADC until all the pops have occurred. This follows similar power rules to 40 startup or shutdown. 43 Startup Order - Input PGA --> Mixers --> ADC 45 Shutdown Order - ADC --> Mixers --> Input PGA
|
| /linux/drivers/iio/adc/ |
| H A D | at91_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for the ADC present in the Atmel AT91 evaluation boards. 38 #define AT91_ADC_TSAMOD (3 << 0) /* ADC mode */ 39 #define AT91_ADC_TSAMOD_ADC_ONLY_MODE (0 << 0) /* ADC Mode */ 53 #define AT91_ADC_STARTUP_9260 (0x1f << 16) /* Startup Up Time */ 57 #define AT91_ADC_SHTIM (0xf << 24) /* Sample & Hold Time */ 59 #define AT91_ADC_PENDBC (0x0f << 28) /* Pen Debounce time */ 63 #define AT91_ADC_TSR_SHTIM (0xf << 24) /* Sample & Hold Time */ 103 #define AT91_ADC_ACR_PENDETSENS (0x3 << 0) /* pull-up resistor */ 113 #define AT91_ADC_TSMR_SCTIM (0x0f << 16) /* Switch closure time */ [all …]
|
| /linux/arch/arm/boot/dts/microchip/ |
| H A D | at91sam9g20.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * at91sam9g20.dtsi - Device Tree Include file for AT91SAM9G20 family SoC 5 * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 23 compatible = "mmio-sram"; 25 #address-cells = <1>; 26 #size-cells = <1>; 33 compatible = "atmel,at91sam9g20-i2c"; 37 compatible = "atmel,at91sam9rl-ssc"; 40 adc0: adc@fffe0000 { 41 atmel,adc-startup-time = <40>; [all …]
|
| H A D | at91sam9x5.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * at91sam9x5.dtsi - Device Tree Include file for AT91SAM9x5 family SoC 11 #include <dt-bindings/dma/at91.h> 12 #include <dt-bindings/pinctrl/at91.h> 13 #include <dt-bindings/interrupt-controller/irq.h> 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/clock/at91.h> 16 #include <dt-bindings/mfd/at91-usart.h> 19 #address-cells = <1>; 20 #size-cells = <1>; [all …]
|
| H A D | at91sam9rl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * at91sam9rl.dtsi - Device Tree Include file for AT91SAM9RL family SoC 6 * Alexandre Belloni <alexandre.belloni@free-electrons.com> 9 #include <dt-bindings/pinctrl/at91.h> 10 #include <dt-bindings/clock/at91.h> 11 #include <dt-bindings/interrupt-controller/irq.h> 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/pwm/pwm.h> 14 #include <dt-bindings/mfd/at91-usart.h> 17 #address-cells = <1>; [all …]
|
| H A D | at91sam9260.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * at91sam9260.dtsi - Device Tree Include file for AT91SAM9260 family SoC 7 * 2011 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 10 #include <dt-bindings/pinctrl/at91.h> 11 #include <dt-bindings/interrupt-controller/irq.h> 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/clock/at91.h> 14 #include <dt-bindings/mfd/at91-usart.h> 17 #address-cells = <1>; 18 #size-cells = <1>; [all …]
|
| /linux/arch/arm/boot/dts/rockchip/ |
| H A D | rv1109-relfor-saib.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 9 #include <dt-bindings/leds/common.h> 10 #include <dt-bindings/input/input.h> 16 gpio-keys { 17 compatible = "gpio-keys"; 23 linux,input-type = <1>; 27 ir_receiver: ir-receiver { 28 compatible = "gpio-ir-receiver"; 30 pinctrl-names = "default"; [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 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() 171 dev_err(&chip->cl->dev, in lp5523_init_program_engine() 174 ret = -1; in lp5523_init_program_engine() [all …]
|
| /linux/drivers/power/supply/ |
| H A D | ab8500-bm.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 267 * struct ab8500_fg_parameters - Fuel gauge algorithm parameters, in seconds 269 * @recovery_sleep_timer: Time between measurements while recovering 270 * @recovery_total_time: Total recovery time 271 * @init_timer: Measurement interval during startup 272 * @init_discard_time: Time we discard voltage measurement at startup 273 * @init_total_time: Total init time during startup 274 * @high_curr_time: Time current has to be high to go to recovery 275 * @accu_charging: FG accumulation time while charging 276 * @accu_high_curr_ua: FG accumulation time in high current mode [all …]
|
| /linux/drivers/thermal/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 47 Say Y to add a debugfs-based thermal core testing facility. 53 int "Emergency poweroff delay in milli-seconds" 63 time for orderly_poweroff() to finish on regular execution. 100 startup. If in doubt, select 'step_wise'. 107 devices one step at a time. 139 devices one step at the time, taking into account the trip 145 bool "Fair-share thermal governor" 147 Enable this to manage platform thermals using fair-share governor. 250 memory-mapped reads to get the temperature. Any HW/System that [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | ak4619.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ak4619.c -- Asahi Kasei ALSA SoC Audio driver 39 #define ADC_DF 0x0a /* ADC Digital Filter Setting */ 40 #define ADC_AI 0x0b /* ADC Analog Input Setting */ 41 #define ADC_MHPF 0x0D /* ADC Mute & HPF Control */ 47 #define DAC_DEMP 0x13 /* DAC De-Emphasis Setting */ 91 /* ADC Digital Volume */ 95 /* ADC Digital Filter Setting */ 105 /* ADC Mute & HPF Control */ 126 /* DAC De-Emphasis Setting */ [all …]
|
| H A D | twl4030.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/mfd/twl4030-audio.h> 64 u8 ctl_cache[TWL4030_REG_PRECKR_CTL - TWL4030_REG_EAR_CTL + 1]; 76 twl4030->ctl_cache[i - TWL4030_REG_EAR_CTL] = byte; in tw4030_init_ctl_cache() 86 return -EIO; in twl4030_read() 95 value = twl4030->ctl_cache[reg - TWL4030_REG_EAR_CTL]; in twl4030_read() 113 if (twl4030->earpiece_enabled) in twl4030_can_write_to_chip() 117 if (twl4030->predrivel_enabled) in twl4030_can_write_to_chip() 121 if (twl4030->predriver_enabled) in twl4030_can_write_to_chip() 125 if (twl4030->carkitl_enabled) in twl4030_can_write_to_chip() [all …]
|
| H A D | es8316.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * es8316.c -- es8316 ALSA SoC audio driver 6 * Authors: David Yang <yangxiaohua@everest-semi.com>, 21 #include <sound/soc-dapm.h> 52 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9600, 50, 1); 53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9600, 50, 1); 54 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_max_gain_tlv, -650, 150, 0); 55 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_min_gain_tlv, -1200, 150, 0); 58 0, 10, TLV_DB_SCALE_ITEM(-1650, 150, 0), 59 11, 11, TLV_DB_SCALE_ITEM(-150, 0, 0), [all …]
|
| H A D | es8311.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * es8311.c -- es8311 ALSA SoC audio driver 38 static const DECLARE_TLV_DB_SCALE(es8311_adc_vol_tlv, -9550, 50, 0); 68 0, 1, TLV_DB_SCALE_ITEM(-3010, 600, 0), 69 2, 3, TLV_DB_SCALE_ITEM(-2060, 250, 0), 70 4, 5, TLV_DB_SCALE_ITEM(-1610, 160, 0), 71 6, 7, TLV_DB_SCALE_ITEM(-1320, 120, 0), 72 8, 9, TLV_DB_SCALE_ITEM(-1100, 90, 0), 73 10, 11, TLV_DB_SCALE_ITEM(-930, 80, 0), 74 12, 15, TLV_DB_SCALE_ITEM(-780, 60, 0), [all …]
|
| H A D | ssm2602.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 59 * core, and then powers on output, DAC, and whole chip at the same time 85 48, 127, TLV_DB_SCALE_ITEM(-7400, 100, 0) 88 static const DECLARE_TLV_DB_SCALE(ssm260x_inpga_tlv, -3450, 150, 0); 89 static const DECLARE_TLV_DB_SCALE(ssm260x_sidetone_tlv, -1500, 300, 0); 96 SOC_SINGLE("ADC High Pass Filter Switch", SSM2602_APDIGI, 0, 1, 1), 99 SOC_ENUM("Playback De-emphasis", ssm2602_enum[1]), 136 * is activated too early, or even before the ADC is powered up, audible in ssm2602_mic_switch_event() 148 SND_SOC_DAPM_ADC("ADC", "HiFi Capture", SSM2602_PWR, 2, 1), 178 ARRAY_SIZE(ssm260x_output_mixer_controls) - 1), /* Last element is the mic */ [all …]
|
| H A D | max98090.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * max98090.c -- MAX98090 ALSA SoC Audio driver 5 * Copyright 2011-2012 Maxim Integrated Products 33 { 0x08, 0x00 }, /* 08 Mic/Direct to ADC Quick */ 34 { 0x09, 0x00 }, /* 09 Line to ADC Quick */ 47 { 0x15, 0x00 }, /* 15 Left ADC Mixer */ 48 { 0x16, 0x00 }, /* 16 Right ADC Mixer */ 49 { 0x17, 0x03 }, /* 17 Left ADC Level */ 50 { 0x18, 0x03 }, /* 18 Right ADC Level */ 51 { 0x19, 0x00 }, /* 19 ADC Biquad Level */ [all …]
|
| H A D | twl6040.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 #include <sound/soc-dapm.h> 61 u8 dl12_cache[TWL6040_REG_HFRCTL - TWL6040_REG_HSLCTL + 1]; 69 /* set of rates for each pll: low-power and high-performance */ 95 #define to_twl6040(component) dev_get_drvdata((component)->dev->parent) 104 return -EIO; in twl6040_read() 112 value = priv->dl12_cache[reg - TWL6040_REG_HSLCTL]; in twl6040_read() 132 return priv->dl1_unmuted; in twl6040_can_write_to_chip() 135 return priv->dl2_unmuted; in twl6040_can_write_to_chip() 152 priv->dl12_cache[reg - TWL6040_REG_HSLCTL] = value; in twl6040_update_dl12_cache() [all …]
|
| /linux/drivers/mfd/ |
| H A D | ucb1x00-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/drivers/mfd/ucb1x00-core.c 8 * the ADC, interrupts, and accessing registers. It is designed 11 * to be used on other non-MCP-enabled hardware platforms. 35 * ucb1x00_io_set_dir - set IO direction 54 spin_lock_irqsave(&ucb->io_lock, flags); in ucb1x00_io_set_dir() 55 ucb->io_dir |= out; in ucb1x00_io_set_dir() 56 ucb->io_dir &= ~in; in ucb1x00_io_set_dir() 58 ucb1x00_reg_write(ucb, UCB_IO_DIR, ucb->io_dir); in ucb1x00_io_set_dir() 59 spin_unlock_irqrestore(&ucb->io_lock, flags); in ucb1x00_io_set_dir() [all …]
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | dib7000m.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Linux-DVB Driver for DiBcom's DiB7000M and 4 * first generation DiB7000P-demodulator-family. 6 * Copyright (C) 2005-7 DiBcom (http://www.dibcom.fr/) 80 if (mutex_lock_interruptible(&state->i2c_buffer_lock) < 0) { in dib7000m_read_word() 85 state->i2c_write_buffer[0] = (reg >> 8) | 0x80; in dib7000m_read_word() 86 state->i2c_write_buffer[1] = reg & 0xff; in dib7000m_read_word() 88 memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); in dib7000m_read_word() 89 state->msg[0].addr = state->i2c_addr >> 1; in dib7000m_read_word() 90 state->msg[0].flags = 0; in dib7000m_read_word() [all …]
|
| /linux/drivers/iio/temperature/ |
| H A D | ltc2983.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Analog Devices LTC2983 Multi-Sensor Digital Temperature Measurement System 60 (((chan - 1) * 4) + LTC2983_CHAN_ASSIGN_START_REG) 62 (((chan - 1) * 4) + LTC2983_TEMP_RES_START_REG) 312 * instance a resolution of 2^-10 means we have 10 fractional bits. 326 s64 __res = -(s32)val; in __convert_to_raw_sign() 330 return (u32)-__res; in __convert_to_raw_sign() 337 const struct device *dev = &st->spi->dev; in __ltc2983_fault_handler() 341 return -EIO; in __ltc2983_fault_handler() 354 u32 reg = LTC2983_CHAN_START_ADDR(sensor->chan); in __ltc2983_chan_assign_common() [all …]
|
| /linux/tools/perf/trace/beauty/include/uapi/sound/ |
| H A D | asound.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 3 * Advanced Linux Sound Architecture - ALSA - Driver 4 * Copyright (c) 1994-2003 by Jaroslav Kysela <perex@perex.cz>, 5 * Abramo Bagnara <abramo@alsa-project.org> 21 #include <time.h> 54 * CEA-861 Audio InfoFrame. Used in HDMI and DisplayPort * 63 unsigned char db5_dminh_lsv; /* downmix inhibit & level-shit values */ 68 * Section for driver hardware dependent interface - /dev/snd/hw? * 91 SNDRV_HWDEP_IFACE_HDA, /* HD-audio */ 118 unsigned int version; /* R: driver-specific version */ [all …]
|
| /linux/tools/include/uapi/sound/ |
| H A D | asound.h | |
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3588-firefly-itx-3588j.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/leds/common.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 #include <dt-bindings/pwm/pwm.h> 10 #include <dt-bindings/soc/rockchip,vop2.h> 11 #include "dt-bindings/usb/pd.h" 13 #include "rk3588-firefly-core-3588j.dtsi" [all …]
|