| /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 | adi,axi-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/adi,axi-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michael Hennerich <michael.hennerich@analog.com> 18 to the data-lines of the ADC and handle the streaming of data into 26 - AXI AD7606x: specialized version of the IP core for all the chips from 37 - adi,axi-adc-10.0.a 38 - adi,axi-ad408x 39 - adi,axi-ad7606x [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 …]
|
| H A D | imx6dl-plym2m.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 7 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/leds/common.h> 17 stdout-path = &uart4; 21 compatible = "pwm-backlight"; 23 brightness-levels = <0 1000>; 24 num-interpolated-steps = <20>; 25 default-brightness-level = <19>; 26 power-supply = <®_12v0>; [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 …]
|
| H A D | imx6dl-prtvt7.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 /dts-v1/; 8 #include "imx6qdl-prti6q.dtsi" 9 #include <dt-bindings/display/sdtv-standards.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/sound/fsl-imx-audmux.h> 23 backlight_lcd: backlight-lcd { 24 compatible = "pwm-backlight"; 26 brightness-levels = <0 20 81 248 1000>; [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-iio-adc-mcp3564 | 3 Contact: linux-iio@vger.kernel.org 6 circuit of the Delta-Sigma modulator. The different BOOST 12 Contact: linux-iio@vger.kernel.org 15 the current biasing circuit of the Delta-Sigma modulator. 19 Contact: linux-iio@vger.kernel.org 22 auto-zeroing algorithm (the input multiplexer and the ADC 26 input as VIN+/VIN-, one with VIN+/VIN- inverted. In this case the 30 ultra-low offset without any digital calibration. The resulting 39 Contact: linux-iio@vger.kernel.org 47 higher Oversampling Ratio values (over 256). To overcome this [all …]
|
| H A D | sysfs-bus-iio | 3 Contact: linux-iio@vger.kernel.org 11 Contact: linux-iio@vger.kernel.org 25 Contact: linux-iio@vger.kernel.org 31 Contact: linux-iio@vger.kernel.org 38 Contact: linux-iio@vger.kernel.org 44 The contents of the label are free-form, but there are some 51 * "proximity-wifi" 52 * "proximity-lte" 53 * "proximity-wifi-lte" 54 * "proximity-wifi-left" [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | wm8974.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8974.c -- WM8974 ALSA Soc Audio driver 5 * Copyright 2006-2009 Wolfson Microelectronics PLC. 55 static const char *wm8974_companding[] = {"Off", "NC", "u-law", "A-law" }; 91 static const DECLARE_TLV_DB_SCALE(digital_tlv, -1275 378 unsigned int ratio = 2 * f_in / f_out; wm8974_get_mclkdiv() local [all...] |
| H A D | nau8325.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // nau8325.c -- Nuvoton NAU8325 audio codec driver 30 #define CLK_PROC_BYPASS (-1) 192 static const DECLARE_TLV_DB_MINMAX_MUTE(dac_vol_tlv, -8000, 600); 195 SOC_ENUM("DAC Oversampling Rate", nau8325_dac_oversampl_enum), 219 snd_soc_dapm_to_component(w->dap in nau8325_dac_event() 346 int i, mclk_src, ratio; nau8325_clksrc_n2() local 389 int i, j, mclk, mclk_max, ratio, ratio_sel, n2_max; nau8325_clksrc_choose() local [all...] |
| H A D | nau8821.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // nau8821.c -- Nuvoton NAU88L21 audio codec driver 7 // Co-author: Seven Lee <wtli@nuvoton.com> 33 static int quirk_override = -1; 35 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 52 int ratio; member 80 /* ratio for input clk freq */ 286 struct soc_bytes_ext *params = (void *)kcontrol->private_value; in nau8821_biq_coeff_get() 288 if (!component->regmap) in nau8821_biq_coeff_get() 289 return -EINVAL; in nau8821_biq_coeff_get() [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(-161 [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 279 /* Reset the codec by writing to this write-only reset register */ in max98090_reset() 280 ret = regmap_write(max98090->regmap, M98090_REG_SOFTWARE_RESET, in max98090_reset() 283 dev_err(max98090->component->dev, in max98090_reset() 300 -600, 600, 0); 303 0, 3, TLV_DB_SCALE_ITEM(-600, 300, 0), 308 static const DECLARE_TLV_DB_SCALE(max98090_av_tlv, -1200, 100, 0); 311 static const DECLARE_TLV_DB_SCALE(max98090_dv_tlv, -1500, 100, 0); [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | ad7380.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * ad7380/1 : https://www.analog.com/media/en/technical-documentation/data-sheets/AD7380-7381.pdf 10 * ad7383/4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7383-7384.pdf 11 …* ad7386/7/8 : https://www.analog.com/media/en/technical-documentation/data-sheets/AD7386-7387-738… 12 * ad7380-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7380-4.pdf 13 * ad7381-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7381-4.pdf 14 …* ad7383/4-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7383-4-ad7384… 15 …* ad7386/7/8-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7386-4-7387… 16 * ad7389-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/ad7389-4.pdf 17 * adaq4370-4 : https://www.analog.com/media/en/technical-documentation/data-sheets/adaq4370-4.pdf [all …]
|
| H A D | ad4695.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 #include <linux/iio/buffer-dmaengine.h> 38 #include <dt-bindings/iio/adc/adi,ad4695.h> 208 .name = "ad4695-8", 237 .name = "ad4695-16", 254 .tx_buf = st->regmap_bus_data, in ad4695_regmap_bus_reg_write() 257 if (count > ARRAY_SIZE(st->regmap_bus_data)) in ad4695_regmap_bus_reg_write() 258 return -EINVAL; in ad4695_regmap_bus_reg_write() 260 memcpy(st->regmap_bus_data, data, count); in ad4695_regmap_bus_reg_write() 262 return spi_sync_transfer(st->spi, &xfer, 1); in ad4695_regmap_bus_reg_write() [all …]
|
| H A D | stm32-dfsdm-adc.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved 10 #include <linux/dma-mapping.h> 12 #include <linux/iio/adc/stm32-dfsdm-adc.h> 15 #include <linux/iio/hw-consumer.h> 17 #include <linux/iio/timer/stm32-lptim-trigger.h> 18 #include <linux/iio/timer/stm32-timer-trigger.h> 30 #include "stm32-dfsdm.h" 38 /* Oversampling attribute default */ 41 /* Oversampling max values */ [all …]
|
| H A D | ad7606.c | 1 // SPDX-License-Identifier: GPL-2.0 103 -128, 1, 127, 107 -512, 4, 508, 135 .name = "ad7605-4", 144 .name = "ad7606-8", 155 .name = "ad7606-6", 167 .name = "ad7606-4", 278 if (st->gpio_reset) { in ad7606_reset() 279 gpiod_set_value(st->gpio_reset, 1); in ad7606_reset() 281 gpiod_set_value(st->gpio_reset, 0); in ad7606_reset() [all …]
|
| /linux/include/linux/iio/ |
| H A D | backend.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 31 * IIO_BACKEND_EX_INFO - Helper for an IIO extended channel attribute 45 * struct iio_backend_data_fmt - Backend data format 88 * struct iio_backend_ops - operations structure for an iio_backend 108 * @oversampling_ratio_set: Set Oversampling ratio. 158 unsigned int chan, unsigned int ratio); 179 * struct iio_backend_info - info structure for an iio_backend 232 unsigned int ratio);
|
| /linux/drivers/iio/ |
| H A D | industrialio-backend.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 * ------------------------------------------------------- 12 * ------------------ | ------------ ------------ ------- FPGA| 13 * | ADC |------------------------| | ADC CORE |---------| DMA CORE |------| RAM | | 14 * | (Frontend/IIO) | Serial Data (eg: LVDS) | |(backend) |---------| |------| | | 15 * | |------------------------| ------------ ------------ ------- | 16 * ------------------ ------------------------------------------------------- 19 * - Backends should register themselves with devm_iio_backend_register() 20 * - Frontend devices should get backends with devm_iio_backend_get() 27 * the industrialio-backend.c is only left with the really generic stuff. Then, [all …]
|
| /linux/drivers/iio/humidity/ |
| H A D | hts221_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 132 err = regmap_read(hw->regmap, HTS221_REG_WHOAMI_ADDR, &data); in hts221_check_whoami() 134 dev_err(hw->dev, "failed to read whoami register\n"); in hts221_check_whoami() 139 dev_err(hw->dev, "wrong whoami {%02x vs %02x}\n", in hts221_check_whoami() 141 return -ENODEV; in hts221_check_whoami() 156 return -EINVAL; in hts221_update_odr() 158 err = regmap_update_bits(hw->regmap, HTS221_REG_CNTRL1_ADDR, in hts221_update_odr() 165 hw->odr = odr; in hts221_update_odr() 178 if (avg->avg_avl[i] == val) in hts221_update_avg() 182 return -EINVAL; in hts221_update_avg() [all …]
|
| /linux/sound/soc/meson/ |
| H A D | aiu-encoder-i2s.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <sound/soc-dai.h> 58 return -EINVAL; in aiu_encoder_i2s_setup_desc() 68 return -EINVAL; in aiu_encoder_i2s_setup_desc() 94 dev_err(component->dev, "Unsupported i2s divider: %u\n", bs); in aiu_encoder_i2s_set_legacy_div() 95 return -EINVAL; in aiu_encoder_i2s_set_legacy_div() 118 * However, in 16 bits - 8ch mode, this factor needs to be in aiu_encoder_i2s_set_more_div() 124 dev_err(component->dev, in aiu_encoder_i2s_set_more_div() 126 return -EINVAL; in aiu_encoder_i2s_set_more_div() 139 bs - 1)); in aiu_encoder_i2s_set_more_div() [all …]
|
| /linux/drivers/tty/serial/ |
| H A D | atmel_serial.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 27 #define ATMEL_US_STTTO BIT(11) /* Start Time-out */ 31 #define ATMEL_US_RETTO BIT(15) /* Rearm Time-out */ 81 #define ATMEL_US_MODE9 BIT(17) /* 9-bit Character Length */ 83 #define ATMEL_US_OVER BIT(19) /* Oversampling Mode */ 99 #define ATMEL_US_TIMEOUT BIT(8) /* Receiver Time-out */ 126 #define ATMEL_US_RTOR 0x24 /* Receiver Time-out Register for USART */ 127 #define ATMEL_UA_RTOR 0x28 /* Receiver Time-out Register for UART */ 128 #define ATMEL_US_TO GENMASK(15, 0) /* Time-out Value */ 133 #define ATMEL_US_FIDI 0x40 /* FI DI Ratio Register */
|
| /linux/drivers/iio/accel/ |
| H A D | bma400_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * - Support for power management 9 * - Support events and interrupts 10 * - Create channel for step count 11 * - Create channel for sensor time 38 * The G-range selection may be one of 2g, 4g, 8, or 16g. The scale may 240 return &data->orientation; in bma400_accel_get_mount_matrix() 302 return -EINVAL; in usec_to_tapreg_raw() 313 ret = regmap_read(data->regmap, BMA400_TAP_CONFIG1_REG, ®_val); in in_accel_gesture_tap_maxtomin_time_show() 338 return -EINVAL; in in_accel_gesture_tap_maxtomin_time_store() [all …]
|
| /linux/drivers/iio/pressure/ |
| H A D | rohm-bm1390.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * https://fscdn.rohm.com/en/products/databook/datasheet/ic/sensor/pressure/bm1390glv-z-e.pdf 40 * Data-sheet states that when the IIR is used, the AVE_NUM must be set to 174 * Thus we don't allow setting oversampling ratio. 215 ret = regmap_bulk_read(data->regmap, BM1390_REG_TEMP_HI, &temp_raw, in bm1390_read_temp() 227 /* Pressure data is in 3 8-bit registers */ in bm1390_pressure_read() 231 ret = regmap_bulk_read(data->regmap, BM1390_REG_PRESSURE_BASE, in bm1390_pressure_read() 250 return regmap_update_bits(data->regmap, BM1390_REG_MODE_CTRL, in bm1390_meas_set() 256 * completed. The data-sheet says maximum measurement cycle (regardless 267 guard(mutex)(&data->mutex); in bm1390_read_data() [all …]
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | stv0910.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for the ST STV0910 DVB-S/S2 demodulator. 5 * Copyright (C) 2014-2015 Ralph Metzler <rjkm@metzlerbros.de> 129 struct i2c_adapter *adap = state->base->i2c; in write_reg() 131 struct i2c_msg msg = {.addr = state->base->adr, .flags = 0, in write_reg() 135 dev_warn(&adap->dev, "i2c write error ([%02x] %04x: %02x)\n", in write_reg() 136 state->base->adr, reg, val); in write_reg() 137 return -EIO; in write_reg() 152 dev_warn(&adapter->dev, "i2c read error ([%02x] %04x)\n", in i2c_read_regs16() 154 return -EIO; in i2c_read_regs16() [all …]
|