Home
last modified time | relevance | path

Searched +full:sensor +full:- +full:channel (Results 1 – 25 of 1006) sorted by relevance

12345678910>>...41

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/
Dtrivial-devices.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/trivial-devices.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rob Herring <robh@kernel.org>
27 spi-max-frequency: true
31 - enum:
33 - acbel,fsg032
34 … # SMBus/I2C Digital Temperature Sensor in 6-Pin SOT with SMBus Alert and Over Temperature Pin
35 - ad,ad7414
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/thermal/
Dgeneric-adc-thermal.yaml1 # 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 …]
Dqcom-spmi-adc-tm-hc.yaml1 # 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>
13 const: qcom,spmi-adc-tm-hc
21 "#thermal-sensor-cells":
27 "#address-cells":
30 "#size-cells":
33 qcom,avg-samples:
[all …]
/kernel/linux/linux-6.6/drivers/nvme/host/
Dhwmon.c1 // 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 …]
/kernel/linux/linux-5.10/drivers/nvme/host/
Dhwmon.c1 // 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 …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/hwmon/
Dnuvoton,nct7802.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Guenter Roeck <linux@roeck-us.net>
14 The NCT7802Y is a hardware monitor IC which supports one on-die and up to
18 https://www.nuvoton.com/export/resource-files/Nuvoton_NCT7802Y_Datasheet_V12.pdf
25 - nuvoton,nct7802
30 "#address-cells":
33 "#size-cells":
37 "^channel@[0-3]$":
[all …]
Dti,tmp421.yaml1 # 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 …]
/kernel/linux/linux-6.6/drivers/hwmon/
Daquacomputer_d5next.c1 // SPDX-License-Identifier: GPL-2.0+
7 * sensor values, except for devices that communicate through the
97 /* Info, sensor sizes and offsets for most Aquacomputer devices */
122 /* Sensor report offsets for Aquaero fan controllers */
146 /* Sensor report offsets for the D5 Next pump */
157 #define D5NEXT_TEMP_CTRL_OFFSET 0x2D /* Temperature sensor offsets location */
158 static u16 d5next_ctrl_fan_offsets[] = { 0x97, 0x42 }; /* Pump and fan speed (from 0-100%) */
165 /* Sensor report offsets for the Aquastream Ultimate pump */
180 /* Spec and sensor report offset for the Farbwerk RGB controller */
189 /* Sensor report offsets for the Farbwerk 360 */
[all …]
Dscmi-hwmon.c1 // 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 …]
Dbt1-pvt.h1 /* 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 …]
/kernel/linux/linux-5.10/drivers/hwmon/
Dscmi-hwmon.c1 // SPDX-License-Identifier: GPL-2.0
3 * System Control and Management Interface(SCMI) based hwmon sensor driver
25 while (x--) in __pow10()
31 static int scmi_hwmon_scale(const struct scmi_sensor_info *sensor, u64 *value) in scmi_hwmon_scale() argument
33 s8 scale = sensor->scale; in scmi_hwmon_scale()
36 switch (sensor->type) { in scmi_hwmon_scale()
54 return -E2BIG; in scmi_hwmon_scale()
66 u32 attr, int channel, long *val) in scmi_hwmon_read() argument
70 const struct scmi_sensor_info *sensor; in scmi_hwmon_read() local
72 const struct scmi_handle *h = scmi_sensors->handle; in scmi_hwmon_read()
[all …]
Dbt1-pvt.h1 /* 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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/thermal/
Dthermal-generic-adc.txt1 General Purpose Analog To Digital Converter (ADC) based thermal sensor.
3 On some of platforms, thermal sensor like thermistors are connected to
4 one of ADC channel and sensor resistance is read via voltage across the
5 sensor resistor. The voltage read across the sensor is mapped to
6 temperature using voltage-temperature lookup table.
10 - compatible: Must be "generic-adc-thermal".
11 - #thermal-sensor-cells: Should be 1. See Documentation/devicetree/bindings/thermal/thermal-sen…
15 - temperature-lookup-table: Two dimensional array of Integer; lookup table
25 If not specified, driver assumes the ADC channel
29 #include <dt-bindings/thermal/thermal.h>
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/
Dtrivial-devices.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/trivial-devices.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rob Herring <robh@kernel.org>
28 - enum:
29 … # SMBus/I2C Digital Temperature Sensor in 6-Pin SOT with SMBus Alert and Over Temperature Pin
30 - ad,ad7414
31 # ADM9240: Complete System Hardware Monitor for uProcessor-Based Systems
32 - ad,adm9240
[all …]
/kernel/linux/linux-6.6/Documentation/hwmon/
Dhwmon-kernel-api.rst7 ------------
15 then please read the following file: Documentation/hwmon/sysfs-interface.rst.
18 also read Documentation/hwmon/submitting-patches.rst.
21 -------
23 cases, <linux/hwmon-sysfs.h>. linux/hwmon.h declares the following
73 names. Device names including invalid characters (whitespace, '*', or '-')
89 --------------------------------------------
99 `const struct attribute_group **extra_groups` Null-terminated list of additional non-standard
118 NULL-terminated list of device channel descriptors.
145 Each sensor channel is described with struct hwmon_channel_info, which is
[all …]
/kernel/linux/linux-5.10/Documentation/hwmon/
Dhwmon-kernel-api.rst7 ------------
15 then please read the following file: Documentation/hwmon/sysfs-interface.rst.
18 also read Documentation/hwmon/submitting-patches.rst.
21 -------
23 cases, <linux/hwmon-sysfs.h>. linux/hwmon.h declares the following
75 The parent device parameter cannot be NULL with non-NULL chip info. Its
95 names. Device names including invalid characters (whitespace, '*', or '-')
99 --------------------------------------------
109 `const struct attribute_group **extra_groups` Null-terminated list of additional non-standard
128 NULL-terminated list of device channel descriptors.
[all …]
/kernel/linux/linux-6.6/Documentation/driver-api/iio/
Dcore.rst8 :file:`drivers/iio/industrialio-*`
11 ----------------------
13 * struct iio_dev - industrial I/O device
14 * iio_device_alloc() - allocate an :c:type:`iio_dev` from a driver
15 * iio_device_free() - free an :c:type:`iio_dev` from a driver
16 * iio_device_register() - register a device with the IIO subsystem
17 * iio_device_unregister() - unregister a device from the IIO
20 An IIO device usually corresponds to a single hardware sensor and it
27 1. :file:`/sys/bus/iio/iio:device{X}/`, this represents a hardware sensor
63 :file:`Documentation/ABI/testing/sysfs-bus-iio` file in the Linux kernel
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/iio/
Dcore.rst8 :file:`drivers/iio/industrialio-*`
11 ----------------------
13 * struct iio_dev - industrial I/O device
14 * iio_device_alloc() - allocate an :c:type:`iio_dev` from a driver
15 * iio_device_free() - free an :c:type:`iio_dev` from a driver
16 * iio_device_register() - register a device with the IIO subsystem
17 * iio_device_unregister() - unregister a device from the IIO
20 An IIO device usually corresponds to a single hardware sensor and it
27 1. :file:`/sys/bus/iio/iio:device{X}/`, this represents a hardware sensor
63 :file:`Documentation/ABI/testing/sysfs-bus-iio` file in the Linux kernel
[all …]
/kernel/linux/linux-6.6/include/linux/platform_data/
Dapds990x.h1 /* 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 …]
/kernel/linux/linux-5.10/include/linux/platform_data/
Dapds990x.h1 /* 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 …]
/kernel/linux/linux-6.6/drivers/accel/habanalabs/common/
Dhwmon.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright 2016-2019 HabanaLabs, Ltd.
49 dev_err(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(hdev->dev, "unsupported h/w sensor type %d\n", type); in adjust_hwmon_flags()
165 dev_err(hdev->dev, "Got wrong sensor type %d from device\n", type); in hl_build_hwmon_channel_info()
166 return -EINVAL; in hl_build_hwmon_channel_info()
178 dev_dbg(hdev->dev, "num_sensors_for_type %d = %d\n", i, num_sensors_for_type); in hl_build_hwmon_channel_info()
182 rc = -ENOMEM; in hl_build_hwmon_channel_info()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dhwmon.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 hwmon.h - part of lm_sensors, Linux kernel modules for hardware monitoring
350 * struct hwmon_ops - hwmon device operations
354 * Pointer to driver-private data structure passed
356 * @type: Sensor type
357 * @attr: Sensor attribute
358 * @channel:
359 * Channel number
366 * @type: Sensor type
367 * @attr: Sensor attribute
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/light/
Dcapella,cm3605.yaml1 # 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 …]
/kernel/linux/linux-5.10/drivers/thermal/
Darmada_thermal.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Marvell EBU Armada SoCs thermal sensor driver
67 /* Marvell EBU Thermal Sensor Dev Structure */
87 /* Formula coeficients: temp = (b - m * reg) / div */
94 /* Register shift and mask to access the sensor temperature */
112 /* One sensor is in the thermal IC, the others are in the CPUs if any */
128 * struct armada_thermal_sensor - hold the information of one thermal sensor
131 * @id: identifier of the thermal sensor
141 struct armada_thermal_data *data = priv->data; in armadaxp_init()
144 regmap_read(priv->syscon, data->syscon_control1_off, &reg); in armadaxp_init()
[all …]
Drockchip_thermal.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2014-2016, Fuzhou Rockchip Electronics Co., Ltd
4 * Caesar Wang <wxt@rock-chips.com>
65 * Two sensors: CPU and GPU sensor.
70 * struct chip_tsadc_table - hold information about chip-specific differences
84 * struct rockchip_tsadc_chip - hold the private data of tsadc chip
85 * @chn_id: array of sensor ids of chip corresponding to the channel
86 * @chn_num: the channel number of tsadc chip
87 * @tshut_temp: the hardware-controlled shutdown temperature value
88 * @tshut_mode: the hardware-controlled shutdown mode (0:CRU 1:GPIO)
[all …]

12345678910>>...41