/linux/Documentation/devicetree/bindings/i2c/ |
H A D | hisilicon,ascend910-i2c.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/i2c/hisilicon,ascend910-i2c.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: HiSilicon common I2C controller 10 - Yicong Yang <yangyicong@hisilicon.com> 13 The HiSilicon common I2C controller can be used for many different 17 - $ref: /schemas/i2c/i2c-controller.yaml# 21 const: hisilicon,ascend910-i2c 32 clock-frequency: [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 15 #include <linux/i2c.h> 35 #define LADC1 0x06 /* ADC1 Lch Digital Volume */ 36 #define RADC1 0x07 /* ADC1 Rch Digital Volume */ 37 #define LADC2 0x08 /* ADC2 Lch Digital Volume */ 38 #define RADC2 0x09 /* ADC2 Rch Digital Volume */ 39 #define ADC_DF 0x0a /* ADC Digital Filter Setting */ 42 #define LDAC1 0x0E /* DAC1 Lch Digital Volume */ 43 #define RDAC1 0x0F /* DAC1 Rch Digital Volume */ [all …]
|
H A D | max9867.c | 1 // SPDX-License-Identifier: GPL-2.0 5 // Copyright 2013-2015 Maxim Integrated Products 6 // Copyright 2018 Ladislav Michl <ladis@linux-mips.org> 11 #include <linux/i2c.h> 42 "Butterworth/8-24" 55 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max9867_adc_dac_event() 71 max9867->adc_dac_active |= BIT(adc_dac); in max9867_adc_dac_event() 73 max9867->adc_dac_active &= ~BIT(adc_dac); in max9867_adc_dac_event() 86 ret = regmap_read(max9867->regmap, MAX9867_CODECFLTR, ®); in max9867_filter_get() 88 return -EINVAL; in max9867_filter_get() [all …]
|
H A D | ak4375.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #include <linux/i2c.h> 23 #define PMCP2 BIT(1) /* Charge Pump 2: Class-G HP Amp */ 117 * Output Digital volume control: 118 * from -12.5 to 3 dB in 0.5 dB steps (mute instead of -12.5 dB) 120 static DECLARE_TLV_DB_SCALE(dac_tlv, -1250, 50, 0); 123 * HP-Amp Analog volume control: 124 * from -4.2 to 6 dB in 2 dB steps (mute instead of -4.2 dB) 126 static DECLARE_TLV_DB_SCALE(hpg_tlv, -4200, 20, 0); 132 "+-VDD Operation", [all …]
|
H A D | da732x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * da732x.c --- Dialog DA732X ALSA SoC Audio Driver 15 #include <linux/i2c.h> 24 #include <sound/soc-dapm.h> 41 * da732x register cache - default settings 184 return -EINVAL; in da732x_get_input_div() 249 /* High Pass Filter */ 327 struct soc_enum *enum_ctrl = (struct soc_enum *)kcontrol->private_value; in da732x_hpf_set() 328 unsigned int reg = enum_ctrl->reg; in da732x_hpf_set() 329 unsigned int sel = ucontrol->value.enumerated.item[0]; in da732x_hpf_set() [all …]
|
H A D | tlv320adcx140.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ 10 #include <linux/i2c.h> 40 "ti,gpo-config-1", 41 "ti,gpo-config-2", 42 "ti,gpo-config-3", 43 "ti,gpo-config-4", 162 /* Digital Volume control. From -100 to 27 dB in 0.5 dB steps */ 163 static DECLARE_TLV_DB_SCALE(dig_vol_tlv, -10050, 50, 0); 168 /* DRE Level. From -12 dB to -66 dB in 1 dB steps */ [all …]
|
H A D | ml26124.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/i2c.h> 22 #define DVOL_CTL_DVMUTE_ON BIT(4) /* Digital volume MUTE On */ 23 #define DVOL_CTL_DVMUTE_OFF 0 /* Digital volume MUTE Off */ 53 static const DECLARE_TLV_DB_SCALE(digital_tlv, -7150, 50, 0); 55 static const DECLARE_TLV_DB_SCALE(alclvl, -2250, 150, 0); 56 static const DECLARE_TLV_DB_SCALE(mingain, -1200, 600, 0); 57 static const DECLARE_TLV_DB_SCALE(maxgain, -675, 600, 0); 58 static const DECLARE_TLV_DB_SCALE(boost_vol, -1200, 75, 0); 60 static const char * const ml26124_companding[] = {"16bit PCM", "u-law", [all …]
|
H A D | ak4458.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/i2c.h> 20 #include <sound/soc-dapm.h> 84 * from -127 to 0 dB in 0.5 dB steps (mute instead of -127.5 dB) 86 static DECLARE_TLV_DB_SCALE(dac_tlv, -12750, 50, 1); 100 * SSLOW, SD, SLOW bits Digital Filter Setting 101 * 0, 0, 0 : Sharp Roll-Off Filter 102 * 0, 0, 1 : Slow Roll-Off Filter 103 * 0, 1, 0 : Short delay Sharp Roll-Off Filter 104 * 0, 1, 1 : Short delay Slow Roll-Off Filter [all …]
|
H A D | wm8940.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8940.c -- WM8940 ALSA Soc Audio driver 12 * Notch filter control 19 * Digital Sidetone not supported 27 #include <linux/i2c.h> 120 { 0x10, 0x0000 }, /* Notch Filter 1 Control 1 */ 121 { 0x11, 0x0000 }, /* Notch Filter 1 Control 2 */ 122 { 0x12, 0x0000 }, /* Notch Filter 2 Control 1 */ 123 { 0x13, 0x0000 }, /* Notch Filter 2 Control 2 */ 124 { 0x14, 0x0000 }, /* Notch Filter 3 Control 1 */ [all …]
|
H A D | uda1380.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * uda1380.c - Philips UDA1380 ALSA SoC audio driver 5 * Copyright (c) 2007-2009 Philipp Zabel <philipp.zabel@gmail.com> 21 #include <linux/i2c.h> 37 struct i2c_client *i2c; member 65 u16 *cache = uda1380->reg_cache; in uda1380_read_reg_cache() 70 return -1; in uda1380_read_reg_cache() 81 u16 *cache = uda1380->reg_cache; in uda1380_write_reg_cache() 86 set_bit(reg - 0x10, &uda1380_cache_dirty); in uda1380_write_reg_cache() 116 if (i2c_master_send(uda1380->i2c, data, 3) == 3) { in uda1380_write() [all …]
|
/linux/drivers/media/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 26 bool "Filter media drivers" 36 If not selected, all non-optional media core functionality 41 bool "Autoselect ancillary drivers (tuners, sensors, i2c, spi, frontends)" 43 select I2C 47 By default, a media driver auto-selects all possible ancillary 65 # Multimedia support - automatically enable V4L2 and DVB core 84 hybrid analog/digital TV chipset. 87 support both analog and digital TV. Disabling this option 92 prompt "Digital TV" if MEDIA_SUPPORT_FILTER [all …]
|
/linux/arch/arm/boot/dts/microchip/ |
H A D | at91-sama5d2_xplained.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * at91-sama5d2_xplained.dts - Device Tree file for SAMA5D2 Xplained board 8 /dts-v1/; 10 #include "sama5d2-pinfunc.h" 11 #include <dt-bindings/mfd/atmel-flexcom.h> 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/input/input.h> 14 #include <dt-bindings/regulator/active-semi,8945a-regulator.h> 18 compatible = "atmel,sama5d2-xplained", "atmel,sama5d2", "atmel,sama5"; 28 stdout-path = "serial0:115200n8"; [all …]
|
H A D | at91-sama5d27_som1_ek.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * at91-sama5d27_som1_ek.dts - Device Tree file for SAMA5D27-SOM1-EK board 10 /dts-v1/; 11 #include "at91-sama5d27_som1.dtsi" 12 #include <dt-bindings/mfd/atmel-flexcom.h> 13 #include <dt-bindings/gpio/gpio.h> 14 #include <dt-bindings/input/input.h> 18 …compatible = "atmel,sama5d27-som1-ek", "atmel,sama5d27-som1", "atmel,sama5d27", "atmel,sama5d2", "… 29 stdout-path = "serial0:115200n8"; 34 atmel,vbus-gpio = <&pioA PIN_PD20 GPIO_ACTIVE_HIGH>; [all …]
|
H A D | at91-sama7g5ek.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * at91-sama7g5ek.dts - Device Tree file for SAMA7G5-EK board 11 /dts-v1/; 12 #include "sama7g5-pinfunc.h" 14 #include <dt-bindings/mfd/atmel-flexcom.h> 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/pinctrl/at91.h> 17 #include <dt-bindings/sound/microchip,pdmc.h> 20 model = "Microchip SAMA7G5-EK"; 25 stdout-path = "serial0:115200n8"; [all …]
|
H A D | lan966x-pcb8309.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * lan966x_pcb8309.dts - Device Tree file for PCB8309 5 /dts-v1/; 7 #include "dt-bindings/phy/phy-lan966x-serdes.h" 10 model = "Microchip EVB - LAN9662"; 11 compatible = "microchip,lan9662-pcb8309", "microchip,lan9662", "microchip,lan966"; 20 stdout-path = "serial0:115200n8"; 23 gpio-restart { 24 compatible = "gpio-restart"; 29 i2c-mux { [all …]
|
H A D | at91-sam9x60_curiosity.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * at91-sam9x60_curiosity.dts - Device Tree file for Microchip SAM9X60 Curiosity board 9 /dts-v1/; 11 #include <dt-bindings/input/input.h> 15 compatible = "microchip,sam9x60-curiosity", "microchip,sam9x60", "atmel,at91sam9"; 24 stdout-path = "serial0:115200n8"; 33 clock-frequency = <32768>; 37 clock-frequency = <24000000>; 41 gpio-keys { 42 compatible = "gpio-keys"; [all …]
|
H A D | at91-sama5d2_icp.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * at91-sama5d2_icp.dts - Device Tree file for SAMA5D2-ICP board 11 /dts-v1/; 13 #include "sama5d2-pinfunc.h" 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/mfd/atmel-flexcom.h> 19 model = "Microchip SAMA5D2-ICP"; 20 compatible = "microchip,sama5d2-icp", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5"; 32 stdout-path = "serial0:115200n8"; [all …]
|
H A D | at91-sam9x60ek.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * at91-sam9x60ek.dts - Device Tree file for Microchip SAM9X60-EK board 9 /dts-v1/; 11 #include <dt-bindings/input/input.h> 14 model = "Microchip SAM9X60-EK"; 24 stdout-path = "serial0:115200n8"; 29 clock-frequency = <32768>; 33 clock-frequency = <24000000>; 37 gpio-keys { 38 compatible = "gpio-keys"; [all …]
|
/linux/drivers/iio/gyro/ |
H A D | itg3200_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * itg3200_core.c -- support InvenSense ITG3200 4 * Digital 3-Axis Gyroscope driver 11 * - Support digital low pass filter 12 * - Support power management 17 #include <linux/i2c.h> 37 return i2c_smbus_write_byte_data(st->i2c, 0x80 | reg_address, val); in itg3200_write_reg_8() 46 ret = i2c_smbus_read_byte_data(st->i2c, reg_address); in itg3200_read_reg_8() 57 struct i2c_client *client = st->i2c; in itg3200_read_reg_s16() 63 .addr = client->addr, in itg3200_read_reg_s16() [all …]
|
H A D | mpu3050.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 #include <linux/i2c.h> 9 * enum mpu3050_fullscale - indicates the full range of the sensor in deg/sec 19 * enum mpu3050_lpf - indicates the low pass filter width 42 * struct mpu3050 - instance state container for the device 50 * @lpf: digital low pass filter setting for the device 52 * @calibration: the three signed 16-bit calibration settings that 55 * @trig: trigger for the MPU-3050 interrupt, if present 64 * @i2cmux: an I2C mux reflecting the fact that this sensor is a hub with 65 * a pass-through I2C interface coming out of it: this device needs to be
|
/linux/include/linux/iio/gyro/ |
H A D | itg3200.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * itg3200.h -- support InvenSense ITG3200 4 * Digital 3-Axis Gyroscope driver 16 /* Register with I2C address (34h) */ 24 /* Digital low pass filter settings */ 59 /* Determine the status of ITG-3200 interrupts */ 61 /* Status of 'device is ready'-interrupt */ 63 /* Status of 'data is available'-interrupt */ 79 * power-up-default settings */ 97 * struct itg3200 - device instance specific data [all …]
|
/linux/drivers/iio/adc/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 7 menu "Analog to digital converters" 10 bool "ST-Ericsson AB8500 GPADC driver" 15 (General Purpose Analog to Digital Converter) driver used to monitor 31 SPI analog to digital converters (ADC). 45 Say yes here to build support for Analog Devices AD4130-8 SPI analog 46 to digital converters (ADC). 59 analog to digital converters (ADC). 69 depends on I2C 73 Say yes here to build support for Analog Devices AD7091R-5 ADC. [all …]
|
/linux/drivers/iio/light/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 21 be called acpi-als. 24 tristate "ADJD-S311-CR999 digital color sensor" 27 depends on I2C 29 If you say yes here you get support for the Avago ADJD-S311-CR999 30 digital color light sensor. 38 depends on I2C 48 depends on I2C 58 depends on I2C 68 depends on I2C [all …]
|
/linux/drivers/media/tuners/ |
H A D | tda18271.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 tda18271.h - header for the Philips / NXP TDA18271 silicon tuner 12 #include <linux/i2c.h> 84 /* use i2c gate provided by analog or digital demod */ 90 /* some i2c providers can't write all 39 registers at once */ 93 /* force rf tracking filter calibration on startup */ 114 struct i2c_adapter *i2c, 119 struct i2c_adapter *i2c, in tda18271_attach() argument
|
H A D | xc4000.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 18 /* if non-zero, power management is enabled by default */ 20 /* value to be written to XREG_AMPLITUDE in DVB-T mode (0: no write) */ 22 /* if non-zero, register 0x0E is set to filter analog TV video output */ 24 /* IF for DVB-T */ 31 /* For each bridge framework, when it attaches either analog or digital, 41 struct i2c_adapter *i2c, 45 struct i2c_adapter *i2c, in xc4000_attach() argument
|