| /linux/Documentation/devicetree/bindings/thermal/ |
| H A D | generic-adc-thermal.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/thermal/generic-adc-thermal.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: General Purpose Analog To Digital Converter (ADC) based thermal sensor 10 - Laxman Dewangan <ldewangan@nvidia.com> 13 On some of platforms, thermal sensor like thermistors are connected to 14 one of ADC channel and sensor resistance is read via voltage across the 15 sensor resistor. The voltage read across the sensor is mapped to 16 temperature using voltage-temperature lookup table. [all …]
|
| H A D | qcom-spmi-adc-tm-hc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/thermal/qcom-spmi-adc-tm-hc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 9 - Dmitry Baryshkov <dmitry.baryshkov@linaro.org> 11 $ref: thermal-sensor.yaml# 15 const: qcom,spmi-adc-tm-hc 23 "#thermal-sensor-cells": 26 "#address-cells": 29 "#size-cells": [all …]
|
| H A D | samsung,exynos-thermal.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/thermal/samsung,exynos-thermal.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 13 For multi-instance tmu each instance should have an alias correctly numbered 19 - samsung,exynos3250-tmu 20 - samsung,exynos4412-tmu 21 - samsung,exynos4210-tmu 22 - samsung,exynos5250-tmu [all …]
|
| H A D | qcom-spmi-adc-tm5.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/thermal/qcom-spmi-adc-tm5.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 9 - Dmitry Baryshkov <dmitry.baryshkov@linaro.org> 11 $ref: thermal-sensor.yaml# 16 - qcom,spmi-adc-tm5 17 - qcom,spmi-adc-tm5-gen2 18 - qcom,adc-tm7 # Incomplete / subject to change 26 "#thermal-sensor-cells": [all …]
|
| /linux/drivers/nvme/host/ |
| H A D | hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0 19 static int nvme_get_temp_thresh(struct nvme_ctrl *ctrl, int sensor, bool under, in nvme_get_temp_thresh() argument 22 unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT; in nvme_get_temp_thresh() 32 return -EIO; in nvme_get_temp_thresh() 40 static int nvme_set_temp_thresh(struct nvme_ctrl *ctrl, int sensor, bool under, in nvme_set_temp_thresh() argument 43 unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT; in nvme_set_temp_thresh() 55 return -EIO; in nvme_set_temp_thresh() 62 return nvme_get_log(data->ctrl, NVME_NSID_ALL, NVME_LOG_SMART, 0, in nvme_hwmon_get_smart_log() 63 NVME_CSI_NVM, data->log, sizeof(*data->log), 0); in nvme_hwmon_get_smart_log() 67 u32 attr, int channel, long *val) in nvme_hwmon_read() argument [all …]
|
| /linux/Documentation/devicetree/bindings/iio/adc/ |
| H A D | adi,ad4170-4.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/adi,ad4170-4.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices AD4170-4 and similar Analog to Digital Converters 10 - Marcelo Schmitt <marcelo.schmitt@analog.com> 13 Analog Devices AD4170-4 series of Sigma-delta Analog to Digital Converters. 15 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4170-4.pdf 16 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4190-4.pdf 17 https://www.analog.com/media/en/technical-documentation/data-sheets/ad4195-4.pdf [all …]
|
| H A D | allwinner,sun8i-a33-ths.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/allwinner,sun8i-a33-ths.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Allwinner A33 Thermal Sensor 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 "#io-channel-cells": 17 "#thermal-sensor-cells": 21 const: allwinner,sun8i-a33-ths [all …]
|
| /linux/drivers/hwmon/ |
| H A D | scmi-hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * System Control and Management Interface(SCMI) based hwmon sensor driver 5 * Copyright (C) 2018-2021 ARM Ltd. 32 while (x--) in __pow10() 38 static int scmi_hwmon_scale(const struct scmi_sensor_info *sensor, u64 *value) in scmi_hwmon_scale() argument 40 int scale = sensor->scale; in scmi_hwmon_scale() 43 switch (sensor->type) { in scmi_hwmon_scale() 61 return -E2BIG; in scmi_hwmon_scale() 73 const struct scmi_sensor_info *sensor, in scmi_hwmon_read_scaled_value() argument 79 ret = sensor_ops->reading_get(ph, sensor->id, &value); in scmi_hwmon_read_scaled_value() [all …]
|
| H A D | bt1-pvt.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Baikal-T1 Process, Voltage, Temperature sensor driver 17 /* Baikal-T1 PVT registers and their bitfields */ 61 * PVT sensors-related limits and default values 70 * @PVT_TRIM_MIN: Minimal temperature sensor trim value. 71 * @PVT_TRIM_MAX: Maximal temperature sensor trim value. 72 * @PVT_TRIM_DEF: Default temperature sensor trim value (set a proper value 73 * when one is determined for Baikal-T1 SoC). 84 #define PVT_TEMP_MIN -48380L 105 * enum pvt_sensor_type - Baikal-T1 PVT sensor types (correspond to each PVT [all …]
|
| H A D | surface_temp.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Thermal sensor subsystem driver for Surface System Aggregator Module (SSAM). 5 * Copyright (C) 2022-2023 Maximilian Luz <luzmaximilian@gmail.com> 17 /* -- SAM interface. -------------------------------------------------------- */ 20 * Available sensors are indicated by a 16-bit bitfield, where a 1 marks the 21 * presence of a sensor. So we have at most 16 possible sensors/channels. 28 * the maximum zero-padded space observed in the returned buffer. 73 status = __ssam_tmp_get_temperature(sdev->ctrl, sdev->uid.target, iid, &temp_le); in ssam_tmp_get_temperature() 78 *temperature = (le16_to_cpu(temp_le) - 2731) * 100L; in ssam_tmp_get_temperature() 87 status = __ssam_tmp_get_name(sdev->ctrl, sdev->uid.target, iid, &name_rsp); in ssam_tmp_get_name() [all …]
|
| H A D | asus_wmi_sensors.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * HWMON driver for ASUS motherboards that provides sensor readouts via WMI 6 * Copyright (C) 2018-2019 Ed Brindley <kernel@maidavale.org> 9 * - CPU Core Voltage, 10 * - CPU SOC Voltage, 11 * - DRAM Voltage, 12 * - VDDP Voltage, 13 * - 1.8V PLL Voltage, 14 * - +12V Voltage, 15 * - +5V Voltage, [all …]
|
| H A D | nct7904.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * nct7904.c - driver for Nuvoton NCT7904D. 59 #define VSEN1_HV_LL_REG 0x02 /* Bank 1; 2 regs (HV/LV) per sensor */ 60 #define VSEN1_LV_LL_REG 0x03 /* Bank 1; 2 regs (HV/LV) per sensor */ 61 #define VSEN1_HV_HL_REG 0x00 /* Bank 1; 2 regs (HV/LV) per sensor */ 62 #define VSEN1_LV_HL_REG 0x01 /* Bank 1; 2 regs (HV/LV) per sensor */ 69 #define VSEN1_HV_REG 0x40 /* Bank 0; 2 regs (HV/LV) per sensor */ 79 #define TEMP_CH1_C_REG 0x04 /* Bank 1; 1 reg per sensor */ 80 #define DTS_T_CPU1_C_REG 0x90 /* Bank 1; 1 reg per sensor */ 81 #define DTS_T_CPU1_CH_REG 0x91 /* Bank 1; 1 reg per sensor */ [all …]
|
| /linux/drivers/iio/temperature/ |
| H A D | ltc2983.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Analog Devices LTC2983 Multi-Sensor Digital Temperature Measurement System 60 (((chan - 1) * 4) + LTC2983_CHAN_ASSIGN_START_REG) 62 (((chan - 1) * 4) + LTC2983_TEMP_RES_START_REG) 192 container_of(_sensor, struct ltc2983_thermocouple, sensor) 195 container_of(_sensor, struct ltc2983_rtd, sensor) 198 container_of(_sensor, struct ltc2983_thermistor, sensor) 201 container_of(_sensor, struct ltc2983_diode, sensor) 204 container_of(_sensor, struct ltc2983_rsense, sensor) 207 container_of(_sensor, struct ltc2983_adc, sensor) [all …]
|
| /linux/Documentation/devicetree/bindings/hwmon/ |
| H A D | ti,tmp421.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: TMP42x/TMP44x temperature sensor 10 - Guenter Roeck <linux@roeck-us.net> 13 ±1°C Remote and Local temperature sensor 19 - ti,tmp421 20 - ti,tmp422 21 - ti,tmp423 22 - ti,tmp441 [all …]
|
| H A D | ti,tmp464.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Guenter Roeck <linux@roeck-us.net> 13 ±0.0625°C Remote and Local temperature sensor 20 - ti,tmp464 21 - ti,tmp468 26 '#address-cells': 29 '#size-cells': 33 - compatible [all …]
|
| /linux/drivers/accel/habanalabs/common/ |
| H A D | hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright 2016-2019 HabanaLabs, Ltd. 49 dev_err_ratelimited(hdev->dev, "unsupported h/w sensor type %d\n", type); in fixup_flags_legacy_fw() 59 return (attr - 1); in fixup_attr_legacy_fw() 82 use_cpucp_enum = (hdev->asic_prop.fw_app_cpu_boot_dev_sts0 & in adjust_hwmon_flags() 137 dev_err_ratelimited(hdev->dev, "unsupported h/w sensor type %d\n", type); in adjust_hwmon_flags() 165 dev_err_ratelimited(hdev->dev, in hl_build_hwmon_channel_info() 166 "Got wrong sensor type %d from device\n", type); in hl_build_hwmon_channel_info() 167 return -EINVAL; in hl_build_hwmon_channel_info() 179 dev_dbg(hdev->dev, "num_sensors_for_type %d = %d\n", i, num_sensors_for_type); in hl_build_hwmon_channel_info() [all …]
|
| /linux/drivers/thermal/ |
| H A D | armada_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Marvell EBU Armada SoCs thermal sensor driver 65 /* Marvell EBU Thermal Sensor Dev Structure */ 85 /* Formula coeficients: temp = (b - m * reg) / div */ 92 /* Register shift and mask to access the sensor temperature */ 110 /* One sensor is in the thermal IC, the others are in the CPUs if any */ 126 * struct armada_thermal_sensor - hold the information of one thermal sensor 129 * @id: identifier of the thermal sensor 139 struct armada_thermal_data *data = priv->data; in armadaxp_init() 142 regmap_read(priv->syscon, data->syscon_control1_off, ®); in armadaxp_init() [all …]
|
| /linux/include/linux/platform_data/ |
| H A D | apds990x.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * This file is part of the APDS990x sensor driver. 4 * Chip is combined proximity and ambient light sensor. 6 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 21 * struct apds990x_chip_factors - defines effect of the cover window 23 * @cf1: clear channel factor 1 for raw to lux conversion 24 * @irf1: IR channel factor 1 for raw to lux conversion 25 * @cf2: clear channel factor 2 for raw to lux conversion 26 * @irf2: IR channel factor 2 for raw to lux conversion 30 * Values depend on the material above the sensor and the sensor [all …]
|
| /linux/Documentation/devicetree/bindings/iio/light/ |
| H A D | capella,cm3605.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 Capella Microsystems CM3605 Ambient Light and Short Distance Proximity Sensor 11 - Linus Walleij <linus.walleij@linaro.org> 12 - Kevin Tsai <ktsai@capellamicro.com> 18 This ALS and proximity sensor was one of the very first deployed in mobile 26 aset-gpios: 35 Connected to the POUT (proximity sensor out) line. The edge 37 movements toward and away from the proximity sensor. [all …]
|
| H A D | sharp,gp2ap002.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 13 Proximity and ambient light sensor with IR LED for the proximity 15 sensor output is not available on the GP2AP002S00F variant. 20 - sharp,gp2ap002a00f 21 - sharp,gp2ap002s00f 30 vdd-supply: 33 vio-supply: [all …]
|
| /linux/drivers/comedi/drivers/ |
| H A D | jr3_pci.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 30 * format for a single channel of data. Each channel takes four, 31 * two-byte words. 38 * Raw_data is the raw data received directly from the sensor. The 39 * sensor data stream is capable of representing 16 different 40 * channels. Channel 0 shows the excitation voltage at the sensor. It 42 * Channels 1-6 contain the coupled force data Fx through Mz. Channel 43 * 7 contains the sensor's calibration data. The use of channels 8-15 139 * was detected in the on-board RAM during the power-up 140 * initialization. The sensor_change bit indicates that a sensor other [all …]
|
| /linux/drivers/iio/pressure/ |
| H A D | cros_ec_baro.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * cros_ec_baro - Driver for barometer sensor behind CrosEC. 25 * One channel for pressure, the other for timestamp. 44 int idx = chan->scan_index; in cros_ec_baro_read() 46 mutex_lock(&st->core.cmd_lock); in cros_ec_baro_read() 59 st->core.param.cmd = MOTIONSENSE_CMD_SENSOR_RANGE; in cros_ec_baro_read() 60 st->core.param.sensor_range.data = EC_MOTION_SENSE_NO_VALUE; in cros_ec_baro_read() 62 ret = cros_ec_motion_send_host_cmd(&st->core, 0); in cros_ec_baro_read() 66 *val = st->core.resp->sensor_range.ret; in cros_ec_baro_read() 68 /* scale * in_pressure_raw --> kPa */ in cros_ec_baro_read() [all …]
|
| /linux/Documentation/devicetree/bindings/firmware/ |
| H A D | fsl,scu.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Dong Aisheng <aisheng.dong@nxp.com> 13 The System Controller Firmware (SCFW) is a low-level system function 14 which runs on a dedicated Cortex-M core to provide power, clock, and 17 The AP communicates with the SC using a multi-ported MU module found 26 const: fsl,imx-scu 28 clock-controller: 31 $ref: /schemas/clock/fsl,scu-clk.yaml [all …]
|
| /linux/Documentation/devicetree/bindings/iio/afe/ |
| H A D | temperature-sense-rtd.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/afe/temperature-sense-rtd.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Liam Beguin <liambeguin@gmail.com> 17 When an io-channel measures the output voltage across an RTD such as a 25 T = 1 / (alpha * r0 * iexc) * (V - r0 * iexc) 30 ----- 32 +---+----+ 34 +---+----+ [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-iio-adc-hi8435 | 6 Program sensor type for threshold detector inputs. 7 Could be either "GND-Open" or "Supply-Open" mode. Y is a 8 threshold detector input channel. Channels 0..7, 8..15, 16..23 9 and 24..31 has common sensor types. 16 Channel Y low voltage threshold. If sensor input voltage goes lower then 19 is separately set for "GND-Open" and "Supply-Open" modes. 35 Channel Y high voltage threshold. If sensor input voltage goes higher then 38 is separately set for "GND-Open" and "Supply-Open" modes.
|