Home
last modified time | relevance | path

Searched +full:resistance +full:- +full:temp +full:- +full:table (Results 1 – 13 of 13) sorted by relevance

/linux-6.14.4/drivers/power/supply/
Dab8500_bmdata.c1 // SPDX-License-Identifier: GPL-2.0
6 #include "ab8500-bm.h"
10 /* Default: between this temp and AB8500_TEMP_UNDER charging is reduced */
12 /* Default: between this temp and AB8500_TEMP_OVER charging is reduced */
14 /* Default: over this temp, charging is stopped */
47 * Note that the batres_vs_temp table must be strictly sorted by falling
48 * temperature values to work. Factory resistance is 300 mOhm and the
49 * resistance values to the right are percentages of 300 mOhm.
52 { .temp = 40, .resistance = 40 /* 120 mOhm */ },
53 { .temp = 30, .resistance = 45 /* 135 mOhm */ },
[all …]
Dpower_supply_core.c1 // SPDX-License-Identifier: GPL-2.0-only
25 #include <linux/fixp-arith.h>
27 #include "samsung-sdi-battery.h"
48 if (!supply->supplied_from && !supplier->supplied_to) in __power_supply_is_supplied_by()
52 if (supply->supplied_from) { in __power_supply_is_supplied_by()
53 if (!supplier->desc->name) in __power_supply_is_supplied_by()
55 for (i = 0; i < supply->num_supplies; i++) in __power_supply_is_supplied_by()
56 if (!strcmp(supplier->desc->name, supply->supplied_from[i])) in __power_supply_is_supplied_by()
59 if (!supply->desc->name) in __power_supply_is_supplied_by()
61 for (i = 0; i < supplier->num_supplicants; i++) in __power_supply_is_supplied_by()
[all …]
Dsc27xx_fuel_gauge.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/nvmem-consumer.h>
81 * @internal_resist: the battery internal resistance in mOhm
89 * @table_len: the capacity table length
90 * @resist_table_len: the resistance table length
93 * @calib_resist: the real resistance of coulomb counter chip in uOhm
94 * @cap_table: capacity table with corresponding ocv
95 * @resist_table: resistance percent table with corresponding temperature
128 static int sc27xx_fgu_get_temp(struct sc27xx_fgu_data *data, int *temp);
139 return DIV_S64_ROUND_CLOSEST(adc * 1000, data->cur_1000ma_adc); in sc27xx_fgu_adc_to_current()
[all …]
Dsamsung-sdi-battery.c1 // SPDX-License-Identifier: GPL-2.0
8 * The BTI (battery type indicator) resistance in the code drops was very
9 * unreliable. The resistance listed here was obtained by simply measuring
10 * the BTI resistance with a multimeter on the battery.
14 #include "samsung-sdi-battery.h"
23 * Voltage to internal resistance tables. The internal resistance varies
24 * depending on the VBAT voltage, so look this up from a table. Different
425 * Temperature to internal resistance scaling tables.
427 * "resistance" is the percentage of the resistance determined from the voltage
430 * FIXME: the proper table is missing: Samsung does not provide the necessary
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/power/supply/
Dbattery.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <[email protected]>
14 In smart batteries, these are typically stored in non-volatile memory
16 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-battery
34 device-chemistry:
[all …]
/linux-6.14.4/drivers/iio/adc/
Dqcom-vadc-common.c1 // SPDX-License-Identifier: GPL-2.0
5 #include <linux/fixp-arith.h>
6 #include <linux/iio/adc/qcom-vadc-common.h>
14 * struct vadc_map_pt - Map the graph representation for ADC channel
17 * resistance.
26 {1758, -40000 },
27 {1742, -35000 },
28 {1719, -30000 },
29 {1691, -25000 },
30 {1654, -20000 },
[all …]
Dtwl4030-madc.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * TWL4030 MADC module driver-This driver monitors the real time
8 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/
9 * J Keerthy <j-[email protected]>
11 * Based on twl4030-madc.c
120 * struct twl4030_madc_request - madc request packet for channel conversion
155 * struct twl4030_madc_data - a container for madc info
160 * @use_second_irq: IRQ selection (main or co-processor)
184 req.method = madc->use_second_irq ? TWL4030_MADC_SW2 : TWL4030_MADC_SW1; in twl4030_madc_read()
186 req.channels = BIT(chan->channel); in twl4030_madc_read()
[all …]
Dab8500-gpadc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2010
15 * detection by resistance measurements using relative voltages and GSM burst
54 /* 0 = use VTVOUT, 1 = use VRTC as pull-up supply for battery temp NTC */
63 * the bit layout is the same for SW and HW conversion set-up
163 #define AB8500_ADC_CH_IBAT_MIN (-6000) /* mA range measured by ADC for ibat */
165 #define AB8500_ADC_CH_IBAT_MIN_V (-60) /* mV range measured by ADC for ibat */
167 #define AB8500_GPADC_IBAT_VDROP_L (-56) /* mV */
192 * struct ab8500_adc_cal_data - Table for storing gain and offset for the
207 * struct ab8500_gpadc_chan_info - per-channel GPADC info
[all …]
/linux-6.14.4/include/linux/
Dpower_supply.h1 /* SPDX-License-Identifier: GPL-2.0-only */
230 /* Run-time specific power supply configuration */
378 int temp; /* celsius */ member
379 int resistance; /* internal resistance percent */ member
384 int ri_uohm; /* Internal resistance in microohm */
388 * struct power_supply_maintenance_charge_table - setting for maintenace charging
421 * +-------------------------------------------------------------------> t
423 * Practically this means that the Li-ions are wandering back and forth in the
434 * +-------------------------------------------------------------------> t
436 * Maintenance charging uses the voltages from this table: a table of settings
[all …]
/linux-6.14.4/drivers/hwmon/
Dntc_thermistor.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * ntc_thermistor.c - NTC Thermistors
16 #include <linux/fixp-arith.h>
35 * Used as index in a zero-terminated array, holes not allowed so
68 * A compensation table should be sorted by the values of .ohm
74 { .temp_c = -40, .ohm = 1747920 },
75 { .temp_c = -35, .ohm = 1245428 },
76 { .temp_c = -30, .ohm = 898485 },
77 { .temp_c = -25, .ohm = 655802 },
78 { .temp_c = -20, .ohm = 483954 },
[all …]
Dnct7802.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * nct7802 - Driver for Nuvoton NCT7802Y
5 * Copyright (C) 2014 Guenter Roeck <linux@roeck-us.net>
14 #include <linux/hwmon-sysfs.h>
55 * Resistance temperature detector (RTD) modes according to 7.2.32 Mode
77 struct mutex access_lock; /* for multi-byte read and write operations */
90 ret = regmap_read(data->regmap, REG_MODE, &mode); in temp_type_show()
94 return sprintf(buf, "%u\n", (mode >> (2 * sattr->index) & 3) + 2); in temp_type_show()
109 if (sattr->index == 2 && type != 4) /* RD3 */ in temp_type_store()
110 return -EINVAL; in temp_type_store()
[all …]
/linux-6.14.4/Documentation/hwmon/
Dvt1211.rst10 Addresses scanned: none, address read from Super-I/O config space
24 -----------------
29 configuration for channels 1-5.
30 Legal values are in the range of 0-31. Bit 0 maps to
47 -----------
49 The VIA VT1211 Super-I/O chip includes complete hardware monitoring
52 implements 5 universal input channels (UCH1-5) that can be individually
60 connected to the PWM outputs of the VT1211 :-().
62 The following table shows the relationship between the vt1211 inputs and the
66 Sensor Voltage Mode Temp Mode Default Use (from the datasheet)
[all …]
/linux-6.14.4/drivers/iio/chemical/
Dbme680_core.c1 // SPDX-License-Identifier: GPL-2.0
3 * Bosch BME680 - Temperature, Pressure, Humidity & Gas Sensor
5 * Copyright (C) 2017 - 2018 Bosch Sensortec GmbH
9 * https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME680-DS001-00.pdf
227 .scan_index = -1,
234 struct device *dev = regmap_get_device(data->regmap); in bme680_read_calib()
238 ret = regmap_bulk_read(data->regmap, BME680_T2_LSB_REG, in bme680_read_calib()
239 data->bme680_cal_buf_1, in bme680_read_calib()
240 sizeof(data->bme680_cal_buf_1)); in bme680_read_calib()
246 calib->par_t2 = get_unaligned_le16(&data->bme680_cal_buf_1[T2_LSB]); in bme680_read_calib()
[all …]