/openbmc/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 …]
|
/openbmc/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 …]
|
H A D | sysfs-bus-iio | 3 Contact: linux-iio@vger.kernel.org 11 Contact: linux-iio@vger.kernel.org 25 Contact: linux-iio@vger.kernel.org 31 Contact: linux-iio@vger.kernel.org 38 Contact: linux-iio@vger.kernel.org 44 The contents of the label are free-form, but there are some 51 * "proximity-wifi" 52 * "proximity-lte" 53 * "proximity-wifi-lte" 54 * "proximity-wifi-left" [all …]
|
/openbmc/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 …]
|
/openbmc/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
|
/openbmc/linux/Documentation/devicetree/bindings/iio/temperature/ |
H A D | adi,ltc2983.yaml | 1 # 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 …]
|
/openbmc/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 …]
|
/openbmc/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.
|
/openbmc/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 24 #include <linux/fixp-arith.h> 26 #include "samsung-sdi-battery.h" 44 if (!supply->supplied_from && !supplier->supplied_to) in __power_supply_is_supplied_by() 48 if (supply->supplied_from) { in __power_supply_is_supplied_by() 49 if (!supplier->desc->name) in __power_supply_is_supplied_by() 51 for (i = 0; i < supply->num_supplies; i++) in __power_supply_is_supplied_by() 52 if (!strcmp(supplier->desc->name, supply->supplied_from[i])) in __power_supply_is_supplied_by() 55 if (!supply->desc->name) in __power_supply_is_supplied_by() 57 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 158 * struct ab8500_fg - ab8500 FG device information [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | tmp513.c | 1 // SPDX-License-Identifier: GPL-2.0 15 * Copyright (C) 2019 Eric Tremblay <etremblay@distech-controls.com> 115 // Max possible value is -256 to +256 but datasheet indicated -40 to 125. 117 #define MIN_TEMP_LIMIT -40000 181 // Set the shift based on the gain: 8 -> 1, 4 -> 2, 2 -> [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 …]
|
/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) 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() 337 return -EIO; in __ltc2983_fault_handler() 350 u32 reg = LTC2983_CHAN_START_ADDR(sensor->chan); in __ltc2983_chan_assign_common() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | wcd934x.c | 1 // SPDX-License-Identifier: GPL-2.0 5 #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 */ 520 .name = "WCD9335-IFC-DEV", 589 static const DECLARE_TLV_DB_SCALE(digital_gain, -8400, 100, -8400); [all …]
|