Home
last modified time | relevance | path

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

12345678910>>...29

/linux/drivers/net/ethernet/sfc/
H A 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/drivers/net/ethernet/sfc/siena/
H A 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/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/
H A 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/drivers/hwmon/
H A Dcgbc-hwmon.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * cgbc-hwmon - Congatec Board Controller hardware monitoring driver
23 enum hwmon_sensor_types type; member
56 enum hwmon_sensor_types type; member
98 struct cgbc_device_data *cgbc = hwmon->cgbc; in cgbc_hwmon_probe_sensors()
99 struct cgbc_hwmon_sensor *sensor = hwmon->sensors; in cgbc_hwmon_probe_sensors() local
109 hwmon->sensors = devm_kzalloc(dev, sizeof(*hwmon->sensors) * nb_sensors, GFP_KERNEL); in cgbc_hwmon_probe_sensors()
110 if (!hwmon->sensors) in cgbc_hwmon_probe_sensors()
111 return -ENOMEM; in cgbc_hwmon_probe_sensors()
113 sensor = hwmon->sensors; in cgbc_hwmon_probe_sensors()
[all …]
H A 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 …]
H A 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 …]
H A Dasus_atk0110.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2007-2009 Luca Tettamanti <kronos.it@gmail.com>
37 /* Old interface reads the same sensor for fan0 and fan1 */
163 u64 type; member
174 * [0-3] "value" is valid flag
175 * [4-7] value
176 * [8- ] unknown stuff on newer mobos
194 static int atk_read_value(struct atk_sensor_data *sensor, u64 *value);
228 if (s->type == HWMON_TYPE_TEMP) in atk_input_show()
240 return sprintf(buf, "%s\n", s->acpi_name); in atk_label_show()
[all …]
H A Dmacsmc-hwmon.c1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
18 * Originally based on a concept by Jean-Francois Bortolotti <jeff@borto.fr>
82 /* Chip + sensor types + NULL */
92 enum hwmon_sensor_types type, u32 attr, in macsmc_hwmon_read_label() argument
97 switch (type) { in macsmc_hwmon_read_label()
99 *str = hwmon->temp.sensors[channel].label; in macsmc_hwmon_read_label()
102 *str = hwmon->volt.sensors[channel].label; in macsmc_hwmon_read_label()
105 *str = hwmon->curr.sensors[channel].label; in macsmc_hwmon_read_label()
108 *str = hwmon->power.sensors[channel].label; in macsmc_hwmon_read_label()
111 *str = hwmon->fan.fans[channel].label; in macsmc_hwmon_read_label()
[all …]
/linux/Documentation/hwmon/
H A 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 …]
/linux/drivers/iio/temperature/
H A Dltc2983.c1 // SPDX-License-Identifier: GPL-2.0
3 * Analog Devices LTC2983 Multi-Sensor Digital Temperature Measurement System
61 ((((chan) - 1) * 4) + LTC2983_CHAN_ASSIGN_START_REG)
63 ((((chan) - 1) * 4) + (base))
190 /* Sensor types for some parts only; map to RTD_CUSTOM/THERMISTOR_CUSTOM in HW */
196 /* Bitmask of sensor types supported by LTC2983/LTC2984 and derivatives */
205 /* Bitmask of sensor types supported by ADT7604 */
207 (GENMASK_ULL(LTC2983_SENSOR_RTD_CUSTOM - 1, LTC2983_SENSOR_RTD) | \
208 GENMASK_ULL(LTC2983_SENSOR_THERMISTOR_CUSTOM - 1, LTC2983_SENSOR_THERMISTOR) | \
214 container_of(_sensor, struct ltc2983_thermocouple, sensor)
[all …]
/linux/drivers/hid/amd-sfh-hid/hid_descriptor/
H A 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/drivers/thermal/
H A 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 …]
H A Dimx_sc_thermal.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2018-2020 NXP.
6 #include <dt-bindings/firmware/imx/rsrc.h>
28 u8 type; member
48 struct imx_sc_sensor *sensor = thermal_zone_device_priv(tz); in imx_sc_thermal_get_temp() local
51 msg.data.req.resource_id = sensor->resource_id; in imx_sc_thermal_get_temp()
52 msg.data.req.type = IMX_SC_C_TEMP; in imx_sc_thermal_get_temp()
54 hdr->ver = IMX_SC_RPC_VERSION; in imx_sc_thermal_get_temp()
55 hdr->svc = IMX_SC_RPC_SVC_MISC; in imx_sc_thermal_get_temp()
56 hdr->func = IMX_SC_MISC_FUNC_GET_TEMP; in imx_sc_thermal_get_temp()
[all …]
/linux/Documentation/devicetree/bindings/powerpc/opal/
H A 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/drivers/input/rmi4/
H A Drmi_f12.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2016 Synaptics Incorporated
32 struct rmi_2d_sensor sensor; member
71 { &f12->query_reg_desc, "Query" }, in rmi_f12_read_register_descs()
72 { &f12->control_reg_desc, "Control" }, in rmi_f12_read_register_descs()
73 { &f12->data_reg_desc, "Data" }, in rmi_f12_read_register_descs()
75 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_read_register_descs()
83 dev_err(&fn->dev, in rmi_f12_read_register_descs()
97 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_read_sensor_tuning() local
98 struct rmi_function *fn = sensor->fn; in rmi_f12_read_sensor_tuning()
[all …]
/linux/Documentation/hid/
H A 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/drivers/iio/common/ssp_sensors/
H A Dssp_dev.c1 // SPDX-License-Identifier: GPL-2.0-or-later
24 * some values and depends on command type.
54 .name = "ssp-accelerometer",
57 .name = "ssp-gyroscope",
63 gpiod_set_value(data->mcu_reset_gpiod, 0); in ssp_toggle_mcu_reset_gpio()
65 gpiod_set_value(data->mcu_reset_gpiod, 1); in ssp_toggle_mcu_reset_gpio()
74 if (data->available_sensors & BIT(i)) { in ssp_sync_available_sensors()
75 ret = ssp_enable_sensor(data, i, data->delay_buf[i]); in ssp_sync_available_sensors()
77 dev_err(&data->spi->dev, in ssp_sync_available_sensors()
78 "Sync sensor nr: %d fail\n", i); in ssp_sync_available_sensors()
[all …]
/linux/include/linux/iio/common/
H A 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,
H A Dcros_ec_sensors_core.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * ChromeOS EC sensor hub
24 /* EC returns sensor values using signed 16 bit registers */
36 * struct cros_ec_sensors_core_state - state data for EC sensors IIO driver
41 * @param: motion sensor parameters structure
42 * @resp: motion sensor response structure
43 * @type: type of motion sensor
44 * @range_updated: True if the range of the sensor has been
54 * is always 8-byte aligned.
56 * @fifo_max_event_count: Size of the EC sensor FIFO
[all …]
/linux/Documentation/devicetree/bindings/iio/adc/
H A Dadi,ad4170-4.yaml1 # 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 …]
/linux/drivers/nvme/host/
H A 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()
66 static int nvme_hwmon_read(struct device *dev, enum hwmon_sensor_types type, in nvme_hwmon_read() argument
[all …]
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_sysfs.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2018 Intel Corporation. */
24 ixgbe_attr->sensor->location); in ixgbe_hwmon_show_location()
36 ixgbe_attr->hw->mac.ops.get_thermal_sensor_data(ixgbe_attr->hw); in ixgbe_hwmon_show_temp()
38 value = ixgbe_attr->sensor->temp; in ixgbe_hwmon_show_temp()
52 unsigned int value = ixgbe_attr->sensor->caution_thresh; in ixgbe_hwmon_show_cautionthresh()
66 unsigned int value = ixgbe_attr->sensor->max_op_thresh; in ixgbe_hwmon_show_maxopthresh()
75 * ixgbe_add_hwmon_attr - Create hwmon attr table for a hwmon sysfs file.
77 * @offset: offset in the eeprom sensor data table
78 * @type: type of sensor data to display
[all …]
/linux/Documentation/admin-guide/media/
H A Dimx7.rst1 .. SPDX-License-Identifier: GPL-2.0
7 ------------
14 - CMOS Sensor Interface (CSI)
15 - Video Multiplexer
16 - MIPI CSI-2 Receiver
18 .. code-block:: none
20 MIPI Camera Input ---> MIPI CSI-2 --- > |\
24 | U | ------> CSI ---> Capture
27 Parallel Camera Input ----------------> | /
34 --------
[all …]
/linux/Documentation/ABI/testing/
H A Ddebugfs-dell-wmi-ddv1 What: /sys/kernel/debug/dell-wmi-ddv-<wmi_device_name>/fan_sensor_information
6 This file contains the contents of the fan sensor information
7 buffer, which contains fan sensor entries and a terminating
10 Each fan sensor entry contains:
12 - fan type (single byte)
13 - fan speed in RPM (two bytes, little endian)
15 See Documentation/wmi/devices/dell-wmi-ddv.rst for details.
17 What: /sys/kernel/debug/dell-wmi-ddv-<wmi_device_name>/thermal_sensor_information
22 This file contains the contents of the thermal sensor information
23 buffer, which contains thermal sensor entries and a terminating
[all …]
/linux/drivers/accel/habanalabs/common/
H A Dhwmon.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright 2016-2019 HabanaLabs, Ltd.
17 static u32 fixup_flags_legacy_fw(struct hl_device *hdev, enum hwmon_sensor_types type, in fixup_flags_legacy_fw() argument
22 switch (type) { in fixup_flags_legacy_fw()
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()
64 static u32 fixup_flags_legacy_fw(struct hl_device *hdev, enum hwmon_sensor_types type, in fixup_flags_legacy_fw() argument
77 static u32 adjust_hwmon_flags(struct hl_device *hdev, enum hwmon_sensor_types type, u32 cpucp_flags) in adjust_hwmon_flags() argument
82 use_cpucp_enum = (hdev->asic_prop.fw_app_cpu_boot_dev_sts0 & in adjust_hwmon_flags()
90 switch (type) { in adjust_hwmon_flags()
[all …]

12345678910>>...29