| /linux/Documentation/devicetree/bindings/soc/mediatek/ |
| H A D | mtk-svs.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/soc/mediatek/mtk-svs.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Roger Lu <roger.lu@mediatek.com> 11 - Matthias Brugger <matthias.bgg@gmail.com> 12 - Kevin Hilman <khilman@kernel.org> 24 - mediatek,mt8183-svs 25 - mediatek,mt8186-svs 26 - mediatek,mt8188-svs [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-driver-hid-wiimote | 24 Starting with kernel-version 3.11 Motion Plus hotplugging is 26 extension. You will get uevent notifications for the motion-plus 37 device couldn't be detected or loaded. "generic" means, that the 38 device couldn't be detected but supports basic Wii Remote 40 Other strings for each device-type are available and may be 41 added if new device-specific detections are added. 56 balance board. It provides a single line with 3 calibration 63 Calibration data is already applied by the kernel to all input 64 values but may be used by user-space to perform other 72 pro-controller. It provides a single line with 4 calibration [all …]
|
| H A D | sysfs-bus-iio-bno055 | 3 Contact: linux-iio@vger.kernel.org 6 application of scale is m/s^2. Note that this doesn't affects 12 Contact: linux-iio@vger.kernel.org 21 Contact: linux-iio@vger.kernel.org 27 Contact: linux-iio@vger.kernel.org 33 Contact: linux-iio@vger.kernel.org 36 Calibration" HW function. 40 Contact: linux-iio@vger.kernel.org 47 Contact: linux-iio@vger.kernel.org 49 Reports the binary calibration data blob for the IMU sensors. [all …]
|
| /linux/drivers/net/wireless/ath/ath5k/ |
| H A D | phy.c | 2 * Copyright (c) 2004-2007 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2009 Nick Kossifidis <mickflemm@gmail.com> 4 * Copyright (c) 2007-2008 Jiri Slaby <jirislaby@gmail.com> 5 * Copyright (c) 2008-2009 Felix Fietkau <nbd@openwrt.org> 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 42 * Here we handle the low-level functions related to baseband 48 * - Channel setting/switching 50 * - Automatic Gain Control (AGC) calibration 52 * - Noise Floor calibration 54 * - I/Q imbalance calibration (QAM correction) [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | cs-amp-lib.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 #include <sound/cs-amp-lib.h> 60 mutex_lock(&dsp->pwr_lock); in _cs_amp_write_cal_coeffs() 61 cs_ctl = cs_dsp_get_ctl(dsp, ctl_name, controls->mem_region, controls->alg_id); in _cs_amp_write_cal_coeffs() 63 mutex_unlock(&dsp->pwr_loc in _cs_amp_write_cal_coeffs() 53 _cs_amp_write_cal_coeffs(struct cs_dsp * dsp,const struct cirrus_amp_cal_controls * controls,const struct cirrus_amp_cal_data * data) _cs_amp_write_cal_coeffs() argument 94 cs_amp_write_cal_coeffs(struct cs_dsp * dsp,const struct cirrus_amp_cal_controls * controls,const struct cirrus_amp_cal_data * data) cs_amp_write_cal_coeffs() argument 122 u8 *data; cs_amp_get_cal_efi_buffer() local 166 cs_amp_cal_target_u64(const struct cirrus_amp_cal_data * data) cs_amp_cal_target_u64() argument [all...] |
| /linux/drivers/thermal/mediatek/ |
| H A D | auxadc_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/nvmem-consumer.h> 115 /* The calibration coefficient of sensor */ 119 #define MT8173_TEMP_MIN -20000 123 * Layout of the fuses providing the calibration data 125 * MT8183 has 6 sensors and needs 6 VTS calibration data. 126 * MT8173 has 5 sensors and needs 5 VTS calibration data. 127 * MT2701 has 3 sensors and needs 3 VTS calibration data. 128 * MT2712 has 4 sensors and needs 4 VTS calibration data. 144 * Layout of the fuses providing the calibration data [all …]
|
| /linux/Documentation/devicetree/bindings/net/wireless/ |
| H A D | qcom,ath10k.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 Johnson <jjohnson@kernel.org> 18 - qcom,ath10k # SDIO-based devices 19 - qcom,ipq4019-wifi 20 - qcom,wcn3990-wifi # SNoC-based devices 25 reg-names: 27 - const: membase 33 interrupt-names: [all …]
|
| /linux/Documentation/devicetree/bindings/mtd/partitions/ |
| H A D | tplink,safeloader-partitions.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mtd/partitions/tplink,safeloader-partitions.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TP-Link SafeLoader partitions 10 TP-Link home routers store various data on flash (e.g. bootloader, 11 flash layout, firmware, product info, configuration, calibration 12 data). That requires flash partitioning. 14 Flash space layout of TP-Link devices is stored on flash itself using 15 a custom ASCII-based format. That format was first found in TP-Link [all …]
|
| /linux/drivers/rtc/ |
| H A D | rtc-tps6594.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2023 BayLibre Incorporated - https://www.baylibre.com/ 26 #define NUM_TIME_REGS (TPS6594_REG_RTC_WEEKS - TPS6594_REG_RTC_SECONDS + 1) 29 #define NUM_TIME_ALARM_REGS (NUM_TIME_REGS - 1) 33 * After conversion, the values do not exceed the range [-32767, 33767] 36 #define MIN_OFFSET (-277774) 53 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_alarm_irq_enable() 58 return regmap_update_bits(tps->regmap, TPS6594_REG_RTC_INTERRUPTS, in tps6594_rtc_alarm_irq_enable() 69 * an up-to-date timestamp. in tps6594_rtc_shadow_timestamp() 71 ret = regmap_clear_bits(tps->regmap, TPS6594_REG_RTC_CTRL_1, in tps6594_rtc_shadow_timestamp() [all …]
|
| /linux/drivers/comedi/drivers/ |
| H A D | cb_pcidda.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Driver for the ComputerBoards / MeasurementComputing PCI-DDA series. 9 * COMEDI - Linux Control and Measurement Device Interface 10 * Copyright (C) 1997-8 David A. Schleef <ds@schleef.org> 15 * Description: MeasurementComputing PCI-DDA series 16 * Devices: [Measurement Computing] PCI-DDA08/12 (pci-dda08/12), 17 * PCI-DDA04/12 (pci-dda04/12), PCI-DDA02/12 (pci-dda02/12), 18 * PCI-DDA08/16 (pci-dda08/16), PCI-DDA04/16 (pci-dda04/16), 19 * PCI-DDA02/16 (pci-dda02/16) 51 #define DACALIBRATION1 4 /* D/A CALIBRATION REGISTER 1 */ [all …]
|
| /linux/drivers/thermal/st/ |
| H A D | st_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (C) 2003-2014 STMicroelectronics (R&D) Limited 26 struct device *dev = sensor->dev; in st_thermal_alloc_regfields() 27 struct regmap *regmap = sensor->regmap; in st_thermal_alloc_regfields() 28 const struct reg_field *reg_fields = sensor->cdata->reg_fields; in st_thermal_alloc_regfields() 30 sensor->dcorrect = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields() 33 sensor->overflow = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields() 36 sensor->temp_data = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields() 37 reg_fields[DATA]); in st_thermal_alloc_regfields() 39 if (IS_ERR(sensor->dcorrect) || in st_thermal_alloc_regfields() [all …]
|
| /linux/Documentation/driver-api/firmware/ |
| H A D | built-in-fw.rst | 2 Built-in firmware 5 Firmware can be built-in to the kernel, this means building the firmware 8 directly. You can enable built-in firmware using the kernel configuration 18 * Firmware is needed for accessing the boot device, and the user doesn't 22 able to make use of built-in firmware: 24 * Legalese - firmware is non-GPL compatible 28 * Some firmware files may be really large in size. The remote-proc subsystem 31 dynamically, an example is calibration data for some WiFi chipsets. This 32 calibration data can be unique per sold device.
|
| /linux/Documentation/admin-guide/thermal/ |
| H A D | intel_powerclamp.rst | 6 - Arjan van de Ven <arjan@linux.intel.com> 7 - Jacob Pan <jacob.jun.pan@linux.intel.com> 12 - Goals and Objectives 15 - Idle Injection 16 - Calibration 19 - Effectiveness and Limitations 20 - Power vs Performance 21 - Scalability 22 - Calibration 23 - Comparison with Alternative Techniques [all …]
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | link.c | 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 20 * TX polling - checks if the TX engine is stuck somewhere 28 if (sc->tx99_state) in ath_tx_complete_check() 32 txq = sc->tx.txq_map[i]; in ath_tx_complete_check() 35 if (txq->axq_depth) { in ath_tx_complete_check() 36 if (txq->axq_tx_inprogress) { in ath_tx_complete_check() 41 txq->axq_tx_inprogress = true; in ath_tx_complete_check() 49 ath_dbg(ath9k_hw_common(sc->sc_ah), RESET, in ath_tx_complete_check() 59 struct ath_common *common = ath9k_hw_common(sc->sc_ah); in ath_hw_rx_inactive_check() 62 interval = jiffies_to_msecs(jiffies - sc->rx_active_check_time); in ath_hw_rx_inactive_check() [all …]
|
| H A D | ath9k_pci_owl_loader.c | 1 // SPDX-License-Identifier: ISC 10 * However, this isn't possible for devices which have the init code for the 12 * initialize the chip when the user-space is ready to extract the init code. 21 #include <linux/nvmem-consumer.h> 44 } __packed * data; in ath9k_pci_fixup() local 51 dev_err(&pdev->dev, "eeprom has an invalid size.\n"); in ath9k_pci_fixup() 52 return -EINVAL; in ath9k_pci_fixup() 57 dev_err(&pdev->dev, "invalid calibration data\n"); in ath9k_pci_fixup() 58 return -EINVAL; in ath9k_pci_fixup() 61 dev_dbg(&pdev->dev, "calibration data needs swapping\n"); in ath9k_pci_fixup() [all …]
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | core.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 6 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. 18 #include <linux/nvmem-consumer.h> 30 #include "wmi-ops.h" 59 MODULE_PARM_DESC(skip_otp, "Skip otp failure for calibration in testmode"); 60 MODULE_PARM_DESC(cryptmode, "Crypto mode: 0-hardware, 1-software"); 476 * or 2x2 160Mhz, long-guard-interval. [all …]
|
| /linux/tools/testing/selftests/hid/tests/ |
| H A D | test_sony.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8 -*- 44 for x in range(-32000, 32000, 4000): 52 # to inverse calibration, followed by calibration by hid-sony. 53 assert x - 1 <= value <= x + 1 55 for y in range(-32000, 32000, 4000): 62 assert y - 1 <= value <= y + 1 64 for z in range(-32000, 32000, 4000): 71 assert z - 1 <= value <= z + 1 77 for rx in range(-2000000, 2000000, 200000): [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-nintendo.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * HID driver for Nintendo Switch Joy-Cons and Pro Controllers 5 * Copyright (c) 2019-2021 Daniel J. Ogorchock <djogorchock@gmail.com> 12 * https://gitlab.com/pjranki/joycon-linux-kernel (Peter Rankin) 16 * hid-wiimote kernel hid driver 17 * hid-logitech-hidpp driver 18 * hid-sony driver 20 * This driver supports the Nintendo Switch Joy-Cons and Pro Controllers. The 26 * The driver will retrieve the factory calibration info from the controllers, 27 * so little to no user calibration should be required. [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | twl6030-gpadc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2009-2013 Texas Instruments Inc. 7 * Balaji T K <balajitk@ti.com> 13 * Based on twl4030-madc.c 74 * struct twl6030_chnl_calib - channel calibration 86 * struct twl6030_ideal_code - GPADC calibration parameters 107 * struct twl6030_gpadc_platform_data - platform specific data 110 * @ideal: pointer to calibration parameters 114 * @calibrate: pointer to calibration function 126 * struct twl6030_gpadc_data - GPADC data [all …]
|
| /linux/Documentation/misc-devices/ |
| H A D | apds990x.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 Data sheet: 17 ----------- 32 lead to false interrupt, but that doesn't harm. 38 Platform data can provide tuned values to the conversion formulas if 48 ----- 52 RO - shows detected chip type and version 55 RW - enable / disable chip. Uses counting logic 60 RO - measured lux value 65 RO - lux0_input max value. [all …]
|
| /linux/drivers/phy/mediatek/ |
| H A D | phy-mtk-mipi-dsi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include "phy-mtk-mipi-dsi.h" 18 dev_dbg(mipi_tx->dev, "set rate: %lu Hz\n", rate); in mtk_mipi_tx_pll_set_rate() 20 mipi_tx->data_rate = rate; in mtk_mipi_tx_pll_set_rate() 30 return mipi_tx->data_rate; in mtk_mipi_tx_pll_recalc_rate() 39 ret = clk_prepare_enable(mipi_tx->pll_hw.clk); in mtk_mipi_tx_power_on() 44 mipi_tx->driver_data->mipi_tx_enable_signal(phy); in mtk_mipi_tx_power_on() 53 mipi_tx->driver_data->mipi_tx_disable_signal(phy); in mtk_mipi_tx_power_off() 56 clk_disable_unprepare(mipi_tx->pll_hw.clk); in mtk_mipi_tx_power_off() 73 cell = nvmem_cell_get(mipi_tx->dev, "calibration-data"); in mtk_mipi_tx_get_calibration_datal() [all …]
|
| /linux/drivers/iio/pressure/ |
| H A D | dps310.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 * - Optionally support the FIFO 61 #define DPS310_POLL_SLEEP_US(t) min(30000, (t) / 8) argument 111 static int dps310_get_coefs(struct dps310_data *data) in dps310_get_coefs() argument 118 /* Read all sensor calibration coefficients from the COEF registers. */ in dps310_get_coefs() 119 rc = regmap_bulk_read(data->regmap, DPS310_COEF_BASE, coef, in dps310_get_coefs() 125 * Calculate temperature calibration coefficients c0 and c1. The in dps310_get_coefs() 126 * numbers are 12-bit 2's complement numbers. in dps310_get_coefs() 129 data->c0 = sign_extend32(c0, 11); in dps310_get_coefs() 132 data->c1 = sign_extend32(c1, 11); in dps310_get_coefs() [all …]
|
| /linux/drivers/memory/ |
| H A D | emif.c | 1 // SPDX-License-Identifier: GPL-2.0-only 33 * struct emif_data - Per device static data for driver's use 38 * to this EMIF - read from MR4 register. If there 44 * @base: base address of memory-mapped IO registers. 48 * frequencies, to avoid re-calculating them on 53 * @plat_data: Pointer to saved platform data. 78 u32 type = emif->plat_data->device_info->type; in do_emif_regdump_show() 79 u32 ip_rev = emif->plat_data->ip_rev; in do_emif_regdump_show() 82 regs->freq/1000000); in do_emif_regdump_show() 84 seq_printf(s, "ref_ctrl_shdw\t: 0x%08x\n", regs->ref_ctrl_shdw); in do_emif_regdump_show() [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/ |
| H A D | iwl-phy-db.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2005-2014, 2020-2021 Intel Corporation 10 #include "iwl-drv.h" 11 #include "iwl-phy-db.h" 12 #include "iwl-debug.h" 13 #include "iwl-op-mode.h" 14 #include "iwl-trans.h" 18 u8 *data; member 22 * struct iwl_phy_db - stores phy configuration and calibration data. 25 * @calib_nch: non channel specific calibration data. [all …]
|
| /linux/drivers/thermal/tegra/ |
| H A D | tegra30-tsensor.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * Copyright (C) 2021 GRATE-DRIVER project 95 err = reset_control_assert(ts->rst); in tegra_tsensor_hw_enable() 97 dev_err(ts->dev, "failed to assert hardware reset: %d\n", err); in tegra_tsensor_hw_enable() 101 err = clk_prepare_enable(ts->clk); in tegra_tsensor_hw_enable() 103 dev_err(ts->dev, "failed to enable clock: %d\n", err); in tegra_tsensor_hw_enable() 109 err = reset_control_deassert(ts->rst); in tegra_tsensor_hw_enable() 111 dev_err(ts->dev, "failed to deassert hardware reset: %d\n", err); in tegra_tsensor_hw_enable() 128 writel_relaxed(val, ts->regs + 0x40 + TSENSOR_SENSOR0_CONFIG0); in tegra_tsensor_hw_enable() 129 writel_relaxed(val, ts->regs + 0x80 + TSENSOR_SENSOR0_CONFIG0); in tegra_tsensor_hw_enable() [all …]
|