Home
last modified time | relevance | path

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

12345678910>>...44

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/temperature/
Dadi,ltc2983.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices LTC2983, LTC2986, LTM2985 Multi-sensor Temperature system
10 - Nuno Sá <nuno.sa@analog.com>
13 Analog Devices LTC2983, LTC2984, LTC2986, LTM2985 Multi-Sensor Digital
16 https://www.analog.com/media/en/technical-documentation/data-sheets/2983fc.pdf
17 https://www.analog.com/media/en/technical-documentation/data-sheets/2984fb.pdf
18 https://www.analog.com/media/en/technical-documentation/data-sheets/29861fa.pdf
19 https://www.analog.com/media/en/technical-documentation/data-sheets/ltm2985.pdf
[all …]
/kernel/linux/linux-6.6/drivers/hwmon/
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 …]
Dasus_wmi_sensors.c1 // 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 …]
Dibmpowernv.c1 // SPDX-License-Identifier: GPL-2.0-or-later
14 #include <linux/hwmon-sysfs.h>
27 /* Sensor suffix name from DT */
46 #define INVALID_INDEX (-1U)
49 * 'compatible' string properties for sensor types as defined in old
53 "ibm,opal-sensor-cooling-fan",
54 "ibm,opal-sensor-amb-temp",
55 "ibm,opal-sensor-power-supply",
56 "ibm,opal-sensor-power"
60 const char *name; /* matches property 'sensor-type' */
[all …]
Dasus_atk0110.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2007-2009 Luca Tettamanti <kronos.it@gmail.com>
35 /* Old interface reads the same sensor for fan0 and fan1 */
161 u64 type; member
172 * [0-3] "value" is valid flag
173 * [4-7] value
174 * [8- ] unknown stuff on newer mobos
192 static int atk_read_value(struct atk_sensor_data *sensor, u64 *value);
227 if (s->type == HWMON_TYPE_TEMP) in atk_input_show()
239 return sprintf(buf, "%s\n", s->acpi_name); in atk_label_show()
[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()
65 static int scmi_hwmon_read(struct device *dev, enum hwmon_sensor_types type, 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 …]
Dibmpowernv.c1 // SPDX-License-Identifier: GPL-2.0-or-later
14 #include <linux/hwmon-sysfs.h>
27 /* Sensor suffix name from DT */
46 #define INVALID_INDEX (-1U)
49 * 'compatible' string properties for sensor types as defined in old
53 "ibm,opal-sensor-cooling-fan",
54 "ibm,opal-sensor-amb-temp",
55 "ibm,opal-sensor-power-supply",
56 "ibm,opal-sensor-power"
60 const char *name; /* matches property 'sensor-type' */
[all …]
Dasus_atk0110.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2007-2009 Luca Tettamanti <kronos.it@gmail.com>
35 /* Old interface reads the same sensor for fan0 and fan1 */
161 u64 type; member
172 * [0-3] "value" is valid flag
173 * [4-7] value
174 * [8- ] unknown stuff on newer mobos
192 static int atk_read_value(struct atk_sensor_data *sensor, u64 *value);
227 if (s->type == HWMON_TYPE_TEMP) in atk_input_show()
239 return sprintf(buf, "%s\n", s->acpi_name); in atk_label_show()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/
Dbase.c34 enum nvbios_extdev_type type) in nvkm_iccsense_validate_device() argument
36 switch (type) { in nvkm_iccsense_validate_device()
57 return -EINVAL; in nvkm_iccsense_poll_lane()
70 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr, in nvkm_iccsense_ina2x9_read()
71 shunt_reg, 0, bus_reg, 3, rail->mohm, in nvkm_iccsense_ina2x9_read()
93 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr, in nvkm_iccsense_ina3221_read()
94 1 + (rail->idx * 2), 3, in nvkm_iccsense_ina3221_read()
95 2 + (rail->idx * 2), 3, rail->mohm, in nvkm_iccsense_ina3221_read()
101 struct nvkm_iccsense_sensor *sensor) in nvkm_iccsense_sensor_config() argument
103 struct nvkm_subdev *subdev = &iccsense->subdev; in nvkm_iccsense_sensor_config()
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
Dmcdi_mon.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright 2011-2013 Solarflare Communications Inc.
40 #define SENSOR(name, label, hwmon_type, port) \ macro
42 SENSOR(CONTROLLER_TEMP, "Controller board temp.", TEMP, -1),
43 SENSOR(PHY_COMMON_TEMP, "PHY temp.", TEMP, -1),
44 SENSOR(CONTROLLER_COOLING, "Controller heat sink", COOL, -1),
45 SENSOR(PHY0_TEMP, "PHY temp.", TEMP, 0),
46 SENSOR(PHY0_COOLING, "PHY heat sink", COOL, 0),
47 SENSOR(PHY1_TEMP, "PHY temp.", TEMP, 1),
48 SENSOR(PHY1_COOLING, "PHY heat sink", COOL, 1),
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dmcdi_mon.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright 2011-2013 Solarflare Communications Inc.
40 #define SENSOR(name, label, hwmon_type, port) \ macro
42 SENSOR(CONTROLLER_TEMP, "Controller board temp.", TEMP, -1),
43 SENSOR(PHY_COMMON_TEMP, "PHY temp.", TEMP, -1),
44 SENSOR(CONTROLLER_COOLING, "Controller heat sink", COOL, -1),
45 SENSOR(PHY0_TEMP, "PHY temp.", TEMP, 0),
46 SENSOR(PHY0_COOLING, "PHY heat sink", COOL, 0),
47 SENSOR(PHY1_TEMP, "PHY temp.", TEMP, 1),
48 SENSOR(PHY1_COOLING, "PHY heat sink", COOL, 1),
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/
Dmcdi_mon.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright 2011-2013 Solarflare Communications Inc.
40 #define SENSOR(name, label, hwmon_type, port) \ macro
42 SENSOR(CONTROLLER_TEMP, "Controller board temp.", TEMP, -1),
43 SENSOR(PHY_COMMON_TEMP, "PHY temp.", TEMP, -1),
44 SENSOR(CONTROLLER_COOLING, "Controller heat sink", COOL, -1),
45 SENSOR(PHY0_TEMP, "PHY temp.", TEMP, 0),
46 SENSOR(PHY0_COOLING, "PHY heat sink", COOL, 0),
47 SENSOR(PHY1_TEMP, "PHY temp.", TEMP, 1),
48 SENSOR(PHY1_COOLING, "PHY heat sink", COOL, 1),
[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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/temperature/
Dadi,ltc2983.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices LTC2983 Multi-sensor Temperature system
10 - Nuno Sá <nuno.sa@analog.com>
13 Analog Devices LTC2983 Multi-Sensor Digital Temperature Measurement System
14 https://www.analog.com/media/en/technical-documentation/data-sheets/2983fc.pdf
19 - adi,ltc2983
27 adi,mux-delay-config-us:
38 adi,filter-notch-freq:
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/
Dbase.c34 enum nvbios_extdev_type type) in nvkm_iccsense_validate_device() argument
36 switch (type) { in nvkm_iccsense_validate_device()
57 return -EINVAL; in nvkm_iccsense_poll_lane()
70 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr, in nvkm_iccsense_ina2x9_read()
71 shunt_reg, 0, bus_reg, 3, rail->mohm, in nvkm_iccsense_ina2x9_read()
93 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr, in nvkm_iccsense_ina3221_read()
94 1 + (rail->idx * 2), 3, in nvkm_iccsense_ina3221_read()
95 2 + (rail->idx * 2), 3, rail->mohm, in nvkm_iccsense_ina3221_read()
101 struct nvkm_iccsense_sensor *sensor) in nvkm_iccsense_sensor_config() argument
103 struct nvkm_subdev *subdev = &iccsense->subdev; in nvkm_iccsense_sensor_config()
[all …]
/kernel/linux/linux-5.10/Documentation/hwmon/
Docc.rst1 Kernel driver occ-hwmon
12 -----------
14 This driver supports hardware monitoring for the On-Chip Controller (OCC)
16 sensor data from the processor and the system. The OCC can provide the raw
17 sensor data as well as perform thermal and power management on the system.
20 manually if an "ibm,p8-occ-hwmon" compatible device is found under the
21 appropriate I2C bus node in the device-tree.
23 The P9 version of this driver is a client driver of the FSI-based OCC driver.
24 It will be probed automatically by the FSI-based OCC driver.
27 -------------
[all …]
/kernel/linux/linux-6.6/Documentation/hwmon/
Docc.rst1 Kernel driver occ-hwmon
12 -----------
14 This driver supports hardware monitoring for the On-Chip Controller (OCC)
16 sensor data from the processor and the system. The OCC can provide the raw
17 sensor data as well as perform thermal and power management on the system.
20 manually if an "ibm,p8-occ-hwmon" compatible device is found under the
21 appropriate I2C bus node in the device-tree.
23 The P9 version of this driver is a client driver of the FSI-based OCC driver.
24 It will be probed automatically by the FSI-based OCC driver.
27 -------------
[all …]
/kernel/linux/linux-6.6/drivers/iio/common/scmi_sensors/
Dscmi_iio.c1 // SPDX-License-Identifier: GPL-2.0
4 * System Control and Management Interface(SCMI) based IIO sensor driver
44 struct scmi_iio_priv *sensor; in scmi_iio_sensor_update_cb() local
49 if (sensor_update->readings_count == 0) in scmi_iio_sensor_update_cb()
52 sensor = container_of(nb, struct scmi_iio_priv, sensor_update_nb); in scmi_iio_sensor_update_cb()
54 for (i = 0; i < sensor_update->readings_count; i++) in scmi_iio_sensor_update_cb()
55 sensor->iio_buf[i] = sensor_update->readings[i].value; in scmi_iio_sensor_update_cb()
57 if (!sensor->sensor_info->timestamped) { in scmi_iio_sensor_update_cb()
58 time_ns = ktime_to_ns(sensor_update->timestamp); in scmi_iio_sensor_update_cb()
64 time = sensor_update->readings[0].timestamp; in scmi_iio_sensor_update_cb()
[all …]
/kernel/linux/linux-6.6/drivers/media/i2c/et8ek8/
Det8ek8_driver.c1 // SPDX-License-Identifier: GPL-2.0-only
27 #include <linux/v4l2-mediabus.h>
29 #include <media/media-entity.h>
30 #include <media/v4l2-ctrls.h>
31 #include <media/v4l2-device.h>
32 #include <media/v4l2-subdev.h>
70 * This table describes what should be written to the sensor register
138 * Read a 8/16/32-bit i2c register. The value is returned in 'val'.
139 * Returns zero if successful, or non-zero otherwise.
148 if (!client->adapter) in et8ek8_i2c_read_reg()
[all …]
/kernel/linux/linux-5.10/drivers/media/i2c/et8ek8/
Det8ek8_driver.c1 // SPDX-License-Identifier: GPL-2.0-only
27 #include <linux/v4l2-mediabus.h>
29 #include <media/media-entity.h>
30 #include <media/v4l2-ctrls.h>
31 #include <media/v4l2-device.h>
32 #include <media/v4l2-subdev.h>
70 * This table describes what should be written to the sensor register
138 * Read a 8/16/32-bit i2c register. The value is returned in 'val'.
139 * Returns zero if successful, or non-zero otherwise.
148 if (!client->adapter) in et8ek8_i2c_read_reg()
[all …]
/kernel/linux/linux-5.10/drivers/iio/temperature/
Dltc2983.c1 // SPDX-License-Identifier: GPL-2.0
3 * Analog Devices LTC2983 Multi-Sensor Digital Temperature Measurement System
42 (((chan - 1) * 4) + LTC2983_CHAN_ASSIGN_START_REG)
44 (((chan - 1) * 4) + LTC2983_TEMP_RES_START_REG)
173 container_of(_sensor, struct ltc2983_thermocouple, sensor)
176 container_of(_sensor, struct ltc2983_rtd, sensor)
179 container_of(_sensor, struct ltc2983_thermistor, sensor)
182 container_of(_sensor, struct ltc2983_diode, sensor)
185 container_of(_sensor, struct ltc2983_rsense, sensor)
188 container_of(_sensor, struct ltc2983_adc, sensor)
[all …]
/kernel/linux/linux-6.6/drivers/input/rmi4/
Drmi_2d_sensor.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2011-2016 Synaptics Incorporated
16 #define RMI_2D_REL_POS_MIN -128
22 void rmi_2d_sensor_abs_process(struct rmi_2d_sensor *sensor, in rmi_2d_sensor_abs_process() argument
26 struct rmi_2d_axis_alignment *axis_align = &sensor->axis_align; in rmi_2d_sensor_abs_process()
29 if (obj->type == RMI_2D_OBJECT_NONE) in rmi_2d_sensor_abs_process()
32 if (axis_align->flip_x) in rmi_2d_sensor_abs_process()
33 obj->x = sensor->max_x - obj->x; in rmi_2d_sensor_abs_process()
35 if (axis_align->flip_y) in rmi_2d_sensor_abs_process()
36 obj->y = sensor->max_y - obj->y; in rmi_2d_sensor_abs_process()
[all …]
/kernel/linux/linux-5.10/drivers/input/rmi4/
Drmi_2d_sensor.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2011-2016 Synaptics Incorporated
16 #define RMI_2D_REL_POS_MIN -128
22 void rmi_2d_sensor_abs_process(struct rmi_2d_sensor *sensor, in rmi_2d_sensor_abs_process() argument
26 struct rmi_2d_axis_alignment *axis_align = &sensor->axis_align; in rmi_2d_sensor_abs_process()
29 if (obj->type == RMI_2D_OBJECT_NONE) in rmi_2d_sensor_abs_process()
32 if (axis_align->flip_x) in rmi_2d_sensor_abs_process()
33 obj->x = sensor->max_x - obj->x; in rmi_2d_sensor_abs_process()
35 if (axis_align->flip_y) in rmi_2d_sensor_abs_process()
36 obj->y = sensor->max_y - obj->y; in rmi_2d_sensor_abs_process()
[all …]
/kernel/linux/linux-6.6/drivers/iio/temperature/
Dltc2983.c1 // SPDX-License-Identifier: GPL-2.0
3 * Analog Devices LTC2983 Multi-Sensor Digital Temperature Measurement System
57 (((chan - 1) * 4) + LTC2983_CHAN_ASSIGN_START_REG)
59 (((chan - 1) * 4) + LTC2983_TEMP_RES_START_REG)
189 container_of(_sensor, struct ltc2983_thermocouple, sensor)
192 container_of(_sensor, struct ltc2983_rtd, sensor)
195 container_of(_sensor, struct ltc2983_thermistor, sensor)
198 container_of(_sensor, struct ltc2983_diode, sensor)
201 container_of(_sensor, struct ltc2983_rsense, sensor)
204 container_of(_sensor, struct ltc2983_adc, sensor)
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/powerpc/opal/
Dsensor-groups.txt1 IBM OPAL Sensor Groups Binding
2 -------------------------------
4 Node: /ibm,opal/sensor-groups
6 Description: Contains sensor groups available in the Powernv P9
7 servers. Each child node indicates a sensor group.
9 - compatible : Should be "ibm,opal-sensor-group"
13 - type : String to indicate the type of sensor-group
15 - sensor-group-id: Abstract unique identifier provided by firmware of
16 type <u32> which is used for sensor-group
20 - ibm,chip-id : Chip ID
[all …]

12345678910>>...44