Home
last modified time | relevance | path

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

12345678910>>...41

/linux-6.14.4/drivers/thermal/
Dhisi_thermal.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * HiSilicon thermal sensor driver
5 * Copyright (c) 2014-2015 HiSilicon Limited.
6 * Copyright (c) 2014-2015 Linaro Limited.
40 #define HI6220_TEMP_BASE (-60000)
45 #define HI3660_TEMP_BASE (-63780)
63 uint32_t id; member
68 int (*get_temp)(struct hisi_thermal_sensor *sensor);
69 int (*enable_sensor)(struct hisi_thermal_sensor *sensor);
70 int (*disable_sensor)(struct hisi_thermal_sensor *sensor);
[all …]
Dthermal_of.c1 // SPDX-License-Identifier: GPL-2.0
3 * of-thermal.c - Generic Thermal Management device tree support.
35 * thermal_of_get_trip_type - Get phy mode for given device_node
60 return -ENODEV; in thermal_of_get_trip_type()
74 trip->temperature = prop; in thermal_of_populate_trip()
81 trip->hysteresis = prop; in thermal_of_populate_trip()
83 ret = thermal_of_get_trip_type(np, &trip->type); in thermal_of_populate_trip()
89 trip->flags = THERMAL_TRIP_FLAG_RW_TEMP; in thermal_of_populate_trip()
91 trip->priv = np; in thermal_of_populate_trip()
112 return ERR_PTR(-ENOMEM); in thermal_of_trips_init()
[all …]
Dsprd_thermal.c1 // SPDX-License-Identifier: GPL-2.0
8 #include <linux/nvmem-consumer.h>
26 #define SPRD_THM_OFFSET(id) ((id) * 0x4) argument
27 #define SPRD_THM_TEMP(id) (SPRD_THM_OFFSET(id) + 0x5c) argument
28 #define SPRD_THM_THRES(id) (SPRD_THM_OFFSET(id) + 0x2c) argument
30 #define SPRD_THM_SEN(id) BIT((id) + 2) argument
31 #define SPRD_THM_SEN_OVERHEAT_EN(id) BIT((id) + 8) argument
32 #define SPRD_THM_SEN_OVERHEAT_ALARM_EN(id) BIT((id) + 0) argument
57 /* thermal sensor calibration parameters */
58 #define SPRD_THM_TEMP_LOW -40000
[all …]
/linux-6.14.4/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 …]
Dlm90.rst10 Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
26 Prefix: 'lm89' (no auto-detection)
58 Addresses scanned: I2C 0x4c - 0x4e
66 Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
74 Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
86 https://www.onsemi.com/PowerSolutions/product.do?id=ADM1032
96 https://www.onsemi.com/PowerSolutions/product.do?id=ADT7461
106 https://www.onsemi.com/PowerSolutions/product.do?id=ADT7461A
116 https://www.onsemi.com/PowerSolutions/product.do?id=ADT7481
126 https://www.onsemi.com/PowerSolutions/product.do?id=ADT7482
[all …]
/linux-6.14.4/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/
Dbase.c57 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()
104 nvkm_trace(subdev, "write config of extdev %i: 0x%04x\n", sensor->id, sensor->config); in nvkm_iccsense_sensor_config()
105 nv_wr16i2cr(sensor->i2c, sensor->addr, 0x00, sensor->config); in nvkm_iccsense_sensor_config()
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/hwmon/
Dibm,opal-sensor.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/hwmon/ibm,opal-sensor.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Javier Carrasco <[email protected]>
15 - ibm,opal-sensor-cooling-fan
16 - ibm,opal-sensor-amb-temp
17 - ibm,opal-sensor-power-supply
18 - ibm,opal-sensor-power
20 sensor-id:
[all …]
/linux-6.14.4/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_shub.c5 * slave devices using accelerometer sensor as trigger for i2c
47 .id = ST_LSM6DSX_ID_MAGN,
98 .id = ST_LSM6DSX_ID_MAGN,
158 struct st_lsm6dsx_sensor *sensor; in st_lsm6dsx_shub_wait_complete() local
161 sensor = iio_priv(hw->iio_devs[ST_LSM6DSX_ID_ACC]); in st_lsm6dsx_shub_wait_complete()
162 odr = (hw->enable_mask & BIT(ST_LSM6DSX_ID_ACC)) ? sensor->odr : 12500; in st_lsm6dsx_shub_wait_complete()
169 * st_lsm6dsx_shub_read_output - read i2c controller register
178 mutex_lock(&hw->page_lock); in st_lsm6dsx_shub_read_output()
180 hub_settings = &hw->settings->shub_settings; in st_lsm6dsx_shub_read_output()
181 if (hub_settings->shub_out.sec_page) { in st_lsm6dsx_shub_read_output()
[all …]
Dst_lsm6dsx.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * STMicroelectronics st_lsm6dsx sensor driver
27 #define ST_LSM6DS3TRC_DEV_NAME "lsm6ds3tr-c"
29 #define ST_LSM9DS1_DEV_NAME "lsm9ds1-imu"
165 * struct st_lsm6dsx_fifo_ops - ST IMU FIFO settings
170 * @max_size: Sensor max fifo length in FIFO words.
174 int (*update_fifo)(struct st_lsm6dsx_sensor *sensor, bool enable);
189 * struct st_lsm6dsx_hw_ts_settings - ST IMU hw timer settings
205 * struct st_lsm6dsx_shub_settings - ST IMU hw i2c controller settings
208 * @pullup_en: i2c controller pull-up register info (addr + mask).
[all …]
Dst_lsm6dsx_core.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * STMicroelectronics st_lsm6dsx sensor driver
6 * and 3D digital gyroscope system-in-package with a digital I2C/SPI serial
8 * LSM6DSx IMU MEMS series has a dynamic user-selectable full-scale
9 * acceleration range of +-2/+-4/+-8/+-16 g and an angular rate range of
10 * +-125/+-245/+-500/+-1000/+-2000 dps
11 * LSM6DSx series has an integrated First-In-First-Out (FIFO) buffer
12 * allowing dynamic batching of sensor data.
18 * - LSM6DS3
19 * - Accelerometer/Gyroscope supported ODR [Hz]: 12.5, 26, 52, 104, 208, 416
[all …]
Dst_lsm6dsx_buffer.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * - 1st data set is reserved for gyroscope data
10 * - 2nd data set is reserved for accelerometer data
18 * - ISM330DLC
19 * - LSM6DS3
20 * - LSM6DS3H
21 * - LSM6DS3TR-C
22 * - LSM6DSL
23 * - LSM6DSM
31 * - ASM330LHB
[all …]
/linux-6.14.4/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.14.4/drivers/hwmon/
Dasus_atk0110.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2007-2009 Luca Tettamanti <[email protected]>
36 /* Old interface reads the same sensor for fan0 and fan1 */
134 u32 id; member
161 u64 id; member
173 * [0-3] "value" is valid flag
174 * [4-7] value
175 * [8- ] unknown stuff on newer mobos
185 u32 id; member
193 static int atk_read_value(struct atk_sensor_data *sensor, u64 *value);
[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 …]
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 …]
/linux-6.14.4/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.14.4/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.14.4/drivers/thermal/ti-soc-thermal/
Dti-bandgap.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * OMAP4 Bandgap temperature sensor driver
5 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
26 * +----------+----------------+
28 * +---------------------------+
32 * +-------------------+ +-----------------+
33 * | struct ti_bandgap |-->| struct device * |
34 * +----------+--------+ +-----------------+
38 * +------------------------+
40 * +------------------------+
[all …]
Dti-bandgap.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI Bandgap temperature sensor driver
5 * Copyright (C) 2011-2012 Texas Instruments Incorporated - http://www.ti.com/
6 * Author: J Keerthy <j-[email protected]>
7 * Author: Moiz Sonasath <m-[email protected]>
36 #include "ti-bandgap.h"
38 static int ti_bandgap_force_single_read(struct ti_bandgap *bgp, int id);
47 * ti_bandgap_readl() - simple read helper function
56 return readl(bgp->base + reg); in ti_bandgap_readl()
60 * ti_bandgap_writel() - simple write helper function
[all …]
/linux-6.14.4/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dnv50.c30 struct nvkm_subdev *subdev = &therm->subdev; in pwm_info()
48 return -ENODEV; in pwm_info()
57 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_ctrl()
59 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_ctrl() local
68 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_get()
69 int ctrl, id, ret = pwm_info(therm, &line, &ctrl, &id); in nv50_fan_pwm_get() local
74 *divs = nvkm_rd32(device, 0x00e114 + (id * 8)); in nv50_fan_pwm_get()
75 *duty = nvkm_rd32(device, 0x00e118 + (id * 8)); in nv50_fan_pwm_get()
79 return -EINVAL; in nv50_fan_pwm_get()
85 struct nvkm_device *device = therm->subdev.device; in nv50_fan_pwm_set()
[all …]
/linux-6.14.4/drivers/media/usb/gspca/stv06xx/
Dstv06xx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher
4 * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland
8 * P/N 861037: Sensor HDCS1000 ASIC STV0600
9 * P/N 861050-0010: Sensor HDCS1000 ASIC STV0600
10 * P/N 861050-0020: Sensor Photobit PB100 ASIC STV0600-1 - QuickCam Express
11 * P/N 861055: Sensor ST VV6410 ASIC STV0610 - LEGO cam
12 * P/N 861075-0040: Sensor HDCS1000 ASIC
13 * P/N 961179-0700: Sensor ST VV6410 ASIC STV0602 - Dexxa WebCam USB
14 * P/N 861040-0000: Sensor ST VV6410 ASIC STV0610 - QuickCam Web
[all …]
/linux-6.14.4/drivers/media/i2c/
Dvgxy61.c1 // SPDX-License-Identifier: GPL-2.0
3 * Driver for VGXY61 global shutter sensor family driver
21 #include <media/mipi-csi2.h>
22 #include <media/v4l2-async.h>
23 #include <media/v4l2-cci.h>
24 #include <media/v4l2-ctrls.h>
25 #include <media/v4l2-device.h>
26 #include <media/v4l2-event.h>
27 #include <media/v4l2-fwnode.h>
28 #include <media/v4l2-subdev.h>
[all …]
/linux-6.14.4/drivers/thermal/tegra/
Dsoctherm.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
60 * struct tegra_tsensor_group - SOC_THERM sensor group data
61 * @name: short name of the temperature sensor group
62 * @id: numeric ID of the temperature sensor group
64 * @sensor_temp_mask: bit mask for this sensor group in SENSOR_TEMP* register
65 * @pdiv: the sensor count post-divider to use during runtime
66 * @pdiv_ate: the sensor count post-divider used during automated test
67 * @pdiv_mask: register bitfield mask for the PDIV field for this sensor
68 * @pllx_hotspot_diff: hotspot offset from the PLLX sensor, must be 0 for
[all …]
/linux-6.14.4/drivers/platform/x86/intel/int3472/
Dcommon.c1 // SPDX-License-Identifier: GPL-2.0
9 union acpi_object *skl_int3472_get_acpi_buffer(struct acpi_device *adev, char *id) in skl_int3472_get_acpi_buffer() argument
12 acpi_handle handle = adev->handle; in skl_int3472_get_acpi_buffer()
16 status = acpi_evaluate_object(handle, id, NULL, &buffer); in skl_int3472_get_acpi_buffer()
18 return ERR_PTR(-ENODEV); in skl_int3472_get_acpi_buffer()
22 return ERR_PTR(-ENODEV); in skl_int3472_get_acpi_buffer()
24 if (obj->type != ACPI_TYPE_BUFFER) { in skl_int3472_get_acpi_buffer()
25 acpi_handle_err(handle, "%s object is not an ACPI buffer\n", id); in skl_int3472_get_acpi_buffer()
27 return ERR_PTR(-EINVAL); in skl_int3472_get_acpi_buffer()
43 if (obj->buffer.length > sizeof(*cldb)) { in skl_int3472_fill_cldb()
[all …]
/linux-6.14.4/drivers/media/usb/gspca/m5602/
Dm5602_core.c1 // SPDX-License-Identifier: GPL-2.0-only
36 /* A skeleton used for sending messages to the sensor */
56 struct usb_device *udev = sd->gspca_dev.dev; in m5602_read_bridge()
57 __u8 *buf = sd->gspca_dev.usb_buf; in m5602_read_bridge()
78 struct usb_device *udev = sd->gspca_dev.dev; in m5602_write_bridge()
79 __u8 *buf = sd->gspca_dev.usb_buf; in m5602_write_bridge()
116 if (!len || len > sd->sensor->i2c_regW) in m5602_read_sensor()
117 return -EINVAL; in m5602_read_sensor()
124 sd->sensor->i2c_slave_id); in m5602_read_sensor()
136 if (sd->sensor->i2c_regW == 1) { in m5602_read_sensor()
[all …]

12345678910>>...41