Home
last modified time | relevance | path

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

12345678910>>...44

/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/drivers/hwmon/
H A Dscmi-hwmon.c1 // SPDX-License-Identifier: GPL-2.0
3 * System Control and Management Interface(SCMI) based hwmon sensor driver
5 * Copyright (C) 2018-2020 ARM Ltd.
27 while (x--) in __pow10()
33 static int scmi_hwmon_scale(const struct scmi_sensor_info *sensor, u64 *value) in scmi_hwmon_scale() argument
35 int scale = sensor->scale; in scmi_hwmon_scale()
38 switch (sensor->type) { in scmi_hwmon_scale()
56 return -E2BIG; in scmi_hwmon_scale()
67 static int scmi_hwmon_read(struct device *dev, enum hwmon_sensor_types type, in scmi_hwmon_read() argument
72 const struct scmi_sensor_info *sensor; in scmi_hwmon_read() local
[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>
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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/temperature/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/iio/temperature/
H A 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 …]
/OK3568_Linux_fs/kernel/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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/media/i2c/et8ek8/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/input/sensors/
H A Dsensor-dev.c1 /* drivers/input/sensors/sensor-dev.c - handle all gsensor in this file
3 * Copyright (C) 2012-2015 ROCKCHIP.
4 * Author: luowei <lw@rock-chips.com>
37 #include <linux/sensor-dev.h>
85 if (cdata->is_accel_calibrated == 1) { in sensor_calibration_data_read()
86 calibration_data->accel_offset[0] = cdata->accel_offset[0]; in sensor_calibration_data_read()
87 calibration_data->accel_offset[1] = cdata->accel_offset[1]; in sensor_calibration_data_read()
88 calibration_data->accel_offset[2] = cdata->accel_offset[2]; in sensor_calibration_data_read()
89 calibration_data->is_accel_calibrated = 1; in sensor_calibration_data_read()
91 if (cdata->is_gyro_calibrated == 1) { in sensor_calibration_data_read()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/rmi4/
H A 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 …]
H A Drmi_f12.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2016 Synaptics Incorporated
29 struct rmi_2d_sensor sensor; member
66 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_read_sensor_tuning() local
67 struct rmi_function *fn = sensor->fn; in rmi_f12_read_sensor_tuning()
68 struct rmi_device *rmi_dev = fn->rmi_dev; in rmi_f12_read_sensor_tuning()
77 item = rmi_get_register_desc_item(&f12->control_reg_desc, 8); in rmi_f12_read_sensor_tuning()
79 dev_err(&fn->dev, in rmi_f12_read_sensor_tuning()
80 "F12 does not have the sensor tuning control register\n"); in rmi_f12_read_sensor_tuning()
81 return -ENODEV; in rmi_f12_read_sensor_tuning()
[all …]
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/dynamic-layers/meta-python/recipes-connectivity/thingsboard-gateway/thingsboard-gateway/
H A Dmqtt.json8 "type": "basic", string
15 "topicFilter": "/sensor/data",
17 "type": "json", string
23 "type": "string", string
28 "type": "string", string
35 "type": "double", string
40 "type": "double", string
48 "topicFilter": "/sensor/+/data",
50 "type": "json", string
51 "deviceNameTopicExpression": "(?<=sensor\/)(.*?)(?=\/data)",
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/sensors/
H A Drk_sensor.txt1 * Sensor Controller
4 - compatible: the sensor name,exampel: "gs_mma8452";
5 - reg: i2c slave address;
6 - type: sensor type;
7 - irq-gpio: sensor interrupt gpio pin;
8 - irq_enable: 1 use irq; 0 use pull mode;
9 - poll_delay_ms: pull delay time if use pull mode;
10 - layout: sensor orientation, choose 1-8 to make product work fine;
14 hall_sensor: hall-mh248 {
15 compatible = "hall-mh248";
[all …]
/OK3568_Linux_fs/kernel/drivers/thermal/
H A Dthermal_of.c1 // SPDX-License-Identifier: GPL-2.0
3 * of-thermal.c - Generic Thermal Management device tree support.
25 * struct __thermal_cooling_bind_param - a cooling device for a trip point
38 * struct __thermal_bind_param - a match between trip and cooling device
53 * struct __thermal_zone - internal representation of a thermal zone
59 * @trips: an array of trip points (0..ntrips - 1)
61 * @tbps: an array of thermal bind params (0..num_tbps - 1)
62 * @sensor_data: sensor private data used while reading temperature and trend
80 /* sensor interface */
90 struct __thermal_zone *data = tz->devdata; in of_thermal_get_temp()
[all …]
/OK3568_Linux_fs/kernel/drivers/misc/habanalabs/include/common/
H A Dcpucp_if.h1 /* SPDX-License-Identifier: GPL-2.0
58 * frequency of MME/TPC and GET the value of the thermal sensor.
79 * message (its type) and a field representing a fence object.
100 * Non-QMAN packets should be limited to values 1 through (2^8 - 1)
104 * CPUCP_PACKET_DISABLE_PCI_ACCESS -
107 * sending MSI-X interrupts.
110 * CPUCP_PACKET_ENABLE_PCI_ACCESS -
112 * transactions towards the Host CPU, including sending MSI-X interrupts.
115 * CPUCP_PACKET_TEMPERATURE_GET -
117 * Critical Hyst of a specified thermal sensor. The packet's
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/thermal/
H A Dthermal-zones.yaml1 # SPDX-License-Identifier: (GPL-2.0)
4 ---
5 $id: http://devicetree.org/schemas/thermal/thermal-zones.yaml#
6 $schema: http://devicetree.org/meta-schemas/base.yaml#
11 - Amit Kucheria <amitk@kernel.org>
14 Thermal management is achieved in devicetree by describing the sensor hardware
20 - thermal-sensor: device that measures temperature, has SoC-specific bindings
21 - cooling-device: device used to dissipate heat either passively or actively
22 - thermal-zones: a container of the following node types used to describe all
25 This binding describes the thermal-zones.
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/drivers/thermal/st/
H A Dst_thermal.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * ST Thermal Sensor Driver core routines
6 * Copyright (C) 2003-2014 STMicroelectronics (R&D) Limited
23 static int st_thermal_alloc_regfields(struct st_thermal_sensor *sensor) in st_thermal_alloc_regfields() argument
25 struct device *dev = sensor->dev; in st_thermal_alloc_regfields()
26 struct regmap *regmap = sensor->regmap; in st_thermal_alloc_regfields()
27 const struct reg_field *reg_fields = sensor->cdata->reg_fields; in st_thermal_alloc_regfields()
29 sensor->dcorrect = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields()
32 sensor->overflow = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields()
35 sensor->temp_data = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields()
[all …]
/OK3568_Linux_fs/kernel/include/linux/iio/common/
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 * @loc: location where the motion sensor is placed
45 * @range_updated: True if the range of the sensor has been
55 * is always 8-byte aligned.
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/include/linux/
H A Datomisp_platform.h1 /* SPDX-License-Identifier: GPL-2.0 */
21 #include <asm/intel-family.h>
26 #include <media/v4l2-subdev.h>
72 /* CSI2-MIPI specific format: Generic short packet data. It is used to
85 /* CSI2-MIPI specific format: YUV data.
87 ATOMISP_INPUT_FORMAT_YUV420_8_SHIFT, /* YUV420 8-bit (Chroma Shifted
89 ATOMISP_INPUT_FORMAT_YUV420_10_SHIFT, /* YUV420 8-bit (Chroma Shifted
92 /* CSI2-MIPI specific format: Generic long packet data
94 ATOMISP_INPUT_FORMAT_EMBEDDED, /* Embedded 8-bit non Image Data */
96 /* CSI2-MIPI specific format: User defined byte-based data. For example,
[all …]

12345678910>>...44