Home
last modified time | relevance | path

Searched +full:rsense +full:- +full:val +full:- +full:micro +full:- +full:ohms (Results 1 – 4 of 4) sorted by relevance

/linux/Documentation/devicetree/bindings/iio/adc/
H A Dmaxim,max34408.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Ivan Mikhaylov <fr0st61te@gmail.com>
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/drivers/iio/adc/
H A Dqcom-spmi-iadc.c1 // 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 …]
H A Dmax34408.c1 // 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…
67 * struct max34408_data - max34408/max34409 specific data.
72 * @input_rsense: Rsense values in uOhm, will be overwritten by
118 const struct iio_chan_spec *chan, int *val) in max34408_read_adc_avg() argument
123 guard(mutex)(&max34408->lock); in max34408_read_adc_avg()
124 rc = regmap_read(max34408->regmap, MAX34408_CONTROL_REG, (u32 *)&ctrl); in max34408_read_adc_avg()
129 rc = regmap_write(max34408->regmap, MAX34408_CONTROL_REG, in max34408_read_adc_avg()
132 dev_err(max34408->dev, in max34408_read_adc_avg()
[all …]
/linux/drivers/hwmon/
H A Dltc4282.c1 // 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()
183 int idx = find_closest(req->rate, ltc4282_out_rates, in ltc4282_determine_rate()
[all …]