Home
last modified time | relevance | path

Searched full:rsense (Results 1 – 16 of 16) sorted by relevance

/linux-6.12.1/drivers/hwmon/pmbus/
Dltc4286.c39 * The rsense value used in MBR formula in LTC4286 datasheet should be ohm unit.
40 * However, the rsense value that user input is micro ohm.
41 * Thus, the MBR setting which involves rsense should be shifted by 6 digits.
47 * The rsense value used in MBR formula in LTC4286 datasheet should be ohm unit.
48 * However, the rsense value that user input is micro ohm.
49 * Thus, the MBR setting which involves rsense should be shifted by 6 digits.
73 u32 rsense; in ltc4286_probe() local
107 "shunt-resistor-micro-ohms", &rsense)) in ltc4286_probe()
108 rsense = 300; /* 0.3 mOhm if not set via DT */ in ltc4286_probe()
110 if (rsense == 0) in ltc4286_probe()
[all …]
Dxdp710.c64 int rsense; in xdp710_probe() local
93 rsense = micro_ohm_rsense[ret]; in xdp710_probe()
99 info->m[PSC_CURRENT_OUT] = DIV_ROUND_CLOSEST(m * rsense >> cs_rng, 1000); in xdp710_probe()
102 info->m[PSC_POWER] = DIV_ROUND_CLOSEST(m * rsense >> cs_rng, 1000); in xdp710_probe()
/linux-6.12.1/drivers/power/supply/
Dmax1721x_battery.c32 #define MAX1721X_REG_NRSENSE 0x1CF /* RSense in 10^-5 Ohm */
65 unsigned int rsense; /* in tenths uOhm */ member
108 * RSense stored in 10^-5 Ohm, so measurement voltage must be
174 /* We need signed current, so must cast info->rsense to signed type */ in max1721x_battery_get_property()
178 max172xx_current_to_voltage(reg) / (int)info->rsense; in max1721x_battery_get_property()
183 max172xx_current_to_voltage(reg) / (int)info->rsense; in max1721x_battery_get_property()
367 /* rsense init */ in devm_w1_max1721x_add_device()
368 info->rsense = 0; in devm_w1_max1721x_add_device()
369 if (regmap_read(info->regmap, MAX1721X_REG_NRSENSE, &info->rsense)) { in devm_w1_max1721x_add_device()
370 dev_err(info->w1_dev, "Can't read RSense. Hardware error.\n"); in devm_w1_max1721x_add_device()
[all …]
Dmax1720x_battery.c21 #define MAX1720X_NRSENSE 0xCF /* RSense in 10^-5 Ohm */
54 int rsense; member
294 * RSense stored in 10^-5 Ohm, so mesaurment voltage must be
359 val->intval = max172xx_current_to_voltage(reg_val) / info->rsense; in max1720x_battery_get_property()
363 val->intval = max172xx_current_to_voltage(reg_val) / info->rsense; in max1720x_battery_get_property()
447 info->rsense = val; in max1720x_probe_nvmem()
448 if (!info->rsense) { in max1720x_probe_nvmem()
449 dev_warn(dev, "RSense not calibrated, set 10 mOhms!\n"); in max1720x_probe_nvmem()
450 info->rsense = 1000; /* in regs in 10^-5 */ in max1720x_probe_nvmem()
/linux-6.12.1/Documentation/devicetree/bindings/iio/temperature/
Dadi,ltc2983.yaml219 adi,rsense-handle:
231 adi,rsense-share:
267 - adi,rsense-handle
283 adi,current-rotate: [ "adi,rsense-share" ]
314 adi,rsense-handle:
322 adi,rsense-share:
364 - adi,rsense-handle
367 adi,current-rotate: [ "adi,rsense-share" ]
440 "^rsense@":
455 adi,rsense-val-milli-ohms:
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/iio/adc/
Dmaxim,max34408.yaml73 maxim,rsense-val-micro-ohms:
75 Adjust the Rsense value to monitor higher or lower current levels for
82 - maxim,rsense-val-micro-ohms
131 maxim,rsense-val-micro-ohms = <5000>;
136 maxim,rsense-val-micro-ohms = <10000>;
/linux-6.12.1/Documentation/devicetree/bindings/iio/afe/
Dtemperature-transducer.yaml25 V(T) = Rsense * Isense(T)
27 T = 1 / (Rsense * alpha) * (V + offset * Rsense * alpha)
29 When using a temperature to voltage transducer, Rsense is set to 1.
46 | Rsense | |
/linux-6.12.1/drivers/iio/temperature/
Dltc2983.c130 /* cold junction for thermocouples and rsense for rtd's and thermistor's */
620 struct ltc2983_rsense *rsense = to_rsense(sensor); in ltc2983_r_sense_assign_chan() local
623 chan_val = LTC2983_R_SENSE_VAL(rsense->r_sense_val); in ltc2983_r_sense_assign_chan()
751 fwnode_find_reference(child, "adi,rsense-handle", 0); in ltc2983_rtd_new()
754 "Property adi,rsense-handle missing or invalid\n"); in ltc2983_rtd_new()
774 /* 4 wires, Kelvin Rsense */ in ltc2983_rtd_new()
784 if (fwnode_property_read_bool(child, "adi,rsense-share")) { in ltc2983_rtd_new()
785 /* Current rotation is only available with rsense sharing */ in ltc2983_rtd_new()
800 * For 4wire RTDs with kelvin rsense, the rsense channel cannot be in ltc2983_rtd_new()
814 /* kelvin rsense*/ in ltc2983_rtd_new()
[all …]
/linux-6.12.1/drivers/hwmon/
Dltc4282.c146 u32 rsense; member
444 *val = DIV_ROUND_CLOSEST(in * MILLI, st->rsense); in ltc4282_read_current_word()
459 *val = DIV_ROUND_CLOSEST(in * MILLI, st->rsense); in ltc4282_read_current_byte()
509 * P = CODE(16b) * 0.040 * Vfs(out) * 2^16 / ((2^16 - 1)^2 * Rsense) in ltc4282_read_power_word()
514 U16_MAX * (u64)st->rsense); in ltc4282_read_power_word()
519 st->rsense * int_pow(U16_MAX, 2)); in ltc4282_read_power_word()
537 int_pow(U8_MAX, 2) * st->rsense); in ltc4282_read_power_byte()
556 * ((2^16 - 1)^2 * Rsense) in ltc4282_read_energy()
560 * E = CODE(48b) * 40 * Vfs(out) * 256 / (U16_MAX * Rsense) in ltc4282_read_energy()
562 * As Rsense can have tenths of micro-ohm resolution, we need to in ltc4282_read_energy()
[all …]
/linux-6.12.1/drivers/iio/adc/
Dqcom-spmi-iadc.c98 * @rsense: Values of the internal and external sense resister in micro Ohms.
110 u32 rsense[2]; member
331 isense_ua = vsense_uv / iadc->rsense[chan->channel]; in iadc_read_raw()
435 &iadc->rsense[IADC_EXT_RSENSE]); in iadc_rsense_read()
437 iadc->rsense[IADC_EXT_RSENSE] = IADC_INT_RSENSE_IDEAL_VALUE; in iadc_rsense_read()
439 if (!iadc->rsense[IADC_EXT_RSENSE]) { in iadc_rsense_read()
461 iadc->rsense[IADC_INT_RSENSE] = int_sense; in iadc_rsense_read()
522 iadc->rsense[IADC_INT_RSENSE], in iadc_probe()
523 iadc->rsense[IADC_EXT_RSENSE]); in iadc_probe()
Dmax34408.c71 * @input_rsense: Rsense values in uOhm, will be overwritten by
164 * calcluate current for 8bit ADC with Rsense in max34408_read_raw()
166 * 10 mV * 1000 / Rsense uOhm = max current in max34408_read_raw()
224 fwnode_property_read_u32(node, "maxim,rsense-val-micro-ohms", in max34408_probe()
/linux-6.12.1/Documentation/devicetree/bindings/hwmon/
Dadi,ltc4282.yaml33 adi,rsense-nano-ohms:
140 - adi,rsense-nano-ohms
153 adi,rsense-nano-ohms = <500>;
/linux-6.12.1/Documentation/devicetree/bindings/mfd/
Drohm,bd71828-pmic.yaml63 External sense resistor (RSENSE in data sheet) should be used. If some
Drohm,bd71815-pmic.yaml58 External sense resistor (RSENSE in data sheet) should be used. If
/linux-6.12.1/arch/arm/boot/dts/nuvoton/
Dnuvoton-npcm750-runbmc-olympus.dts401 Rsense = <500>;
/linux-6.12.1/sound/soc/codecs/
Drt1305.c65 { RT1305_ADC_SET_1, 0x170f }, /* 0.2 ohm RSense*/