Home
last modified time | relevance | path

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

12345678910>>...42

/linux-6.12.1/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 …]
/linux-6.12.1/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 …]
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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/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 …]
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
66 names. Device names including invalid characters (whitespace, '*', or '-')
82 --------------------------------------------
92 `const struct attribute_group **extra_groups` Null-terminated list of additional non-standard
111 NULL-terminated list of device channel descriptors.
116 umode_t (*is_visible)(const void *, enum hwmon_sensor_types type,
[all …]
/linux-6.12.1/drivers/iio/temperature/
Dltc2983.c1 // 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-6.12.1/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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/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 …]
Drmi_f12.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2016 Synaptics Incorporated
30 struct rmi_2d_sensor sensor; member
67 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_read_sensor_tuning() local
68 struct rmi_function *fn = sensor->fn; in rmi_f12_read_sensor_tuning()
69 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_read_sensor_tuning()
80 item = rmi_get_register_desc_item(&f12->control_reg_desc, 8); in rmi_f12_read_sensor_tuning()
82 dev_err(&fn->dev, in rmi_f12_read_sensor_tuning()
83 "F12 does not have the sensor tuning control register\n"); in rmi_f12_read_sensor_tuning()
84 return -ENODEV; in rmi_f12_read_sensor_tuning()
[all …]
/linux-6.12.1/drivers/hid/amd-sfh-hid/hid_descriptor/
Damd_sfh_hid_report_desc.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * Copyright 2020-2021 Advanced Micro Devices, Inc.
5 * Authors: Nehal Bakulchandra Shah <Nehal-bakulchandra.shah@amd.com>
13 // Accelerometer 3D Sensor
16 0x09, 0x73, /* Motion type Accel 3D */
21 0x05, 0x20, /* HID usage page sensor */
22 0x0A, 0x09, 0x03, /* Sensor property and sensor connection type */
28 0x0A, 0x30, 0x08, /* Sensor property connection type intergated sel*/
29 0x0A, 0x31, 0x08, /* Sensor property connection type attached sel */
30 0x0A, 0x32, 0x08, /* Sensor property connection type external sel */
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/drivers/thermal/
Dthermal_of.c1 // SPDX-License-Identifier: GPL-2.0
3 * of-thermal.c - Generic Thermal Management device tree support.
25 * into the device tree binding of 'trip', property type.
35 * thermal_of_get_trip_type - Get phy mode for given device_node
37 * @type: Pointer to resulting trip type
39 * The function gets trip type string from property 'type',
40 * and store its index in trip_types table in @type,
45 enum thermal_trip_type *type) in thermal_of_get_trip_type() argument
50 err = of_property_read_string(np, "type", &t); in thermal_of_get_trip_type()
56 *type = i; in thermal_of_get_trip_type()
[all …]
/linux-6.12.1/drivers/media/pci/intel/
Dipu-bridge.c1 // SPDX-License-Identifier: GPL-2.0
15 #include <media/ipu-bridge.h>
16 #include <media/v4l2-fwnode.h>
18 #define ADEV_DEV(adev) ACPI_PTR(&((adev)->dev))
21 * 92335fcf-3203-4472-af93-7b4453ac29da
39 * plus the number of link-frequencies expected by their drivers, along with
45 * Do not add an entry for a sensor that is not actually supported.
66 /* Hynix Hi-556 */
89 .clock_frequency = "clock-frequency",
92 .bus_type = "bus-type",
[all …]
/linux-6.12.1/Documentation/hid/
Dhid-sensor.rst4 HID sensor framework provides necessary interfaces to implement sensor drivers,
5 which are connected to a sensor hub. The sensor hub is a HID device and it provides
6 a report descriptor conforming to HID 1.12 sensor usage tables.
8 Description from the HID 1.12 "HID Sensor Usages" specification:
9 "Standardization of HID usages for sensors would allow (but not require) sensor
15 This specification describes many usage IDs, which describe the type of sensor
16 and also the individual data fields. Each sensor can have variable number of
26 Logical Minimum(-32767)
35 The report is indicating "sensor page (0x20)" contains an accelerometer-3D (0x73).
36 This accelerometer-3D has some fields. Here for example field 2 is motion intensity
[all …]
/linux-6.12.1/drivers/iio/common/ssp_sensors/
Dssp_dev.c1 // SPDX-License-Identifier: GPL-2.0-or-later
25 * some values and depends on command type.
55 .name = "ssp-accelerometer",
58 .name = "ssp-gyroscope",
64 gpiod_set_value(data->mcu_reset_gpiod, 0); in ssp_toggle_mcu_reset_gpio()
66 gpiod_set_value(data->mcu_reset_gpiod, 1); in ssp_toggle_mcu_reset_gpio()
75 if (data->available_sensors & BIT(i)) { in ssp_sync_available_sensors()
76 ret = ssp_enable_sensor(data, i, data->delay_buf[i]); in ssp_sync_available_sensors()
78 dev_err(&data->spi->dev, in ssp_sync_available_sensors()
79 "Sync sensor nr: %d fail\n", i); in ssp_sync_available_sensors()
[all …]
/linux-6.12.1/include/linux/iio/common/
Dssp_sensors.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
18 * enum ssp_sensor_type - SSP sensor type
48 * struct ssp_sensor_data - Sensor object
49 * @process_data: Callback to feed sensor data.
50 * @type: Used sensor type.
56 enum ssp_sensor_type type; member
61 enum ssp_sensor_type type);
63 int ssp_enable_sensor(struct ssp_data *data, enum ssp_sensor_type type,
66 int ssp_disable_sensor(struct ssp_data *data, enum ssp_sensor_type type);
70 int ssp_change_delay(struct ssp_data *data, enum ssp_sensor_type type,
/linux-6.12.1/Documentation/devicetree/bindings/media/i2c/
Dmipi-ccs.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (C) 2014--2020 Intel Corporation
4 ---
5 $id: http://devicetree.org/schemas/media/i2c/mipi-ccs.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Sakari Ailus <sakari.ailus@linux.intel.com>
15 CCS (Camera Command Set) is a raw Bayer camera sensor standard defined by the
17 <URL:https://www.mipi.org/specifications/camera-command-set>.
19 SMIA (Standard Mobile Imaging Architecture) is an image sensor standard
24 Documentation/devicetree/bindings/media/video-interfaces.txt .
[all …]

12345678910>>...42