/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | mcdi_mon.c | 1 // 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 …]
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi_mon.c | 1 // 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 …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | g84.c | 32 struct nvkm_device *device = therm->subdev.device; in g84_temp_get() 34 if (nvkm_fuse_read(device->fuse, 0x1a8) == 1) in g84_temp_get() 37 return -ENODEV; in g84_temp_get() 43 struct nvkm_device *device = therm->subdev.device; in g84_sensor_setup() 46 if (nvkm_fuse_read(device->fuse, 0x1a8) == 1) { in g84_sensor_setup() 56 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in g84_therm_program_alarms() local 57 struct nvkm_subdev *subdev = &therm->subdev; in g84_therm_program_alarms() 58 struct nvkm_device *device = subdev->device; in g84_therm_program_alarms() 61 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags); in g84_therm_program_alarms() 67 nvkm_wr32(device, 0x20484, sensor->thrs_shutdown.hysteresis); in g84_therm_program_alarms() [all …]
|
H A D | temp.c | 29 therm->bios_sensor.offset_constant = 0; in nvkm_therm_temp_set_defaults() 31 therm->bios_sensor.thrs_fan_boost.temp = 90; in nvkm_therm_temp_set_defaults() 32 therm->bios_sensor.thrs_fan_boost.hysteresis = 3; in nvkm_therm_temp_set_defaults() 34 therm->bios_sensor.thrs_down_clock.temp = 95; in nvkm_therm_temp_set_defaults() 35 therm->bios_sensor.thrs_down_clock.hysteresis = 3; in nvkm_therm_temp_set_defaults() 37 therm->bios_sensor.thrs_critical.temp = 105; in nvkm_therm_temp_set_defaults() 38 therm->bios_sensor.thrs_critical.hysteresis = 5; in nvkm_therm_temp_set_defaults() 40 therm->bios_sensor.thrs_shutdown.temp = 135; in nvkm_therm_temp_set_defaults() 41 therm->bios_sensor.thrs_shutdown.hysteresis = 5; /*not that it matters */ in nvkm_therm_temp_set_defaults() 47 struct nvbios_therm_sensor *s = &therm->bios_sensor; in nvkm_therm_temp_safety_checks() [all …]
|
/openbmc/phosphor-fan-presence/control/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Everest/ |
H A D | events.json | 77 // if a dual-rotor fan becomes non-functional, lock its speed to 79 "name": "nonfunc rotor override-0", 108 "name": "nonfunc rotor override-1", 137 "name": "nonfunc rotor override-2", 166 "name": "nonfunc rotor override-3", 211 "interface": "xyz.openbmc_project.Sensor.Value", 216 "interface": "xyz.openbmc_project.Sensor.Value", 221 "interface": "xyz.openbmc_project.Sensor.Value", 225 "name": "ambient temp", 226 "interface": "xyz.openbmc_project.Sensor.Value", [all …]
|
/openbmc/linux/drivers/thermal/ |
H A D | hisi_thermal.c | 1 // 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) 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); 71 int (*irq_handler)(struct hisi_thermal_sensor *sensor); [all …]
|
/openbmc/phosphor-fan-presence/control/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Rainier4U/ |
H A D | events.json | 102 "interface": "xyz.openbmc_project.Sensor.Value", 107 "interface": "xyz.openbmc_project.Sensor.Value", 112 "interface": "xyz.openbmc_project.Sensor.Value", 117 "interface": "xyz.openbmc_project.Sensor.Value", 121 "name": "ambient temp", 122 "interface": "xyz.openbmc_project.Sensor.Value", 159 "interface": "xyz.openbmc_project.Sensor.Value", 164 "interface": "xyz.openbmc_project.Sensor.Value", 169 "interface": "xyz.openbmc_project.Sensor.Value", 174 "interface": "xyz.openbmc_project.Sensor.Value", [all …]
|
/openbmc/linux/drivers/thermal/st/ |
H A D | st_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ST Thermal Sensor Driver core routines 6 * Copyright (C) 2003-2014 STMicroelectronics (R&D) Limited 17 #define mcelsius(temp) ((temp) * 1000) argument 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() [all …]
|
/openbmc/linux/Documentation/hwmon/ |
H A D | abituguru-datasheet.rst | 14 Olle Sandberg <ollebull@gmail.com>, 2005-05-25 27 Hans de Goede <j.w.r.degoede@hhs.nl>, 28-01-2006 33 As far as known the uGuru is always placed at and using the (ISA) I/O-ports 34 0xE0 and 0xE4, so we don't have to scan any port-range, just check what the two 35 ports are holding for detection. We will refer to 0xE0 as CMD (command-port) 39 present. We have to check for two different values at data-port, because 41 later on attached again data-port will hold 0x08, more about this later. 57 ---------- 61 in a bank for a sensor is one or more bytes large. 68 number of bytes data per sensor and contents/meaning of those bytes. [all …]
|
H A D | occ.rst | 1 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 …]
|
/openbmc/phosphor-fan-presence/control/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Rainier1S4U/ |
H A D | events.json | 92 "interface": "xyz.openbmc_project.Sensor.Value", 97 "interface": "xyz.openbmc_project.Sensor.Value", 102 "interface": "xyz.openbmc_project.Sensor.Value", 107 "interface": "xyz.openbmc_project.Sensor.Value", 111 "name": "ambient temp", 112 "interface": "xyz.openbmc_project.Sensor.Value", 149 "interface": "xyz.openbmc_project.Sensor.Value", 154 "interface": "xyz.openbmc_project.Sensor.Value", 159 "interface": "xyz.openbmc_project.Sensor.Value", 164 "interface": "xyz.openbmc_project.Sensor.Value", [all …]
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/dbus/thermal-policy/ibm-ac-server/ |
H A D | thermal-policy.yaml | 7 - name: core sensors 13 - meta: SENSOR 15 - meta: SENSOR 17 - meta: SENSOR 19 - meta: SENSOR 21 - meta: SENSOR 23 - meta: SENSOR 25 - meta: SENSOR 27 - meta: SENSOR 29 - meta: SENSOR [all …]
|
/openbmc/phosphor-fan-presence/control/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Rainier2U/ |
H A D | events.json | 87 // if a dual-rotor fan becomes non-functional, lock its speed to 89 "name": "nonfunc rotor override-0", 118 "name": "nonfunc rotor override-1", 147 "name": "nonfunc rotor override-2", 176 "name": "nonfunc rotor override-3", 205 "name": "nonfunc rotor override-4", 234 "name": "nonfunc rotor override-5", 279 "interface": "xyz.openbmc_project.Sensor.Value", 284 "interface": "xyz.openbmc_project.Sensor.Value", 289 "interface": "xyz.openbmc_project.Sensor.Value", [all …]
|
/openbmc/phosphor-fan-presence/control/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.BlueRidge2U/ |
H A D | events.json | 87 // if a dual-rotor fan becomes non-functional, lock its speed to 89 "name": "nonfunc rotor override-0", 118 "name": "nonfunc rotor override-1", 147 "name": "nonfunc rotor override-2", 176 "name": "nonfunc rotor override-3", 205 "name": "nonfunc rotor override-4", 234 "name": "nonfunc rotor override-5", 279 "interface": "xyz.openbmc_project.Sensor.Value", 284 "interface": "xyz.openbmc_project.Sensor.Value", 289 "interface": "xyz.openbmc_project.Sensor.Value", [all …]
|
/openbmc/linux/drivers/hwmon/occ/ |
H A D | common.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 #include <linux/hwmon-sysfs.h> 32 /* OCC sensor type and version definitions */ 144 cmd[4] = occ->poll_cmd_data; /* data */ in occ_poll() 149 rc = occ->send_cmd(occ, cmd, sizeof(cmd), &occ->resp, sizeof(occ->resp)); in occ_poll() 151 occ->last_error = rc; in occ_poll() 152 if (occ->error_count++ > OCC_ERROR_COUNT_THRESHOLD) in occ_poll() 153 occ->error = rc; in occ_poll() 159 occ->error_count = 0; in occ_poll() 160 occ->last_error = 0; in occ_poll() [all …]
|
/openbmc/linux/drivers/nvme/host/ |
H A D | hwmon.c | 1 // 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 20 long *temp) 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() 35 *temp = kelvin_to_millicelsius(status & NVME_TEMP_THRESH_MASK); 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 41 long temp) in nvme_set_temp_thresh() argument 43 unsigned int threshold = sensor << NVME_TEMP_THRESH_SELECT_SHIFT; in nvme_set_temp_thresh() 46 temp = millicelsius_to_kelvin(temp); in nvme_set_temp_thresh() [all …]
|
/openbmc/linux/drivers/iio/temperature/ |
H A D | ltc2983.c | 1 // 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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | ibmpowernv.txt | 2 ---------------------------- 5 - compatible: must be one of 6 "ibm,opal-sensor-cooling-fan" 7 "ibm,opal-sensor-amb-temp" 8 "ibm,opal-sensor-power-supply" 9 "ibm,opal-sensor-power" 10 - sensor-id: an opaque id provided by the firmware to the kernel, identifies a 11 given sensor and its attribute data 15 cooling-fan#8-data { 16 sensor-id = <0x7052107>; [all …]
|
H A D | starfive,jh71x0-temp.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/hwmon/starfive,jh71x0-temp.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: StarFive JH71x0 Temperature Sensor 10 - Emil Renner Berthing <kernel@esmil.dk> 13 StarFive Technology Co. JH71x0 embedded temperature sensor 18 - starfive,jh7100-temp 19 - starfive,jh7110-temp 28 clock-names: [all …]
|
/openbmc/linux/drivers/macintosh/ |
H A D | windfarm_pm121.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * that none of the code has been re-used, it's a complete 17 * re-implementation 21 * controls with a tiny difference. The control-ids of hard-drive-fan 22 * and cpu-fan is swapped. 34 * offset : -19563152 38 * offset : -15650652 44 * offset : -15650652 48 * offset : -19563152 54 * offset : -25431900 [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | abituguru.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * abituguru.c Copyright (c) 2005-2006 Hans de Goede <hdegoede@redhat.com> 6 * This driver supports the sensor part of the first and second revision of 23 #include <linux/hwmon-sysfs.h> 29 #define ABIT_UGURU_SENSOR_BANK1 0x21 /* 16x volt and temp */ 32 /* max nr of sensors in bank1, a bank1 sensor can be in, temp or nc */ 42 /* uGuru sensor bank 1 flags */ /* Alarm if: */ 43 #define ABIT_UGURU_TEMP_HIGH_ALARM_ENABLE 0x01 /* temp over warn */ 46 #define ABIT_UGURU_TEMP_HIGH_ALARM_FLAG 0x10 /* temp is over warn */ 49 /* uGuru sensor bank 2 flags */ /* Alarm if: */ [all …]
|
/openbmc/linux/drivers/thermal/tegra/ |
H A D | soctherm-fuse.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. 25 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 27 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 37 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 38 * |-----------| SHFT_FT | BASE_FT | BASE_CP | 39 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 44 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 45 * |---------------------------------------------------| SHIFT_CP | 46 * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ [all …]
|
/openbmc/phosphor-fan-presence/control/json/ |
H A D | fan.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 #include <phosphor-logging/log.hpp> 47 log<level::ERR>("Missing required fan sensor target interface", in setInterface() 50 "Missing required fan sensor target interface"); in setInterface() 64 for (const auto& sensor : jsonObj["sensors"]) in setSensors() local 70 path = FAN_SENSOR_PATH + sensor.get<std::string>(); in setSensors() 75 sensor.get<std::string>(); in setSensors() 108 for (const auto& sensor : _sensors) in setTarget() local 114 _bus, sensor.second, sensor.first, _interface, in setTarget() 121 sensor.second, sensor.first, _interface, FAN_TARGET_PROPERTY}; in setTarget() [all …]
|
/openbmc/phosphor-fan-presence/control/config_files/p10bmc/com.ibm.Hardware.Chassis.Model.Bonnell/ |
H A D | events.json | 82 "interface": "xyz.openbmc_project.Sensor.Value", 86 "name": "ambient temp", 87 "interface": "xyz.openbmc_project.Sensor.Value", 92 "interface": "xyz.openbmc_project.Sensor.Value", 129 "interface": "xyz.openbmc_project.Sensor.Value", 133 "name": "ambient temp", 134 "interface": "xyz.openbmc_project.Sensor.Value", 139 "interface": "xyz.openbmc_project.Sensor.Value", 151 "name": "Non-active OCCs", 185 // Set a raised fan floor when any temperature or altitude sensor is [all …]
|
/openbmc/phosphor-hwmon/test/ |
H A D | sensor_unittest.cpp | 4 #include "sensor.hpp" 35 std::string temp = "temp"; member in SensorTest 49 auto sensorKey = std::make_pair(temp, five); in TEST_F() 65 auto sensor = in TEST_F() local 66 std::make_unique<sensor::Sensor>(sensorKey, hwmonio_mock.get(), path); in TEST_F() 67 EXPECT_FALSE(sensor == nullptr); in TEST_F() 82 auto sensorKey = std::make_pair(temp, five); in TEST_F() 102 auto sensor = in TEST_F() local 103 std::make_unique<sensor::Sensor>(sensorKey, hwmonio_mock.get(), path); in TEST_F() 104 EXPECT_FALSE(sensor == nullptr); in TEST_F() [all …]
|