Searched +full:alert +full:- +full:celsius (Results 1 – 25 of 25) sorted by relevance
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---5 $schema: http://devicetree.org/meta-schemas/core.yaml#10 - Sebastian Reichel <sre@kernel.org>14 In smart batteries, these are typically stored in non-volatile memory16 no appropriate non-volatile memory, or it is unprogrammed/incorrect.27 Batteries must be referenced by chargers and/or fuel-gauges using a phandle.28 The phandle's property should be named "monitored-battery".32 const: simple-battery34 over-voltage-threshold-microvolt:[all …]
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---4 $id: "http://devicetree.org/schemas/power/supply/summit,smb347-charger.yaml#"5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"10 - David Heidelberg <david@ixit.cz>11 - Dmitry Osipenko <digetx@gmail.com>16 - summit,smb34517 - summit,smb34718 - summit,smb35826 monitored-battery:[all …]
6 * Sensirion SHT3x-DIS16 - David Frey <david.frey@sensirion.com>17 - Pascal Sachs <pascal.sachs@sensirion.com>20 -----------22 This driver implements support for the Sensirion SHT3x-DIS chip, a humidity23 and temperature sensor. Temperature is measured in degrees celsius, relative25 scaled by 1000, i.e. the value for 31.5 degrees celsius is 31500.29 Documentation/i2c/instantiating-devices.rst for methods to instantiate the device.34 non-blocking mode. Blocking mode will guarantee the fastest result but35 the I2C bus will be busy during that time. By default, non-blocking mode[all …]
45 -----------53 - No low limit for local temperature.54 - No critical limit for local temperature.55 - Critical limit for remote temperature can be changed only once. We56 will consider that the critical limit is read-only.63 All temperature values are given in degrees Celsius. Resolution is 1.067 store the value in an 8-bit register and have a selectable clock divider68 to make sure that the result will fit in the register, the LM63 uses 16-bit72 Note that the pin used for fan monitoring is shared with an alert out77 for fan monitoring and alert out. On the LM64, monitoring is always enabled;
18 Prefix: 'lm89' (no auto-detection)94 http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3497104 http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3497114 http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3500124 http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3497146 http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2578156 http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2578166 http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2578178 http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3370190 http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3370[all …]
1 // SPDX-License-Identifier: GPL-2.0-only3 * tmp007.c - Support for TI TMP007 IR thermopile sensor with integrated math engine7 * Driver for the Texas Instruments I2C 16-bit IR thermopile sensor9 * (7-bit I2C slave address (0x40 - 0x47), changeable via ADR pins)78 while (tries-- > 0) { in tmp007_read_temperature()79 ret = i2c_smbus_read_word_swapped(data->client, in tmp007_read_temperature()90 return -EIO; in tmp007_read_temperature()92 return i2c_smbus_read_word_swapped(data->client, reg); in tmp007_read_temperature()97 return i2c_smbus_write_word_swapped(data->client, TMP007_CONFIG, in tmp007_powerdown()98 data->config & ~TMP007_CONFIG_CONV_EN); in tmp007_powerdown()[all …]
8 properties to user-space.52 µA, µAh, µWh, seconds and tenths of degree Celsius unless otherwise60 +--------------------------------------------------------------------------+61 | **Charge/Energy/Capacity - how to not confuse** |62 +--------------------------------------------------------------------------+66 | - `CHARGE_*` |68 | - `ENERGY_*` |70 | - `CAPACITY` |72 +--------------------------------------------------------------------------+142 relative, time-based measurements.[all …]
1 /* SPDX-License-Identifier: GPL-2.0-or-later */189 /* External current sense resistor value in milli-ohms */198 /* Alert / Status */253 * R_sns in micro-ohms.260 int temp_min; /* in tenths of degree Celsius */261 int temp_max; /* in tenths of degree Celsius */
38 return -EINVAL); in vega12_get_current_rpm()47 fan_speed_info->supports_percent_read = false; in vega12_fan_ctrl_get_fan_speed_info()48 fan_speed_info->supports_percent_write = false; in vega12_fan_ctrl_get_fan_speed_info()49 fan_speed_info->supports_rpm_read = true; in vega12_fan_ctrl_get_fan_speed_info()50 fan_speed_info->supports_rpm_write = true; in vega12_fan_ctrl_get_fan_speed_info()66 * @param hwmgr - the address of the powerplay hardware manager.67 * @return 0 on success. -1 otherwise.72 struct vega12_hwmgr *data = (struct vega12_hwmgr *)(hwmgr->backend); in vega12_enable_fan_control_feature()74 if (data->smu_features[GNLD_FAN_CONTROL].supported) { in vega12_enable_fan_control_feature()77 data->smu_features[GNLD_FAN_CONTROL]. in vega12_enable_fan_control_feature()[all …]
34 struct vega20_hwmgr *data = hwmgr->backend; in vega20_disable_fan_control_feature()37 if (data->smu_features[GNLD_FAN_CONTROL].supported) { in vega20_disable_fan_control_feature()40 data->smu_features[GNLD_FAN_CONTROL]. in vega20_disable_fan_control_feature()45 data->smu_features[GNLD_FAN_CONTROL].enabled = false; in vega20_disable_fan_control_feature()53 struct vega20_hwmgr *data = hwmgr->backend; in vega20_fan_ctrl_stop_smc_fan_control()55 if (data->smu_features[GNLD_FAN_CONTROL].supported) in vega20_fan_ctrl_stop_smc_fan_control()63 struct vega20_hwmgr *data = hwmgr->backend; in vega20_enable_fan_control_feature()66 if (data->smu_features[GNLD_FAN_CONTROL].supported) { in vega20_enable_fan_control_feature()69 data->smu_features[GNLD_FAN_CONTROL]. in vega20_enable_fan_control_feature()74 data->smu_features[GNLD_FAN_CONTROL].enabled = true; in vega20_enable_fan_control_feature()[all …]
42 if (hwmgr->thermal_controller.fanInfo.bNoFan) in vega10_fan_ctrl_get_fan_speed_info()45 fan_speed_info->supports_percent_read = true; in vega10_fan_ctrl_get_fan_speed_info()46 fan_speed_info->supports_percent_write = true; in vega10_fan_ctrl_get_fan_speed_info()47 fan_speed_info->min_percent = 0; in vega10_fan_ctrl_get_fan_speed_info()48 fan_speed_info->max_percent = 100; in vega10_fan_ctrl_get_fan_speed_info()51 hwmgr->thermal_controller.fanInfo. in vega10_fan_ctrl_get_fan_speed_info()53 fan_speed_info->supports_rpm_read = true; in vega10_fan_ctrl_get_fan_speed_info()54 fan_speed_info->supports_rpm_write = true; in vega10_fan_ctrl_get_fan_speed_info()55 fan_speed_info->min_rpm = in vega10_fan_ctrl_get_fan_speed_info()56 hwmgr->thermal_controller.fanInfo.ulMinRPM; in vega10_fan_ctrl_get_fan_speed_info()[all …]
1 // SPDX-License-Identifier: GPL-2.0-only49 if (!supply->supplied_from && !supplier->supplied_to) in __power_supply_is_supplied_by()53 if (supply->supplied_from) { in __power_supply_is_supplied_by()54 if (!supplier->desc->name) in __power_supply_is_supplied_by()56 for (i = 0; i < supply->num_supplies; i++) in __power_supply_is_supplied_by()57 if (!strcmp(supplier->desc->name, supply->supplied_from[i])) in __power_supply_is_supplied_by()60 if (!supply->desc->name) in __power_supply_is_supplied_by()62 for (i = 0; i < supplier->num_supplicants; i++) in __power_supply_is_supplied_by()63 if (!strcmp(supplier->supplied_to[i], supply->desc->name)) in __power_supply_is_supplied_by()76 if (pst->desc->external_power_changed) in __power_supply_changed_work()[all …]
1 // SPDX-License-Identifier: GPL-2.0+98 struct regmap *map = chip->regmap; in max17042_get_temperature()105 /* The value is converted into deci-centigrade scale */ in max17042_get_temperature()106 /* Units of LSB = 1 / 256 degree Celsius */ in max17042_get_temperature()117 ret = power_supply_am_i_supplied(chip->battery); in max17042_get_status()128 * The MAX170xx has builtin end-of-charge detection and will update in max17042_get_status()133 * contineously once end-of-charge detection kicks in, so allow the in max17042_get_status()137 ret = regmap_read(chip->regmap, MAX17042_FullCAP, &charge_full); in max17042_get_status()141 ret = regmap_read(chip->regmap, MAX17042_RepCap, &charge_now); in max17042_get_status()145 if ((charge_full - charge_now) <= MAX17042_FULL_THRESHOLD) { in max17042_get_status()[all …]
1 // SPDX-License-Identifier: GPL-2.0-only21 #include <linux/extcon-provider.h>34 #define BQ24190_REG_POC 0x01 /* Power-On Configuration */59 #define BQ24190_REG_PCTCC 0x03 /* Pre-charge/Termination Current Cntl */183 * The tables below provide a 2-way mapping for the value that goes in184 * the register field and the real-world value that it represents.186 * number at that index in the array is the real-world value that it219 /* REG06[1:0] (TREG) in tenths of degrees Celsius */226 * 'val'. The index range returned is 0 to 'tbl_size' - 1. Assumes that238 return i - 1; in bq24190_find_idx()[all …]
2 * Device Tree file for D-Link DIR-685 Xtreme N Storage Router5 /dts-v1/;8 #include <dt-bindings/input/input.h>11 model = "D-Link DIR-685 Xtreme N Storage Router";12 compatible = "dlink,dir-685", "cortina,gemini";13 #address-cells = <1>;14 #size-cells = <1>;17 /* 128 MB SDRAM in 2 x Hynix HY5DU121622DTP-D43 */24 stdout-path = "uart0:19200n8";28 compatible = "gpio-keys";[all …]
1 // SPDX-License-Identifier: GPL-2.0-or-later3 * lm90.c - Part of lm_sensors, Linux kernel modules for hardware5 * Copyright (C) 2003-2010 Jean Delvare <jdelvare@suse.de>10 * temperature) and a 3-4 deg accuracy.18 * When device is auto-detected, the driver will assume an LM99.68 * pin-compatible with the LM86, the ED/EDP parts are also address-compatible.100 * LM86, LM89, LM90, LM99, ADM1032, ADM1032-1, ADT7461, ADT7461A, MAX6649,102 * ADM1032-2, ADT7461-2, ADT7461A-2, LM89-1, LM99-1, MAX6646, and NCT1008D189 #define LM90_HAVE_BROKEN_ALERT (1 << 7) /* Broken alert */352 u16 alert_alarms; /* Which alarm bits trigger ALERT# */[all …]
1 // SPDX-License-Identifier: GPL-2.0-or-later3 * lm63.c - driver for the National Semiconductor LM63 temperature sensor5 * Copyright (C) 2004-2008 Jean Delvare <jdelvare@suse.de>16 * - No low limit for local temperature.17 * - No critical limit for local temperature.18 * - Critical limit for remote temperature can be changed only once. We19 * will consider that the critical limit is read-only.32 #include <linux/hwmon-sysfs.h>102 * For tachometer counts, the LM63 uses 16-bit values.104 * value, it uses signed 8-bit values with LSB = 1 degree Celsius.[all …]
1 // SPDX-License-Identifier: GPL-2.012 #include <linux/hwmon-sysfs.h>65 #define VOLTAGE_MIN -30076 #define CURRENT_MIN -3000085 #define POWER_MIN -45000000095 /* in millidegress Celsius */97 #define TEMP_MIN -40000107 #define LTC2947_ALERTS_SIZE (LTC2947_REG_STATVDVCC - LTC2947_REG_STATUS)125 * complete sequence select_page->read/write needs to be protected.138 ret = regmap_bulk_read(st->map, reg, &__val, 2); in __ltc2947_val_read16()[all …]
1 // SPDX-License-Identifier: GPL-2.0-only4 * Copyright 2007-2012 Solarflare Communications Inc.91 struct i2c_client *client = i2c_new_client_device(&board->i2c_adap, info); in ef4_init_lm87()97 /* Read-to-clear alarm/interrupt status */ in ef4_init_lm87()108 board->hwmon_client = client; in ef4_init_lm87()118 i2c_unregister_device(falcon_board(efx)->hwmon_client); in ef4_fini_lm87()123 struct i2c_client *client = falcon_board(efx)->hwmon_client; in ef4_check_lm87()129 if (EF4_WORKAROUND_7884(efx) && efx->link_state.up) in ef4_check_lm87()161 netif_err(efx, hw, efx->net_dev, in ef4_check_lm87()173 return is_failure ? -ERANGE : 0; in ef4_check_lm87()[all …]
1 // SPDX-License-Identifier: GPL-2.0-only5 * Copyright (C) 2011-2012 Texas Instruments Incorporated - http://www.ti.com/6 * Author: J Keerthy <j-keerthy@ti.com>7 * Author: Moiz Sonasath <m-sonasath@ti.com>36 #include "ti-bandgap.h"47 * ti_bandgap_readl() - simple read helper function56 return readl(bgp->base + reg); in ti_bandgap_readl()60 * ti_bandgap_writel() - simple write helper function69 writel(val, bgp->base + reg); in ti_bandgap_writel()75 * RMW_BITS() - used to read, modify and update bandgap bitfields.[all …]
1 // SPDX-License-Identifier: GPL-2.0-only5 * Copyright (C) 2007-2009 Arjan Opmeer <arjan@opmeer.net>27 if (etd->info.debug) \38 if (ps2_sliced_command(&psmouse->ps2dev, c) || in synaptics_send_cmd()39 ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_GETINFO)) { in synaptics_send_cmd()41 return -1; in synaptics_send_cmd()53 struct ps2dev *ps2dev = &psmouse->ps2dev; in elantech_send_cmd()59 return -1; in elantech_send_cmd()71 struct ps2dev *ps2dev = &psmouse->ps2dev; in elantech_ps2_command()72 struct elantech_data *etd = psmouse->private; in elantech_ps2_command()[all …]
... COMMA 54<hyphen> /x00/x2D HYPHEN-MINUS 55<hyphen-minus> /x00/ ...
5 * Copyright (C) 2012-2014 LSI Corporation6 * Copyright (C) 2013-2014 Avago Technologies7 * (mailto: MPT-FusionLinux.pdl@avagotech.com)22 * LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,41 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,93 static u8 scsi_io_cb_idx = -1;94 static u8 tm_cb_idx = -1;95 static u8 ctl_cb_idx = -1;96 static u8 base_cb_idx = -1;97 static u8 port_enable_cb_idx = -1;[all …]
1 /* SPDX-License-Identifier: GPL-2.0-only */4 * Copyright 2009-2018 Solarflare Communications Inc.5 * Copyright 2019-2020 Xilinx Inc.13 /* Power-on reset state */35 /* The 'doorbell' addresses are hard-wired to alert the MC when written */38 /* The rest of these are firmware-defined */46 /* Values to be written to the per-port status dword in shared71 * | | \--- Response72 * | \------- Error73 * \------------------------------ Resync (always set)[all …]