| /linux/drivers/iio/adc/ |
| H A D | sd_adc_modulator.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved 9 #include <linux/iio/backend.h> 10 #include <linux/iio/iio.h> 11 #include <linux/iio/triggered_buffer.h> 35 static int iio_sd_mod_enable(struct iio_backend *backend) in iio_sd_mod_enable() argument 37 struct iio_sd_backend_priv *priv = iio_backend_get_priv(backend); in iio_sd_mod_enable() 39 if (priv->vref) in iio_sd_mod_enable() 40 return regulator_enable(priv->vref); in iio_sd_mod_enable() 45 static void iio_sd_mod_disable(struct iio_backend *backend) in iio_sd_mod_disable() argument [all …]
|
| H A D | ad7606_par.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright 2011 - 2024 Analog Devices Inc. 18 #include <linux/iio/backend.h> 19 #include <linux/iio/iio.h> 30 for (c = 0; c < indio_dev->num_channels; c++) { in ad7606_par_bus_update_scan_mode() 32 ret = iio_backend_chan_enable(st->back, c); in ad7606_par_bus_update_scan_mode() 34 ret = iio_backend_chan_disable(st->back, c); in ad7606_par_bus_update_scan_mode() 52 st->back = devm_iio_backend_get(dev, NULL); in ad7606_par_bus_setup_iio_backend() 53 if (IS_ERR(st->back)) in ad7606_par_bus_setup_iio_backend() 54 return PTR_ERR(st->back); in ad7606_par_bus_setup_iio_backend() [all …]
|
| H A D | ad7405.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <linux/iio/backend.h> 20 #include <linux/iio/iio.h> 46 return -EINVAL; in ad7405_set_dec_rate() 49 return -EBUSY; in ad7405_set_dec_rate() 51 ret = iio_backend_oversampling_ratio_set(st->back, chan->scan_index, dec_rate); in ad7405_set_dec_rate() 57 st->dec_rate = dec_rate; in ad7405_set_dec_rate() 70 *val = st->info->full_scale_mv; in ad7405_read_raw() 71 *val2 = indio_dev->channels[0].scan_type.realbits - 1; in ad7405_read_raw() 74 *val = st->dec_rate; in ad7405_read_raw() [all …]
|
| H A D | ad7606.c | 1 // SPDX-License-Identifier: GPL-2.0 26 #include <linux/iio/backend.h> 27 #include <linux/iio/buffer.h> 28 #include <linux/iio/iio.h> 29 #include <linux/iio/sysfs.h> 30 #include <linux/iio/trigger.h> 31 #include <linux/iio/triggered_buffer.h> 32 #include <linux/iio/trigger_consumer.h> 103 -128, 1, 127, 107 -512, 4, 508, [all …]
|
| H A D | ad7606_spi.c | 1 // SPDX-License-Identifier: GPL-2.0 19 #include <linux/iio/buffer-dmaengine.h> 20 #include <linux/iio/iio.h> 22 #include <dt-bindings/iio/adc/adi,ad7606.h> 64 dev_err(&spi->dev, "SPI read error\n"); in ad7606_spi_read_block() 102 struct spi_device *spi = to_spi_device(st->dev); in ad7606_spi_reg_read() 105 .tx_buf = &st->d16[0], in ad7606_spi_reg_read() 109 .rx_buf = &st->d16[1], in ad7606_spi_reg_read() 115 st->d16[0] = cpu_to_be16(st->bops->rd_wr_cmd(addr, 0) << 8); in ad7606_spi_reg_read() 121 return be16_to_cpu(st->d16[1]); in ad7606_spi_reg_read() [all …]
|
| H A D | ad4080.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/iio/backend.h> 15 #include <linux/iio/iio.h> 201 return regmap_read(st->regmap, reg, readval); in ad4080_reg_access() 203 return regmap_write(st->regmap, reg, writeval); in ad4080_reg_access() 210 tmp = (st->info->scale_table[0][0] * 1000000ULL) >> in ad4080_get_scale() 211 st->info->channels[0].scan_type.realbits; in ad4080_get_scale() 225 ret = regmap_read(st->regmap, AD4080_REG_FILTER_CONFIG, &data); in ad4080_get_dec_rate() 238 guard(mutex)(&st->lock); in ad4080_set_dec_rate() 240 if ((st->filter_type >= SINC_5 && mode >= 512) || mode < 2) in ad4080_set_dec_rate() [all …]
|
| H A D | ad4851.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 #include <linux/iio/backend.h> 27 #include <linux/iio/iio.h> 205 return regmap_read(st->regmap, reg, readval); in ad4851_reg_access() 207 return regmap_write(st->regmap, reg, writeval); in ad4851_reg_access() 218 freq = clamp(freq, 1, st->info->max_sample_rate_hz); in ad4851_set_sampling_freq() 222 ret = pwm_apply_might_sleep(st->cnv, &cnv_state); in ad4851_set_sampling_freq() 226 st->cnv_trigger_rate_hz = freq; in ad4851_set_sampling_freq() 243 return i - 1; in ad4851_osr_to_regval() 245 return -EINVAL; in ad4851_osr_to_regval() [all …]
|
| /linux/drivers/iio/ |
| H A D | industrialio-backend.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Framework to handle complex IIO aggregate devices. 6 * can be "linked" against one or multiple backend devices. All the IIO and 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() [all …]
|
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 6 menuconfig IIO config 13 if IIO 16 bool "Enable buffer support within IIO" 23 source "drivers/iio/buffer/Kconfig" 27 tristate "Enable IIO configuration via configfs" 30 This allows configuring various IIO bits through configfs 32 Documentation/iio/iio_configfs.rst. 40 Provides IIO core support for triggers. Currently these 54 tristate "Enable software IIO device support" [all …]
|
| /linux/Documentation/iio/ |
| H A D | ad7606.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 24 ---------------- 30 ------------------ 33 .. code-block:: 35 +-------------+ +-------------+ 36 | BUSY |-------->| TRIGGER | 37 | CS |<--------| CS | 41 | SDI |<--------| SDO | 42 | DOUTA |-------->| SDI | 43 | SCLK |<--------| SCLK | [all …]
|
| /linux/Documentation/devicetree/bindings/iio/adc/ |
| H A D | sigma-delta-modulator.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/sigma-delta-modulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Arnaud Pouliquen <arnaud.pouliquen@foss.st.com> 15 "sd-modulator" can be used as a generic SD modulator, 18 - sd-modulator 19 - ads1201 21 '#io-backend-cells': 24 '#io-channel-cells': [all …]
|
| H A D | adi,ad7606.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/adi,ad7606.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michael Hennerich <michael.hennerich@analog.com> 14 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7605-4.pdf 15 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606_7606-6_7606-4.pdf 16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7606B.pdf 17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606c-16.pdf 18 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606c-18.pdf [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 …]
|
| 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/Documentation/ABI/testing/ |
| H A D | debugfs-iio-backend | 1 What: /sys/kernel/debug/iio/iio:deviceX/backendY/name 3 Contact: linux-iio@vger.kernel.org 5 Name of Backend Y connected to device X. 7 What: /sys/kernel/debug/iio/iio:deviceX/backendY/direct_reg_access 9 Contact: linux-iio@vger.kernel.org 11 Directly access the registers of backend Y. Typical usage is:
|
| H A D | debugfs-iio-ad9467 | 1 What: /sys/kernel/debug/iio/iio:deviceX/calibration_table_dump 3 Contact: linux-iio@vger.kernel.org 8 What: /sys/kernel/debug/iio/iio:deviceX/in_voltage_test_mode_available 10 Contact: linux-iio@vger.kernel.org 13 - off 14 - midscale_short 15 - pos_fullscale 16 - neg_fullscale 17 - checkerboard 18 - prbs23 [all …]
|
| /linux/include/linux/iio/ |
| H A D | backend.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 #include <linux/iio/iio.h> 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 89 * @enable: Enable backend. 90 * @disable: Disable backend. 101 * @request_buffer: Request an IIO buffer. 102 * @free_buffer: Free an IIO buffer. 103 * @extend_chan_spec: Extend an IIO channel. [all …]
|
| /linux/drivers/iio/dac/ |
| H A D | ad9739a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2015-2024 Analog Devices Inc. 23 #include <linux/iio/backend.h> 24 #include <linux/iio/iio.h> 25 #include <linux/iio/types.h> 65 #define AD9739A_FSC_RANGE (AD9739A_FSC_MAX - AD9739A_FSC_MIN + 1) 69 #define AD9739A_DAC_CLK_RANGE (AD9739A_MAX_DAC_CLK - AD9739A_MIN_DAC_CLK + 1) 86 ret = regmap_read(st->regmap, AD9739A_REG_DEC_CNT, &mode); in ad9739a_oper_mode_get() 93 return -EIO; in ad9739a_oper_mode_get() 98 * We get 2 from the device but for IIO modes, that means 1. Hence the in ad9739a_oper_mode_get() [all …]
|
| H A D | adi-axi-dac.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright 2016-2024 Analog Devices Inc. 8 #include <linux/adi-axi-common.h> 27 #include <linux/iio/backend.h> 28 #include <linux/iio/buffer-dmaengine.h> 29 #include <linux/iio/buffer.h> 30 #include <linux/iio/iio.h> 32 #include "ad3552r-hs.h" 127 guard(mutex)(&st->lock); in axi_dac_enable() 128 ret = regmap_set_bits(st->regmap, AXI_DAC_RSTN_REG, in axi_dac_enable() [all …]
|
| H A D | ad3552r-hs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/iio/backend.h> 14 #include <linux/iio/buffer.h> 21 #include "ad3552r-hs.h" 36 * DAC appropriately, together with the backend API to configure the bus mode 41 * In non-buffering operations, mode is set to simple SPI SDR for all primary 58 /* Protects backend I/O operations from concurrent accesses. */ 69 [AD3552R_SRC_RAMP_16BIT] = "ramp-16bit", 76 WARN_ON_ONCE(st->config_d & AD3552R_MASK_SPI_CONFIG_DDR); in ad3552r_hs_reg_read() 78 return st->data->bus_reg_read(st->back, reg, val, xfer_size); in ad3552r_hs_reg_read() [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/sierraforest/ |
| H A D | srf-metrics.json | 4 "MetricExpr": "cstate_pkg@c10\\-residency@ / msr@tsc@", 11 "MetricExpr": "cstate_core@c1\\-residency@ / msr@tsc@", 18 "MetricExpr": "cstate_pkg@c2\\-residency@ / msr@tsc@", 25 "MetricExpr": "cstate_pkg@c3\\-residency@ / msr@tsc@", 32 "MetricExpr": "cstate_core@c6\\-residency@ / msr@tsc@", 39 "MetricExpr": "cstate_pkg@c6\\-residency@ / msr@tsc@", 46 "MetricExpr": "cstate_core@c7\\-residency@ / msr@tsc@", 53 "MetricExpr": "cstate_pkg@c8\\-residency@ / msr@tsc@", 110 …"BriefDescription": "Bandwidth observed by the integrated I/O traffic contoller (IIO) of IO reads … 116 …"BriefDescription": "Bandwidth observed by the integrated I/O traffic controller (IIO) of IO write… [all …]
|
| /linux/Documentation/devicetree/bindings/iio/dac/ |
| H A D | adi,ad3552r.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/iio/dac/adi,ad3552r.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Nuno Sá <nuno.sa@analog.com> 16 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3541r.pdf 17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3542r.pdf 18 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3551r.pdf 19 https://www.analog.com/media/en/technical-documentation/data-sheets/ad3552r.pdf 24 - adi,ad3541r [all …]
|
| /linux/arch/arm/boot/dts/allwinner/ |
| H A D | sun8i-a33.dtsi | 2 * Copyright 2014 Chen-Yu Tsai 4 * Chen-Yu Tsai <wens@csie.org> 6 * This file is dual-licensed: you can use it either under the terms 45 #include "sun8i-a23-a33.dtsi" 46 #include <dt-bindings/thermal/thermal.h> 49 cpu0_opp_table: opp-table-cpu { 50 compatible = "operating-points-v2"; 51 opp-shared; 53 opp-120000000 { 54 opp-hz = /bits/ 64 <120000000>; [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/grandridge/ |
| H A D | grr-metrics.json | 4 "MetricExpr": "cstate_pkg@c10\\-residency@ / msr@tsc@", 11 "MetricExpr": "cstate_core@c1\\-residency@ / msr@tsc@", 18 "MetricExpr": "cstate_pkg@c2\\-residency@ / msr@tsc@", 25 "MetricExpr": "cstate_pkg@c3\\-residency@ / msr@tsc@", 32 "MetricExpr": "cstate_core@c6\\-residency@ / msr@tsc@", 39 "MetricExpr": "cstate_pkg@c6\\-residency@ / msr@tsc@", 46 "MetricExpr": "cstate_core@c7\\-residency@ / msr@tsc@", 53 "MetricExpr": "cstate_pkg@c8\\-residency@ / msr@tsc@", 116 …Interrupts (MSI) per second sent by the integrated I/O traffic controller (IIO) to System Configur… 215 "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)", [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/graniterapids/ |
| H A D | gnr-metrics.json | 4 "MetricExpr": "cstate_core@c1\\-residency@ / msr@tsc@", 11 "MetricExpr": "cstate_pkg@c2\\-residency@ / msr@tsc@", 18 "MetricExpr": "cstate_core@c6\\-residency@ / msr@tsc@", 25 "MetricExpr": "cstate_pkg@c6\\-residency@ / msr@tsc@", 81 …"BriefDescription": "Bandwidth observed by the integrated I/O traffic controller (IIO) of IO reads… 87 …"BriefDescription": "Bandwidth observed by the integrated I/O traffic controller (IIO) of IO write… 147 …Interrupts (MSI) per second sent by the integrated I/O traffic controller (IIO) to System Configur… 316 …"BriefDescription": "Uops delivered from legacy decode pipeline (Micro-instruction Translation Eng… 329 "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)", 370 …er-cases for operations that cannot be handled natively by the execution pipeline. For example; wh… [all …]
|