Searched +full:rsense +full:- +full:val +full:- +full:micro +full:- +full:ohms (Results 1 – 4 of 4) sorted by relevance
/linux-6.14.4/Documentation/devicetree/bindings/iio/adc/ |
D | maxim,max34408.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ivan Mikhaylov <[email protected]> 13 The MAX34408/MAX34409 are two- and four-channel current monitors that are 15 unidirectional current sensor offers precision high-side operation with a 16 low full-scale sense voltage. The devices automatically sequence through 17 two or four channels and collect the current-sense samples and average them 19 user-programmable digital thresholds to indicate overcurrent conditions. 24 https://www.analog.com/media/en/technical-documentation/data-sheets/MAX34408-MAX34409.pdf [all …]
|
/linux-6.14.4/drivers/iio/adc/ |
D | qcom-spmi-iadc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. 71 #define IADC_INT_RSENSE_DEVIATION 15625 /* nano Ohms per bit */ 73 #define IADC_INT_RSENSE_IDEAL_VALUE 10000 /* micro Ohms */ 74 #define IADC_INT_RSENSE_DEFAULT_VALUE 7800 /* micro Ohms */ 75 #define IADC_INT_RSENSE_DEFAULT_GF 9000 /* micro Ohms */ 76 #define IADC_INT_RSENSE_DEFAULT_SMIC 9700 /* micro Ohms */ 94 * struct iadc_chip - IADC Current ADC device structure. 98 * @rsense: Values of the internal and external sense resister in micro Ohms. 110 u32 rsense[2]; member [all …]
|
D | max34408.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * IIO driver for Maxim MAX34409/34408 ADC, 4-Channels/2-Channels, 8bits, I2C 5 …* Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/MAX34408-MAX34409… 66 * struct max34408_data - max34408/max34409 specific data. 71 * @input_rsense: Rsense values in uOhm, will be overwritten by 117 const struct iio_chan_spec *chan, int *val) in max34408_read_adc_avg() argument 122 guard(mutex)(&max34408->lock); in max34408_read_adc_avg() 123 rc = regmap_read(max34408->regmap, MAX34408_CONTROL_REG, (u32 *)&ctrl); in max34408_read_adc_avg() 128 rc = regmap_write(max34408->regmap, MAX34408_CONTROL_REG, in max34408_read_adc_avg() 131 dev_err(max34408->dev, in max34408_read_adc_avg() [all …]
|
/linux-6.14.4/drivers/hwmon/ |
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) 146 u32 rsense; member 163 u32 val = LTC4282_CLKOUT_INT; in ltc4282_set_rate() local 166 val = LTC4282_CLKOUT_TICK; in ltc4282_set_rate() 168 return regmap_update_bits(st->map, LTC4282_CLK_DIV, LTC4282_CLKOUT_MASK, in ltc4282_set_rate() 169 FIELD_PREP(LTC4282_CLKOUT_MASK, val)); in ltc4282_set_rate() 197 ret = regmap_read(st->map, LTC4282_CLK_DIV, &clkdiv); in ltc4282_recalc_rate() [all …]
|