/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | adi,ltc2945.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Guenter Roeck <linux@roeck-us.net> 15 https://www.analog.com/media/en/technical-documentation/data-sheets/LTC2945.pdf 20 - adi,ltc2945 25 shunt-resistor-micro-ohms: 27 Shunt resistor value in micro-Ohms 31 - compatible 32 - reg [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-power-mp2629 | 9 Valid values: Represented in milli-ohms. Valid range is [0, 140].
|
H A D | sysfs-platform-dptf | 4 Contact: linux-acpi@vger.kernel.org 6 (RO) The charger type - Traditional, Hybrid or NVDC. 11 Contact: linux-acpi@vger.kernel.org 19 Contact: linux-acpi@vger.kernel.org 27 Contact: linux-acpi@vger.kernel.org 33 - 0x00 = DC 34 - 0x01 = AC 35 - 0x02 = USB 36 - 0x03 = Wireless Charger 43 Contact: linux-acpi@vger.kernel.org [all …]
|
/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | ti,tsc2005.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Marek Vasut <marex@denx.de> 11 - Michael Welling <mwelling@ieee.org> 19 - ti,tsc2004 20 - ti,tsc2005 31 reset-gpios: 35 spi-max-frequency: 39 ti,x-plate-ohms: [all …]
|
/linux/include/linux/platform_data/ |
H A D | gsc_hwmon.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 * struct gsc_hwmon_channel - configuration parameters 20 * @vdiv: voltage divider array (2 resistor values in milli-ohms) 31 * struct gsc_hwmon_platform_data - platform data for gsc_hwmon driver
|
/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | lltc,ltc294x.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 17 - Sebastian Reichel <sre@kernel.org> 20 - $ref: power-supply.yaml# 25 - lltc,ltc2941 26 - lltc,ltc2942 27 - lltc,ltc2943 28 - lltc,ltc2944 33 lltc,resistor-sense: [all …]
|
/linux/include/linux/power/ |
H A D | max17042_battery.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 191 /* External current sense resistor value in milli-ohms */ 255 * R_sns in micro-ohms.
|
/linux/drivers/hwmon/ |
H A D | ltc4282.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/clk-provider.h> 15 #include <linux/hwmon-sysfs.h> 115 #define LTC4282_CLKIN_RANGE (LTC4282_CLKIN_MAX - LTC4282_CLKIN_MIN + 1) 168 return regmap_update_bits(st->map, LTC4282_CLK_DIV, LTC4282_CLKOUT_MASK, in ltc4282_set_rate() 197 ret = regmap_read(st->map, LTC4282_CLK_DIV, &clkdiv); in ltc4282_recalc_rate() 215 regmap_clear_bits(st->map, LTC4282_CLK_DIV, LTC4282_CLKOUT_MASK); in ltc4282_disable() 224 ret = regmap_bulk_read(st->map, reg, &in, sizeof(in)); in ltc4282_read_voltage_word() 246 ret = regmap_read(st->map, reg, &in); in ltc4282_read_voltage_byte_cached() 267 ret = regmap_read(st->map, reg, &alarm); in __ltc4282_read_alarm() [all …]
|
H A D | tmp513.c | 1 // SPDX-License-Identifier: GPL-2.0 15 * Copyright (C) 2019 Eric Tremblay <etremblay@distech-controls.com> 112 // Max possible value is -256 to +256 but datasheet indicated -40 to 125. 114 #define MIN_TEMP_LIMIT -40000 123 #define TMP51X_TEMP_CHANNEL_MASK(n) (GENMASK((n) - 1, 0) << 11) 185 // Set the shift based on the gain: 8 -> 1, 4 -> 2, 2 -> 3, 1 -> 4 188 return 5 - ffs(data->pga_gain); in tmp51x_get_pga_shift() 209 16 - tmp51x_get_pga_shift(data) : 15); in tmp51x_get_value() 210 *val = DIV_ROUND_CLOSEST(*val * 10 * MILLI, data->shunt_uohms); in tmp51x_get_value() 221 *val = regval * data->pwr_lsb_uw; in tmp51x_get_value() [all …]
|
H A D | hp-wmi-sensors.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * hwmon driver for HP (and some HP Compaq) business-class computers that 9 * [1] Hewlett-Packard Development Company, L.P., 12 * [2] Hewlett-Packard Development Company, L.P., 16 * "linuxhw/ACPI - Collect ACPI table dumps", 2018. [Online]. 18 * [4] P. Rohár, "bmfdec - Decompile binary MOF file (BMF) from WMI buffer", 20 * [5] Microsoft Corporation, "Driver-Defined WMI Data Items", 2017. [Online]. 21 … Available: https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/driver-defined-w… 35 #define HP_WMI_EVENT_GUID "95F24279-4D7B-4334-9387-ACCDC67EF61C" 36 #define HP_WMI_NUMERIC_SENSOR_GUID "8F1F6435-9F42-42C8-BADC-0E9424F20C9A" [all …]
|
/linux/drivers/power/supply/ |
H A D | ds2782_battery.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * I2C client/driver for the Maxim/Dallas DS2782 Stand-Alone Fuel Gauge IC 35 /* Current unit measurement in uA for a 1 milli-ohm sense resistor */ 73 ret = i2c_smbus_read_byte_data(info->client, reg); in ds278x_read_reg() 75 dev_err(&info->client->dev, "register read failed\n"); in ds278x_read_reg() 88 ret = i2c_smbus_read_word_data(info->client, reg_msb); in ds278x_read_reg16() 90 dev_err(&info->client->dev, "register read failed\n"); in ds278x_read_reg16() 131 dev_err(&info->client->dev, "sense resistor value is 0\n"); in ds2782_get_current() 132 return -ENXIO; in ds2782_get_current() 136 dev_dbg(&info->client->dev, "sense resistor = %d milli-ohms\n", in ds2782_get_current() [all …]
|
H A D | power_supply_core.c | 1 // 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 …]
|
H A D | ab8500_fg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson AB 2012 5 * Main and Back-up battery management driver. 7 * Note: Backup battery management is required in case of Li-Ion battery and not 37 #include <linux/fixp-arith.h> 39 #include "ab8500-bm.h" 49 /* Currents higher than -500mA (dissipating) will make compensation unstable */ 50 #define IGNORE_VBAT_HIGHCUR -500000 63 * struct ab8500_fg_interrupts - ab8500 fg interrupts 153 * struct ab8500_fg - ab8500 FG device information [all …]
|
/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 60 (((chan - 1) * 4) + LTC2983_CHAN_ASSIGN_START_REG) 62 (((chan - 1) * 4) + LTC2983_TEMP_RES_START_REG) 312 * instance a resolution of 2^-10 means we have 10 fractional bits. 326 s64 __res = -(s32)val; in __convert_to_raw_sign() 330 return (u32)-__res; in __convert_to_raw_sign() 337 const struct device *dev = &st->spi->dev; in __ltc2983_fault_handler() 341 return -EIO; in __ltc2983_fault_handler() 354 u32 reg = LTC2983_CHAN_START_ADDR(sensor->chan); in __ltc2983_chan_assign_common() [all …]
|
/linux/drivers/regulator/ |
H A D | bd9576-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/mfd/rohm-bd957x.h> 11 #include <linux/mfd/rohm-generic.h> 137 const struct regulator_desc *desc = rdev->desc; in bd957x_vout34_list_voltage() 138 int multiplier = selector & desc->vsel_mask & 0x7f; in bd957x_vout34_list_voltage() 145 return desc->fixed_uV - tune; in bd957x_vout34_list_voltage() 147 return desc->fixed_uV + tune; in bd957x_vout34_list_voltage() 153 const struct regulator_desc *desc = rdev->desc; in bd957x_list_voltage() 154 int index = selector & desc->vsel_mask & 0x7f; in bd957x_list_voltage() 157 index += desc->n_voltages/2; in bd957x_list_voltage() [all …]
|
/linux/drivers/iio/adc/ |
H A D | max9611.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * 12-bit ADC interface. 12 * This driver supports input common-mode voltage, current-sense 16 * Op-amp, analog comparator, and watchdog functionalities are not 59 * (((adc_read >> 4) - offset) / ((1 / LSB) * 10^-3) 73 * (((adc_read >> 4) * 1000) - offset) / (1 / 14 * 1000) 79 * max9611 temperature reading: LSB is 480 milli degrees Celsius 115 * max9611_mux_conf - associate ADC mux configuration with register address 138 * max9611_csa_gain_conf - associate gain multiplier with LSB and 196 * max9611_read_single() - read a single value from ADC interface [all …]
|
/linux/sound/soc/codecs/ |
H A D | wcd934x.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/clk-provider.h> 21 #include <sound/soc-dapm.h> 23 #include "wcd-clsh-v2.h" 24 #include "wcd-mbhc-v2.h" 140 /* Z floating defined in ohms */ 430 COMPANDER_5, /* LO3_SE - not used in Tavil */ 431 COMPANDER_6, /* LO4_SE - not used in Tavil */ 515 .name = "WCD9335-IFC-DEV", 581 static const DECLARE_TLV_DB_SCALE(digital_gain, -8400, 100, -8400); [all …]
|