/linux/sound/soc/codecs/ |
H A D | tas5086.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * - implement DAPM and input muxing 9 * - implement modulation limit 10 * - implement non-default PWM start 13 * because the registers are of unequal size, and multi-byte registers 18 * it doesn't matter because the entire map can be accessed as 8-bit 21 * routines have to be open-coded. 53 #define TAS5086_CLOCK_RATE(val) (val << 5) 54 #define TAS5086_CLOCK_RATE_MASK (0x7 << 5) 70 #define TAS5086_CHANNEL_VOL(X) (0x08 + (X)) /* Channel 1-6 volume */ [all …]
|
H A D | tscs454.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // tscs454.c -- TSCS454 ALSA SoC Audio driver 21 #include <sound/soc-dapm.h> 28 #define BIQUAD_COEFF_COUNT 5 50 pll->id = id; in pll_init() 51 mutex_init(&pll->lock); in pll_init() 66 aif->id = id; in aif_init() 85 cache[((norm_addrs[i] + 1) * COEFF_SIZE) - 1] = 0x40; in init_coeff_ram_cache() 90 init_coeff_ram_cache(ram->cache); in coeff_ram_init() 91 mutex_init(&ram->lock); in coeff_ram_init() [all …]
|
/linux/drivers/hwmon/ |
H A D | nct7904.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * nct7904.c - driver for Nuvoton NCT7904D. 17 * nct7904d 20 12 4 5 8 0xc5 92 #define FANCTL1_FMR_REG 0x00 /* Bank 3; 1 reg per channel */ 93 #define FANCTL1_OUT_REG 0x10 /* Bank 3; 1 reg per channel */ 110 /*The timeout range is 1-255 minutes*/ 149 mutex_lock(&data->bank_lock); in nct7904_bank_lock() 150 if (data->bank_sel == bank) in nct7904_bank_lock() 152 ret = i2c_smbus_write_byte_data(data->client, BANK_SEL_REG, bank); in nct7904_bank_lock() 154 data->bank_sel = bank; in nct7904_bank_lock() [all …]
|
H A D | max6620.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 20 * http://pdfserv.maxim-ic.com/en/ds/MAX6620.pdf 70 #define MAX6620_CFG_TIMEOUT BIT(5) 84 #define MAX6620_FAIL_TACH1 BIT(5) 95 /* Minimum and maximum values of the FAN-RPM */ 147 return BIT((val & 0xE0) >> 5); in max6620_fan_div_from_reg() 163 struct i2c_client *client = data->client; in max6620_update_device() 167 mutex_lock(&data->update_lock); in max6620_update_device() 169 if (time_after(jiffies, data->last_updated + HZ) || !data->valid) { in max6620_update_device() 174 data->fancfg[i] = ret; in max6620_update_device() [all …]
|
/linux/Documentation/devicetree/bindings/iio/dac/ |
H A D | adi,ad5770r.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Alexandru Tachici <alexandru.tachici@analog.com> 16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD5770R.pdf 21 - adi,ad5770r 26 avdd-supply: 31 iovdd-supply: 35 vref-supply: 41 adi,external-resistor: [all …]
|
H A D | adi,ltc2664.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michael Hennerich <michael.hennerich@analog.com> 11 - Kim Seer Paller <kimseer.paller@analog.com> 14 Analog Devices LTC2664 4 channel, 12-/16-Bit, +-10V DAC 15 https://www.analog.com/media/en/technical-documentation/data-sheets/2664fa.pdf 20 - adi,ltc2664 25 spi-max-frequency: 28 vcc-supply: [all …]
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | ti,tsc2046.yaml | 1 # 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 …]
|
H A D | st,stm32-dfsdm-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/st,stm32-dfsdm-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Fabrice Gasnier <fabrice.gasnier@foss.st.com> 11 - Olivier Moysan <olivier.moysan@foss.st.com> 14 STM32 DFSDM ADC is a sigma delta analog-to-digital converter dedicated to 17 - Sigma delta modulators (motor control, metering...) 18 - PDM microphones (audio digital microphone) 28 - st,stm32h7-dfsdm [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | eeprom.h | 1 /* SPDX-License-Identifier: ISC */ 30 #define MT_EE_WIFI_CONF1_BAND_SEL GENMASK(5, 3) 33 #define MT_EE_WIFI_CONF1_TX_PATH_BAND0 GENMASK(5, 3) 35 #define MT_EE_WIFI_CONF2_TX_PATH_BAND2 GENMASK(5, 3) 37 #define MT_EE_WIFI_CONF3_RX_PATH_BAND1 GENMASK(5, 3) 39 #define MT_EE_WIFI_CONF4_STREAM_NUM_BAND0 GENMASK(5, 3) 41 #define MT_EE_WIFI_CONF5_STREAM_NUM_BAND2 GENMASK(5, 3) 43 #define MT_EE_RATE_DELTA_MASK GENMASK(5, 0) 55 mt7996_get_channel_group_5g(int channel) in mt7996_get_channel_group_5g() argument 57 if (channel <= 64) in mt7996_get_channel_group_5g() [all …]
|
/linux/drivers/media/pci/tw5864/ |
H A D | tw5864-reg.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * TW5864 driver - registers description 8 /* According to TW5864_datasheet_0.6d.pdf, tw5864b1-ds.pdf */ 10 /* Register Description - Direct Map Space */ 11 /* 0x0000 ~ 0x1ffc - H264 Register Map */ 28 #define TW5864_EMU_EN_PLBK BIT(5) 52 * [15:0] Two bit for each channel (channel 0 ~ 7). Each two bits are the buffer 53 * pointer for the last encoded frame of the corresponding channel. 57 /* [5:0] DSP_MB_QP and [15:10] DSP_LPF_OFFSET */ 60 /* [5:0] H264 QP Value for codec */ [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | ti,tlv320adcx140.yaml | 1 # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Texas Instruments TLV320ADCX140 Quad Channel Analog-to-Digital Converter 11 - Andrew Davis <afd@ti.com> 14 The TLV320ADCX140 are multichannel (4-ch analog recording or 8-ch digital 15 PDM microphones recording), high-performance audio, analog-to-digital 28 - ti,tlv320adc3140 29 - ti,tlv320adc5140 30 - ti,tlv320adc6140 [all …]
|
/linux/Documentation/devicetree/bindings/input/ |
H A D | azoteq,iqs7222.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 21 - azoteq,iqs7222a 22 - azoteq,iqs7222b 23 - azoteq,iqs7222c 24 - azoteq,iqs7222d 29 irq-gpios: 32 Specifies the GPIO connected to the device's active-low RDY output. [all …]
|
H A D | iqs626a.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 13 The Azoteq IQS626A is a 14-channel capacitive touch controller that features 14 additional Hall-effect and inductive sensing capabilities. 19 - $ref: touchscreen/touchscreen.yaml# 31 "#address-cells": 34 "#size-cells": 37 azoteq,suspend-mode: [all …]
|
/linux/sound/usb/caiaq/ |
H A D | control.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 struct snd_usb_caiaqdev *cdev = caiaqdev(chip->card); in control_info() 25 int pos = kcontrol->private_value; in control_info() 29 uinfo->count = 1; in control_info() 32 switch (cdev->chip.usb_id) { in control_info() 37 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info() 38 uinfo->value.integer.min = 0; in control_info() 39 uinfo->value.integer.max = 2; in control_info() 54 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in control_info() 55 uinfo->value.integer.min = 0; in control_info() [all …]
|
/linux/drivers/comedi/drivers/ |
H A D | amplc_dio200.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Copyright (C) 2005-2013 MEV Ltd. <https://www.mev.co.uk/> 9 * COMEDI - Linux Control and Measurement Device Interface 24 * [0] - I/O port base address 25 * [1] - IRQ (optional, but commands won't work without it) 32 * ------------- ------------- ------------- 33 * Subdevices 6 4 5 34 * 0 PPI-X PPI-X PPI-X 35 * 1 CTR-Y1 PPI-Y PPI-Y 36 * 2 CTR-Y2 CTR-Z1* CTR-Z1 [all …]
|
H A D | ni_at_ao.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Driver for NI AT-AO-6/10 boards 6 * COMEDI - Linux Control and Measurement Device Interface 12 * Description: National Instruments AT-AO-6/10 13 * Devices: [National Instruments] AT-AO-6 (at-ao-6), AT-AO-10 (at-ao-10) 19 * [0] - I/O port base address 20 * [1] - IRQ (unused) 21 * [2] - DMA (unused) 22 * [3] - analog output range, set by jumpers on hardware 23 * 0 for -10 to 10V bipolar [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/include/ |
H A D | brcmu_wifi.h | 1 // SPDX-License-Identifier: ISC 13 * A chanspec (u16) holds the channel number, band, bandwidth and control 17 /* channel defines */ 26 #define CH_5MHZ_APART 1 /* 2G band channels are 5 Mhz apart */ 28 #define CH_MAX_2G_CHANNEL 14 /* Max channel in 2G band */ 32 #define BAND_2G_INDEX 0 /* wlc->bandstate[x] index */ 33 #define BAND_5G_INDEX 1 /* wlc->bandstate[x] index */ 36 * max # supported channels. The max channel no is 216, this is that + 1 66 #define WL_CHAN_BAND_5G (1 << 2) /* 5GHz-band channel */ 67 #define WL_CHAN_RADAR (1 << 3) /* radar sensitive channel */ [all …]
|
/linux/drivers/net/wireless/broadcom/b43/ |
H A D | phy_lp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 IEEE 802.11a/g LP-PHY driver 7 Copyright (c) 2008-2009 Michael Buesch <m@bues.ch> 23 static inline u16 channel2freq_lp(u8 channel) in channel2freq_lp() argument 25 if (channel < 14) in channel2freq_lp() 26 return (2407 + 5 * channel); in channel2freq_lp() 27 else if (channel == 14) in channel2freq_lp() 29 else if (channel < 184) in channel2freq_lp() 30 return (5000 + 5 * channel); in channel2freq_lp() 32 return (4000 + 5 * channel); in channel2freq_lp() [all …]
|
/linux/drivers/net/wireless/ath/ath9k/ |
H A D | common-init.c | 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 17 /* We use the hw_value as an index into our private channel structure */ 35 /* Some 2 GHz radios are actually tunable on 2312-2732 36 * on 5 MHz steps, we support the channels which we know 40 CHAN2G(2412, 0), /* Channel 1 */ 41 CHAN2G(2417, 1), /* Channel 2 */ 42 CHAN2G(2422, 2), /* Channel 3 */ 43 CHAN2G(2427, 3), /* Channel 4 */ 44 CHAN2G(2432, 4), /* Channel 5 */ 45 CHAN2G(2437, 5), /* Channel 6 */ [all …]
|
/linux/Documentation/devicetree/bindings/dma/ |
H A D | stericsson,dma40.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ST-Ericsson DMA40 DMA Engine 10 - Linus Walleij <linus.walleij@linaro.org> 13 - $ref: dma-controller.yaml# 16 "#dma-cells": 19 The first cell is the unique device channel number as indicated by this 27 5: I2C port 3 32 10: Multi-Channel Display Engine MCDE RX [all …]
|
/linux/drivers/clocksource/ |
H A D | samsung_pwm_timer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * samsung - Common hr-timer support (s3c and s5p) 44 * Each channel occupies 4 bits in TCON register, but there is a gap of 4 45 * bits (one channel) after channel 0, so channels have different numbering 48 * In addition, the location of autoreload bit for channel 4 (TCON channel 5) 57 ((chan < 5) ? _TCON_AUTORELOAD(chan) : _TCON_AUTORELOAD4(chan)) 81 static void samsung_timer_set_prescale(unsigned int channel, u16 prescale) in samsung_timer_set_prescale() argument 87 if (channel >= 2) in samsung_timer_set_prescale() 94 reg |= (prescale - 1) << shift; in samsung_timer_set_prescale() 100 static void samsung_timer_set_divisor(unsigned int channel, u8 divisor) in samsung_timer_set_divisor() argument [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6qdl-skov-cpu-revc.dtsi | 1 // 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 …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | eeprom.h | 1 /* SPDX-License-Identifier: ISC */ 60 #define MT_EE_WIFI_CONF_STREAM_NUM GENMASK(7, 5) 62 #define MT_EE_WIFI_CONF3_TX_PATH_B1 GENMASK(5, 4) 67 #define MT_EE_RATE_DELTA_MASK GENMASK(5, 0) 113 mt7915_get_channel_group_5g(int channel, bool is_7976) in mt7915_get_channel_group_5g() argument 116 if (channel <= 64) in mt7915_get_channel_group_5g() 118 if (channel <= 96) in mt7915_get_channel_group_5g() 120 if (channel <= 128) in mt7915_get_channel_group_5g() 122 if (channel <= 144) in mt7915_get_channel_group_5g() 127 if (channel >= 184 && channel <= 196) in mt7915_get_channel_group_5g() [all …]
|
/linux/sound/pci/ca0106/ |
H A D | ca0106.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2004 James Courtier-Dutton <James@superbug.demon.co.uk> 12 * Removed noise from Center/LFE channel when in Analog mode. 50 * Implement support for Line-in capture on SB Live 24bit. 73 #define IPR_MIDI_RX_B 0x00020000 /* MIDI UART-B Receive buffer non-empty */ 74 #define IPR_MIDI_TX_B 0x00010000 /* MIDI UART-B Transmit buffer empty */ 87 #define IPR_MIDI_RX_A 0x00000004 /* MIDI UART-A Receive buffer non-empty */ 88 #define IPR_MIDI_TX_A 0x00000002 /* MIDI UART-A Transmit buffer empty */ 93 #define INTE_MIDI_RX_B 0x00020000 /* MIDI UART-B Receive buffer non-empty */ 94 #define INTE_MIDI_TX_B 0x00010000 /* MIDI UART-B Transmit buffer empty */ [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mp-skov-revb-lt6.dts | 1 // 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"; 12 compatible = "resistive-adc-touch"; 13 io-channels = <&adc_ts 1>, <&adc_ts 3>, <&adc_ts 4>, <&adc_ts 5>; 14 io-channel-names = "y", "z1", "z2", "x"; 15 touchscreen-min-pressure = <65000>; 16 touchscreen-inverted-y; [all …]
|