Home
last modified time | relevance | path

Searched +full:cold +full:- +full:temp (Results 1 – 25 of 106) sorted by relevance

12345

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/supply/
Dmaxim,max17042.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
13 - $ref: power-supply.yaml#
18 - maxim,max17042
19 - maxim,max17047
20 - maxim,max17050
21 - maxim,max17055
22 - maxim,max77849-battery
[all …]
Dcharger-manager.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/charger-manager.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
18 const: charger-manager
20 cm-chargers:
22 $ref: /schemas/types.yaml#/definitions/string-array
24 cm-num-chargers:
28 cm-fuel-gauge:
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dcharger-manager.txt1 charger-manager bindings
5 - compatible : "charger-manager"
6 - <>-supply : for regulator consumer, named according to cm-regulator-name
7 - cm-chargers : name of chargers
8 - cm-fuel-gauge : name of battery fuel gauge
9 - subnode <regulator> :
10 - cm-regulator-name : name of charger regulator
11 - subnode <cable> :
12 - cm-cable-name : name of charger cable - one of USB, USB-HOST,
13 SDP, DCP, CDP, ACA, FAST-CHARGER, SLOW-CHARGER, WPT,
[all …]
Dmax17042_battery.txt5 - compatible : one of the following
12 - maxim,rsns-microohm : Resistance of rsns resistor in micro Ohms
13 (datasheet-recommended value is 10000).
14 Defining this property enables current-sense functionality.
18 - maxim,cold-temp : Temperature threshold to report battery
19 as cold (in tenths of degree Celsius).
20 - maxim,over-heat-temp : Temperature threshold to report battery
22 - maxim,dead-volt : Voltage threshold to report battery
24 - maxim,over-volt : Voltage threshold to report battery
29 battery-charger@36 {
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/temperature/
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, LTC2986, LTM2985 Multi-sensor Temperature system
10 - Nuno Sá <nuno.sa@analog.com>
13 Analog Devices LTC2983, LTC2984, LTC2986, LTM2985 Multi-Sensor Digital
16 https://www.analog.com/media/en/technical-documentation/data-sheets/2983fc.pdf
17 https://www.analog.com/media/en/technical-documentation/data-sheets/2984fb.pdf
18 https://www.analog.com/media/en/technical-documentation/data-sheets/29861fa.pdf
19 https://www.analog.com/media/en/technical-documentation/data-sheets/ltm2985.pdf
[all …]
/kernel/linux/linux-6.6/drivers/media/usb/dvb-usb/
Daf9005.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * USB1.1 DVB-T receiver.
9 * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
17 "set debugging level (1=info,xfer=2,rc=4,reg=8,i2c=16,fw=32 (or-able))."
48 struct af9005_device_state *st = d->priv; in af9005_generic_read_write()
54 return -EINVAL; in af9005_generic_read_write()
58 return -EINVAL; in af9005_generic_read_write()
61 mutex_lock(&d->data_mutex); in af9005_generic_read_write()
62 st->data[0] = 14; /* rest of buffer length low */ in af9005_generic_read_write()
63 st->data[1] = 0; /* rest of buffer length high */ in af9005_generic_read_write()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/dvb-usb/
Daf9005.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * USB1.1 DVB-T receiver.
9 * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
17 "set debugging level (1=info,xfer=2,rc=4,reg=8,i2c=16,fw=32 (or-able))."
48 struct af9005_device_state *st = d->priv; in af9005_generic_read_write()
54 return -EINVAL; in af9005_generic_read_write()
58 return -EINVAL; in af9005_generic_read_write()
61 mutex_lock(&d->data_mutex); in af9005_generic_read_write()
62 st->data[0] = 14; /* rest of buffer length low */ in af9005_generic_read_write()
63 st->data[1] = 0; /* rest of buffer length high */ in af9005_generic_read_write()
[all …]
/kernel/linux/linux-6.6/drivers/iio/temperature/
Dmax31856.c1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright (C) 2018-2019 Rockwell Collins
20 #include <dt-bindings/iio/temperature/thermocouple.h>
65 { /* Cold Junction Temperature */
90 return spi_write_then_read(data->spi, &reg, 1, val, read_size); in max31856_read()
101 return spi_write(data->spi, buf, 2); in max31856_write()
128 reg_cr1_val |= data->thermocouple_type; in max31856_init()
131 reg_cr1_val |= data->averaging << MAX31856_AVERAGING_SHIFT; in max31856_init()
149 if (data->filter_50hz) in max31856_init()
164 switch (chan->channel2) { in max31856_thermocouple_read()
[all …]
Dltc2983.c1 // 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)
127 /* cold junction for thermocouples and rsense for rtd's and thermistor's */
233 __be32 temp __aligned(IIO_DMA_MINALIGN);
308 * instance a resolution of 2^-10 means we have 10 fractional bits.
322 s64 __res = -(s32)val; in __convert_to_raw_sign()
326 return (u32)-__res; in __convert_to_raw_sign()
333 const struct device *dev = &st->spi->dev; in __ltc2983_fault_handler()
[all …]
/kernel/linux/linux-5.10/drivers/iio/temperature/
Dmax31856.c1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright (C) 2018-2019 Rockwell Collins
18 #include <dt-bindings/iio/temperature/thermocouple.h>
63 { /* Cold Junction Temperature */
88 return spi_write_then_read(data->spi, &reg, 1, val, read_size); in max31856_read()
99 return spi_write(data->spi, buf, 2); in max31856_write()
126 reg_cr1_val |= data->thermocouple_type; in max31856_init()
129 reg_cr1_val |= data->averaging << MAX31856_AVERAGING_SHIFT; in max31856_init()
147 if (data->filter_50hz) in max31856_init()
162 switch (chan->channel2) { in max31856_thermocouple_read()
[all …]
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)
112 /* cold junction for thermocouples and rsense for rtd's and thermistor's */
207 __be32 temp ____cacheline_aligned;
275 * instance a resolution of 2^-10 means we have 10 fractional bits.
289 s64 __res = -(s32)val; in __convert_to_raw_sign()
293 return (u32)-__res; in __convert_to_raw_sign()
300 const struct device *dev = &st->spi->dev; in __ltc2983_fault_handler()
[all …]
/kernel/linux/linux-5.10/drivers/sbus/char/
Dbbc_envctrl.c1 // SPDX-License-Identifier: GPL-2.0
2 /* bbc_envctrl.c: UltraSPARC-III environment control driver.
26 /* Two temperature sensors exist in the SunBLADE-1000 enclosure.
31 * The max1617 is capable of being programmed with power-off
44 * disabled/enabled when entering/exiting the lowest power-saving
59 * before the hardware based power-off event is triggered.
63 * if we cannot interrogate the cpu-fru SEEPROM.
71 { 100, 85, 80, 5, -5, -10 },
72 { 100, 85, 80, 5, -5, -10 },
76 { 65, 55, 40, 5, -5, -10 },
[all …]
/kernel/linux/linux-6.6/drivers/sbus/char/
Dbbc_envctrl.c1 // SPDX-License-Identifier: GPL-2.0
2 /* bbc_envctrl.c: UltraSPARC-III environment control driver.
26 /* Two temperature sensors exist in the SunBLADE-1000 enclosure.
31 * The max1617 is capable of being programmed with power-off
44 * disabled/enabled when entering/exiting the lowest power-saving
59 * before the hardware based power-off event is triggered.
63 * if we cannot interrogate the cpu-fru SEEPROM.
71 { 100, 85, 80, 5, -5, -10 },
72 { 100, 85, 80, 5, -5, -10 },
76 { 65, 55, 40, 5, -5, -10 },
[all …]
/kernel/linux/linux-6.6/drivers/hwmon/
Dadm9240.c1 // SPDX-License-Identifier: GPL-2.0-or-later
21 * Alarms 16-bit map of active alarms
26 * Test hardware: Intel SE440BX-2 desktop motherboard --Grant
28 * LM81 extended temp reading not implemented
36 #include <linux/hwmon-sysfs.h>
38 #include <linux/hwmon-vid.h>
74 return (val * mul - div / 2) / div; in SCALE()
93 /* temperature range: -40..125, 127 disables temperature alarm */
96 val = clamp_val(val, -40000, 127000); in TEMP_TO_REG()
104 return -1; in FAN_FROM_REG()
[all …]
/kernel/linux/linux-5.10/drivers/power/supply/
Dcharger-manager.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * during suspend-to-mem.
23 #include <linux/power/charger-manager.h>
35 { "USB-HOST", EXTCON_USB_HOST },
40 { "FAST-CHARGER", EXTCON_CHG_USB_FAST },
41 { "SLOW-CHARGER", EXTCON_CHG_USB_SLOW },
49 { "CHARGE-DOWNSTREAM", EXTCON_CHG_USB_CDP },
78 /* About in-suspend (suspend-again) monitoring */
92 * is_batt_present - See if the battery presents in place.
102 switch (cm->desc->battery_present) { in is_batt_present()
[all …]
Dbd70528-charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 // power-supply driver for ROHM BD70528 PMIC
19 * +--------------+ +--------------+
21 * | Any state +-------> | Suspend |
23 * +--------------+ +------+-------+
26 * No errors (temp, bat_ov, UVLO, |
29 * BAT_OV or +---------v----------+
31 * +-----------------+ Trickle Charge | <---------------+
33 * | +-------+------------+ |
36 * | V_BAT > VTRI_TH | | VBAT < VTRI_TH - 50mV |
[all …]
Dbq24190_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
21 #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 in
184 * 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 it
226 * 'val'. The index range returned is 0 to 'tbl_size' - 1. Assumes that
238 return i - 1; in bq24190_find_idx()
247 ret = i2c_smbus_read_byte_data(bdi->client, reg); in bq24190_read()
[all …]
/kernel/linux/linux-6.6/drivers/power/supply/
Dcharger-manager.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * during suspend-to-mem.
23 #include <linux/power/charger-manager.h>
35 { "USB-HOST", EXTCON_USB_HOST },
40 { "FAST-CHARGER", EXTCON_CHG_USB_FAST },
41 { "SLOW-CHARGER", EXTCON_CHG_USB_SLOW },
49 { "CHARGE-DOWNSTREAM", EXTCON_CHG_USB_CDP },
78 /* About in-suspend (suspend-again) monitoring */
92 * is_batt_present - See if the battery presents in place.
102 switch (cm->desc->battery_present) { in is_batt_present()
[all …]
Dbq24190_charger.c1 // SPDX-License-Identifier: GPL-2.0-only
19 #include <linux/extcon-provider.h>
32 #define BQ24190_REG_POC 0x01 /* Power-On Configuration */
57 #define BQ24190_REG_PCTCC 0x03 /* Pre-charge/Termination Current Cntl */
190 * The tables below provide a 2-way mapping for the value that goes in
191 * the register field and the real-world value that it represents.
193 * number at that index in the array is the real-world value that it
233 * 'val'. The index range returned is 0 to 'tbl_size' - 1. Assumes that
245 return i - 1; in bq24190_find_idx()
254 ret = i2c_smbus_read_byte_data(bdi->client, reg); in bq24190_read()
[all …]
/kernel/linux/linux-5.10/drivers/usb/host/
Dxhci-hub.c1 // SPDX-License-Identifier: GPL-2.0
16 #include "xhci-trace.h"
60 u32 temp; in xhci_create_usb3_bos_desc() local
65 ssp_cap_size = sizeof(usb_bos_descriptor) - desc_size; in xhci_create_usb3_bos_desc()
68 for (i = 0; i < xhci->num_port_caps; i++) { in xhci_create_usb3_bos_desc()
69 if (xhci->port_caps[i].maj_rev == 0x03 && in xhci_create_usb3_bos_desc()
70 xhci->port_caps[i].min_rev >= 0x01) { in xhci_create_usb3_bos_desc()
72 port_cap = &xhci->port_caps[i]; in xhci_create_usb3_bos_desc()
79 if (port_cap->psi_count) { in xhci_create_usb3_bos_desc()
81 ssa_count = port_cap->psi_uid_count * 2; in xhci_create_usb3_bos_desc()
[all …]
/kernel/linux/linux-5.10/include/trace/events/
Df2fs.h1 /* SPDX-License-Identifier: GPL-2.0 */
12 #define show_dev_ino(entry) show_dev(entry->dev), (unsigned long)entry->ino
26 TRACE_DEFINE_ENUM(COLD);
66 { IPU, "IN-PLACE" }, \
67 { OPU, "OUT-OF-PLACE" })
69 #define show_block_temp(temp) \ argument
70 __print_symbolic(temp, \
73 { COLD, "COLD" })
97 { CURSEG_COLD_DATA, "Cold DATA" }, \
100 { CURSEG_COLD_NODE, "Cold NODE" }, \
[all …]
/kernel/linux/linux-5.10/drivers/hwmon/
Dadm9240.c1 // SPDX-License-Identifier: GPL-2.0-or-later
21 * Alarms 16-bit map of active alarms
26 * Test hardware: Intel SE440BX-2 desktop motherboard --Grant
28 * LM81 extended temp reading not implemented
35 #include <linux/hwmon-sysfs.h>
37 #include <linux/hwmon-vid.h>
74 return (val * mul - div / 2) / div; in SCALE()
93 /* temperature range: -40..125, 127 disables temperature alarm */
96 val = clamp_val(val, -40000, 127000); in TEMP_TO_REG()
104 return -1; in FAN_FROM_REG()
[all …]
/kernel/linux/linux-6.6/drivers/usb/host/
Dxhci-hub.c1 // SPDX-License-Identifier: GPL-2.0
17 #include "xhci-trace.h"
53 bos->bLength = USB_DT_BOS_SIZE; in xhci_create_usb3x_bos_desc()
54 bos->bDescriptorType = USB_DT_BOS; in xhci_create_usb3x_bos_desc()
55 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE + in xhci_create_usb3x_bos_desc()
57 bos->bNumDeviceCaps = 1; in xhci_create_usb3x_bos_desc()
60 for (i = 0; i < xhci->num_port_caps; i++) { in xhci_create_usb3x_bos_desc()
61 u8 major = xhci->port_caps[i].maj_rev; in xhci_create_usb3x_bos_desc()
62 u8 minor = xhci->port_caps[i].min_rev; in xhci_create_usb3x_bos_desc()
67 port_cap = &xhci->port_caps[i]; in xhci_create_usb3x_bos_desc()
[all …]
/kernel/linux/linux-6.6/drivers/thermal/mediatek/
Dlvts_thermal.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <linux/clk-provider.h>
15 #include <linux/nvmem-consumer.h>
20 #include <dt-bindings/thermal/mediatek,lvts-thermal.h>
83 #define LVTS_COEFF_A -250460
206 lvts_td->dom_dentry = debugfs_create_dir(dev_name(dev), NULL); in lvts_debugfs_init()
207 if (IS_ERR(lvts_td->dom_dentry)) in lvts_debugfs_init()
210 for (i = 0; i < lvts_td->num_lvts_ctrl; i++) { in lvts_debugfs_init()
212 lvts_ctrl = &lvts_td->lvts_ctrl[i]; in lvts_debugfs_init()
215 dentry = debugfs_create_dir(name, lvts_td->dom_dentry); in lvts_debugfs_init()
[all …]
/kernel/linux/linux-6.6/include/trace/events/
Df2fs.h1 /* SPDX-License-Identifier: GPL-2.0 */
12 #define show_dev_ino(entry) show_dev(entry->dev), (unsigned long)entry->ino
22 TRACE_DEFINE_ENUM(COLD);
60 { IPU, "IN-PLACE" }, \
61 { OPU, "OUT-OF-PLACE" })
63 #define show_block_temp(temp) \ argument
64 __print_symbolic(temp, \
67 { COLD, "COLD" })
91 { CURSEG_COLD_DATA, "Cold DATA" }, \
94 { CURSEG_COLD_NODE, "Cold NODE" }, \
[all …]

12345