Searched +full:shunt +full:- +full:gain (Results 1 – 12 of 12) sorted by relevance
/linux/drivers/hwmon/ |
H A D | ina238.c | 1 // SPDX-License-Identifier: GPL-2.0-only 59 * based on a fixed shunt resistor value. This allows for conversion within the 61 * relative to the shunt resistor value within the driver. This is similar to 64 * The end result of this is that increasing shunt values (from a fixed 20 mOhm 65 * shunt) increase the effective current/power accuracy whilst limiting the 66 * range and decreasing shunt values decrease the effective accuracy but 70 * Current (A) = (shunt voltage register * 5) * calibration / 81920 72 * The maximum shunt voltage is 163.835 mV (0x7fff, ADC_RANGE = 0, gain = 4). 73 * With the maximum current value of 0x7fff and a fixed shunt value results in 84 * to be scaled by the difference between the fixed shunt resistor and the [all …]
|
H A D | tmp513.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Local Temperature Sensor and Current Shunt Monitor 12 * and Local Temperature Sensor and Current Shunt Monitor 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() 205 * on the pga gain setting. 1lsb = 10uV in tmp51x_get_value() [all …]
|
/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | ti,tmp513.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Eric Tremblay <etremblay@distech-controls.com> 14 The TMP512 (dual-channel) and TMP513 (triple-channel) are system monitors 15 that include remote sensors, a local temperature sensor, and a high-side 16 current shunt monitor. These system monitors have the capability of measuring 17 remote temperatures, on-chip temperatures, and system voltage/power/current 28 - ti,tmp512 29 - ti,tmp513 [all …]
|
/linux/Documentation/devicetree/bindings/iio/afe/ |
H A D | current-sense-shunt.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/afe/current-sense-shunt.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Current Sense Shunt 10 - Peter Rosin <peda@axentia.se> 13 When an io-channel measures the voltage over a current sense shunt, 15 shunt, not the voltage over it. This binding describes such a current 20 const: current-sense-shunt 22 io-channels: [all …]
|
/linux/Documentation/hwmon/ |
H A D | tmp513.rst | 1 .. SPDX-License-Identifier: GPL-2.0 22 Eric Tremblay <etremblay@distech-controls.com> 25 ----------- 28 The TMP512 (dual-channel) and TMP513 (triple-channel) are system monitors 29 that include remote sensors, a local temperature sensor, and a high-side current 30 shunt monitor. These system monitors have the capability of measuring remote 31 temperatures, on-chip temperatures, and system voltage/power/current 35 -40 to + 125 degrees with a resolution of 0.0625 degree C. 44 **temp[1-4]_input** 46 **temp[1-4]_crit** [all …]
|
/linux/drivers/iio/afe/ |
H A D | iio-rescale.c | 1 // SPDX-License-Identifier: GPL-2.0 33 *val *= rescale->numerator; in rescale_process_scale() 34 if (rescale->denominator == 1) in rescale_process_scale() 36 *val2 = rescale->denominator; in rescale_process_scale() 44 if (!check_mul_overflow(*val, rescale->numerator, &_val) && in rescale_process_scale() 45 !check_mul_overflow(*val2, rescale->denominator, &_val2)) { in rescale_process_scale() 53 tmp = div_s64(tmp, rescale->denominator); in rescale_process_scale() 54 tmp *= rescale->numerator; in rescale_process_scale() 82 * *val = 1 and *val2 = -0.5 yields -1.5 not -0.5. in rescale_process_scale() 86 tmp = (s64)abs(*val) * abs(rescale->numerator); in rescale_process_scale() [all …]
|
/linux/drivers/comedi/drivers/ |
H A D | jr3_pci.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 31 * two-byte words. 42 * Channels 1-6 contain the coupled force data Fx through Mz. Channel 43 * 7 contains the sensor's calibration data. The use of channels 8-15 139 * was detected in the on-board RAM during the power-up 249 * 0 - end transform packet 250 * 1 - translate along X axis (TX) 251 * 2 - translate along Y axis (TY) 252 * 3 - translate along Z axis (TZ) 253 * 4 - rotate about X axis (RX) [all …]
|
/linux/drivers/iio/adc/ |
H A D | ina2xx-adc.c | 11 * Copyright 2010-2011 Analog Devices Inc. 14 * Copyright 2012 Lothar Felten <l-felten@ti.com> 16 * Licensed under the GPL-2 or later. 18 * IIO driver for INA219-220-226-230-231 20 * Configurable 7-bit I2C slave address from 0x40 to 0x4F 51 /* settings - depend on use case */ 68 /* Gain for VShunt: 1/8 (default), 1/4, 1/2, 1 */ 98 #define SAMPLING_PERIOD(c) ((c->int_time_vbus + c->int_time_vshunt) \ 99 * c->avg) 146 int int_time_vshunt; /* Shunt voltage integration time uS */ [all …]
|
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 51 * LSB and offset values depends on selected gain (1x, 4x, 8x) 53 * GAIN LSB (nV) OFFSET (LSB steps) 59 * (((adc_read >> 4) - offset) / ((1 / LSB) * 10^-3) 73 * (((adc_read >> 4) * 1000) - offset) / (1 / 14 * 1000) 115 * max9611_mux_conf - associate ADC mux configuration with register address 138 * max9611_csa_gain_conf - associate gain multiplier with LSB and [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mp-dhcom-pdk3.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 * DHCM-iMX8ML8-C160-R409-F1638-SPI16-GE-CAN2-SD-RTC-WBTA-ADC-T-RGB-CSI2-HS-I-01D2 7 * DHCOM PCB number: 660-100 or newer 8 * PDK3 PCB number: 669-100 or newer 11 /dts-v1/; 13 #include <dt-bindings/leds/common.h> 14 #include <dt-bindings/phy/phy-imx8-pcie.h> 15 #include "imx8mp-dhcom-som.dtsi" 19 compatible = "dh,imx8mp-dhcom-pdk3", "dh,imx8mp-dhcom-som", 23 stdout-path = &uart1; [all …]
|
H A D | imx8mp-verdin.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 #include <dt-bindings/phy/phy-imx8-pcie.h> 7 #include <dt-bindings/pwm/pwm.h> 12 stdout-path = &uart3; 24 compatible = "pwm-backlight"; 25 brightness-levels = <0 45 63 88 119 158 203 255>; 26 default-brightness-level = <4>; 28 enable-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; 29 pinctrl-names = "default"; 30 pinctrl-0 = <&pinctrl_i2s_2_d_out_dsi_1_bkl_en>; [all …]
|
/linux/ |
H A D | MAINTAINERS | 5 --------------------------------------------------- 21 W: *Web-page* with status/info 23 B: URI for where to file *bugs*. A web-page with detailed bug 28 patches to the given subsystem. This is either an in-tree file, 29 or a URI. See Documentation/maintainer/maintainer-entry-profile.rst 46 N: [^a-z]tegra all files whose path contains tegra 64 ---------------- 83 3WARE SAS/SATA-RAID SCSI DRIVERS (3W-XXXX, 3W-9XXX, 3W-SAS) 85 L: linux-scsi@vger.kernel.org 88 F: drivers/scsi/3w-* [all …]
|